• Home
  • History
  • Annotate
  • only in /frameworks/base/core/java/com/android/
History log of /frameworks/base/core/java/com/android/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3f7360df823b45b8b8c9a1f00dd1ec221664f798 05-Feb-2015 Alan Viverette <alanv@google.com> Invalidate SubtitleView during setText()

Ensures that even if layout does not change, the view is redrawn.

Bug: 19277437
Change-Id: I078ee3176c2bac6c754a0e2f378f97370ecef76a
nternal/widget/SubtitleView.java
95b1048d390e79029978efd4654c05816722e17f 29-Jan-2015 Christopher Ferris <cferris@google.com> Fix wrap property creation when truncating.

If a property name gets truncated, make sure it doesn't end in a '.'
since that makes the name illegal.

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

(cherry picked from commit e32df45fe1a8cb7286bfdad392a0d36e0ddcf8e7)

Change-Id: I126a40ffae76ee6a06926e770ca015fb063a334b
nternal/os/ZygoteConnection.java
a1ac6a09252a8a615230f08767ab6153bd23a165 24-Jan-2015 Svetoslav <svetoslavganov@google.com> Accessibility: Ignore overlapping siblings when computing a click location

To click a view we were computing a click location by ignoring overlapping
views that are actionable. However, detection whether a view is actionable
is not always possible as the view may handle touch events directly. This
leads to unhandled edge cases. We are taking a conservative approach and
ignore all overlapping siblings regardless if clickable. This is also has
limitations but hopefully less frequent edge cases.

bug:18889611

Change-Id: Icea0b7b3e2d4ed53e50e01cb6a99b880be560b14
nternal/widget/ActionBarContainer.java
42a13865a4527aaf907a6ced96f726b49b2cbbed 23-Jan-2015 Svetoslav <svetoslavganov@google.com> Merge "Accessibilty: Cannot click on views in a scrollable container covered by the toolbar." into lmp-mr1-dev
78d51c2292b5a3b56be1b1e92bc67b70f4eebce4 23-Jan-2015 Lorenzo Colitti <lorenzo@google.com> Merge "Use the proper IpPrefix and LinkAddress constructors in VPN code." into lmp-mr1-dev
b2053114562830369a9d060e79f0c9eff4be27e7 20-Jan-2015 Lorenzo Colitti <lorenzo@google.com> Use the proper IpPrefix and LinkAddress constructors in VPN code.

This simplifies the code, and also makes it possible for
users to point multicast routes at the VPN. The LinkAddress
objects we were previously using to construct the RouteInfo do
not accept these, but IpPrefix objects do.

Bug: 18485968
Change-Id: Ie914a2eb359b78161810ee473df725059f944f4e
nternal/net/VpnConfig.java
41fceb462b6eefbaa3a4d4e56b962fdb2910a6f5 23-Jan-2015 Svetoslav <svetoslavganov@google.com> Accessibilty: Cannot click on views in a scrollable container covered by the toolbar.

In accessibility mode we calculate a point where to click in the accessibility
focused view as a bridge-gap solution before switching to accessibility click
actions. We cannot detect whether a view is covered by another one that consumes
all touch events, and therefore we may click on the wrong target. This was the
case with the toolbar. As a result a partially scrolled view in a scrollable
container covered by a toolbar cannot be activated and this is not an edge case.

bug:18986806

Change-Id: Ib41470c39806cec13e9b00b319879cd7f3412ab5
nternal/widget/ActionBarContainer.java
ad44f7448f0b9aa672cad21300f436e369c8105d 22-Jan-2015 Nicolas Prevot <nprevot@google.com> Merge "Never set "Work" or "Personal apps" as prefered activities." into lmp-mr1-dev
76ff4dd0de8d9747b9341f064dd270c5762705c6 17-Jan-2015 Svetoslav <svetoslavganov@google.com> AlertActivity now behaves as a dialog for accessibility purposes.

AlertActivity is intended to look like a dialog but for accessibility
purposes it was populated as an activity. As a result the content of
the "dialog" was not properly announced to the user.

bug:18865632

Change-Id: I27166fc74678981f4f3ad71d6d25727b5110340c
nternal/app/AlertActivity.java
daf92066db6b3934e71277b0290b7149740198de 21-Jan-2015 Nicolas Prevot <nprevot@google.com> Never set "Work" or "Personal apps" as prefered activities.

In ResolverActivity: when the user chooses work or personal:
Do not set them as prefered activities.

BUG:19091836

Change-Id: Ibe0081eb16e58cc25decb3f25b7fd50b5403d5fc
nternal/app/ResolverActivity.java
2b43c73e66d99a5ccc8a23fd1c4e2028f9dd05f2 19-Jan-2015 Kenny Guy <kennyguy@google.com> Only hide cross profile disclosure when showing resolver.

Hiding the cross profile discoloure for all system apps
also meant it wasn't shown for CALL_PRIVILEGED intents.

Bug: 18702461
Change-Id: I8129bc4b07573b547aefe2dbcc6938a60305c216
nternal/app/IntentForwarderActivity.java
1a6dd2985ef1eab036f6fc77cf723e3f12832e93 14-Jan-2015 Wink Saville <wink@google.com> Merge "StateMachine.dump produces no output sometimes." into lmp-mr1-dev
54b1b1a07ad3edd1df060889aad453aa0e1cc79a 12-Jan-2015 Wink Saville <wink@google.com> StateMachine.dump produces no output sometimes.

If the content to dump is large no output is produced by dump. Change
back to using a loop and flush.

Bug: 18965342
Change-Id: Ibc33da8bfffd5f998a78df0e2d70ed8e8a0aa137
nternal/util/StateMachine.java
69c22e82e9c3e95f4689a57320de3199ffd29262 13-Jan-2015 Adam Powell <adamp@google.com> Merge "Add API for nested pre-processing of a11y events; fix ResolverDrawerLayout" into lmp-mr1-dev
54f9b1eedc86a3066bedf3d8ea3e8ffbb83cb678 09-Jan-2015 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #18942959: Phone getting stuck then restarts after unplugging from Audi" into lmp-mr1-dev
b3d4cb369e37b1b7e85832cc035226dc7cc8f380 09-Jan-2015 Dianne Hackborn <hackbod@google.com> Fix issue #18942959: Phone getting stuck then restarts after unplugging from Audi

FastPrintWriter needs to have its own lock for each instance, or
else one getting blocked can cause others to block and whacky deadlocks
result.

Also:

- Improve error reporting of SystemConfig to tell you which config
file is the problem.
- Fix CoreSettingsProvider to not spew errors if a setting is not
defined (it should just use a default value).
- Get rid of noisy init output of ConditionProviders.
- Reduce log noise of starting a process; move some of that information
to ProcessRecord to print on demand.

Change-Id: I1032d141ddd449968b74ab7b88ab36f2d228ad1a
nternal/util/FastPrintWriter.java
29cd7f19625a2a2a8528469e55f3aa495107b9e7 08-Jan-2015 Dianne Hackborn <hackbod@google.com> Fix issue #18827122: system server crashed on broadcasting...

...an intent with invalid or null package uri

Also tweak battery stats to record in the history when we shut
down, to understand when restarts are due to clean shutdowns or
crashes.

Change-Id: I6443dafc23e356be9f569906f6081152d4f92d2b
nternal/content/PackageMonitor.java
nternal/os/BatteryStatsImpl.java
b6ab098bad4b126eaaaa3aaa5a512fefc4e0749b 08-Jan-2015 Adam Powell <adamp@google.com> Add API for nested pre-processing of a11y events; fix ResolverDrawerLayout

Add API for handling nested pre-processing of accessibility events
similar to nested pre-scroll or pre-fling. This allows custom views to
delegate a nested scroll to a parent via the accessibility system.

Use this functionality to allow opening the ResolverDrawerLayout via
accessibility commands.

Bug 18827274

Change-Id: Icd5a502605b78a861bb03e7b11923841a72eb9ab
nternal/widget/ResolverDrawerLayout.java
a517e81e2b1594da3e12c0547aabac5f357ce97b 07-Jan-2015 Paul Miller <paulmiller@google.com> Merge "Fix crash on pasting text in a WebView" into lmp-mr1-dev
f6bf1d7b30078adf4fb26a89f3b5988954c3287c 20-Dec-2014 Paul Miller <paulmiller@google.com> Fix crash on pasting text in a WebView

WindowDecorActionBar and Chrome's ContentViewCore each have their own ActionMode
reference. ActionModeImpl.finish() nulls WindowDecorActionBar's reference and
calls mCallback.onDestroyActionMode() to null ContentViewCore's reference. But
if the callback is deferred, there is a period when the ActionMode is finished
(and mCallback is null), but ContentViewCore doesn't know. ContentViewCore may
try to invalidate() the ActionMode, which will crash on the null mCallback.

Make ActionModeImpl more permissive so that calling invalidate() during this
period does nothing.

BUG:18758329
Change-Id: I407fa0e0cd3cffa217e165caed83130d44760316
nternal/app/WindowDecorActionBar.java
298071951210ae23c8023c4dc8f82da5d1760211 06-Jan-2015 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #18901214: APR: Frequent crash in android" into lmp-mr1-dev
b182955a1eabc30d3cf70856f838b46a91c34569 05-Jan-2015 Dianne Hackborn <hackbod@google.com> Fix issue #18901214: APR: Frequent crash in android

The ShutdownActivity was implemented in the system server
code, which is no longer part of the boot class path. This would
work fine when requesting a shutdown from the primary user, since
in that case the activity would be loaded in to the main system
process which also has the system service code loaded.

However, when executed from a secondary user, we need to spin up
a new system process for it; that system process is just a regular
app process, without the system service code, so *boom*.

To fix this, move ShutdownActivity to the framework jar.

Change-Id: Icb831cd6ed619da5feede5605c45ef177a892fbc
nternal/app/ShutdownActivity.java
5c2d8f7d51d5a944459ddc61034854c6cef7a639 05-Jan-2015 Alan Viverette <alanv@google.com> Don't override dialog icon drawable unless valid resource ID was set

Fixes a regression where Builder.setIcon(Drawable) would get overridden
even when Builder.setIcon(int) had never been called and was still 0.
Fixes attribute id to respect all valid resource IDs (e.g. non-zero).
Updates documentation to reflect the long-standing override behavior.

BUG: 18904762
Change-Id: I905703993a59910555d5a858e0aaecab63221a02
nternal/app/AlertController.java
f0af0ea33b6c10753c071c3881d5d50c79d90c72 15-Dec-2014 Adam Powell <adamp@google.com> Fix touch intercept bug in ResolverDrawerLayout

ResolverDrawerLayout could get into a state where it thought a drag
was in progress, but since there was no distance to drag it would
return false from onTouchEvent for ACTION_DOWN. This would cause it to
intercept all future touch events, blocking interaction with
ResolverDrawerLayout child views. This would only happen if none of
the child views wanted the initial ACTION_DOWN event and it ended up
being processed in the ResolverDrawerLayout itself, such as in
response to touching in empty space or on the title text, and if all
available options fit in view without needing to expand the drawer.

Fix this by only setting the dragging bit if we're going to claim the
rest of the touch events after ACTION_DOWN.

Bug 18563698

Change-Id: Iab2ec38528697c9ff36bbb08b1f1210a6879d5ef
nternal/widget/ResolverDrawerLayout.java
b8a2df10c938f1120f5c4a3c0d06aae4ed3f2281 12-Dec-2014 Kenny Guy <kennyguy@google.com> Don't show last used and profile button at same time.

UI for ResolverActivity doesn't support last used
activity and work/personal profile button at the
same time. So if work/personal button is present
disable last used.

Bug: 18730438
Change-Id: I7ae7319bbdeb9bcaab9d6d03f97dea17d07c6d7f
nternal/app/ResolverActivity.java
c28fa2cdd4692faafc520972b71ddbac1feec4d3 12-Dec-2014 Esteban Talavera <etalavera@google.com> Merge "Take into account other profiles when deciding whether to show ResolverActivity" into lmp-mr1-dev
6de72663fa7cba3aeac3968b9f892335c93a9457 11-Dec-2014 Esteban Talavera <etalavera@google.com> Take into account other profiles when deciding whether to show ResolverActivity

Show ResolverActivity even if there is only one target
on the current profile that listens to that intent,
if other profiles can also handle it.
Also, fix crash while trying to access out of bounds
element on the list.

BUG: 18701336,18713763
Change-Id: I3a5e9cc5c0eedb2792b8f6d8a5d4aa8ee9e1256b
nternal/app/ResolverActivity.java
7a17e0b601c7f65a2ae0b53d8494ae1722c7a28b 10-Dec-2014 Craig Mautner <cmautner@google.com> Merge "Add put/getBoolean/Array to PersistableBundle" into lmp-mr1-dev
e37030505ee3d461508611e1a291aff7b9e82a43 09-Dec-2014 Patrick Tjin <pattjin@google.com> Add recovery kmsg to dropbox

Bug: 18642766

Change-Id: I10e4532904a3a8cac43bec7630b9a7a90c2424ba
Signed-off-by: Patrick Tjin <pattjin@google.com>
erver/BootReceiver.java
73bdf9761be2abdd85efc5fce165f3fa80fcfa65 10-Dec-2014 Craig Mautner <cmautner@google.com> Add put/getBoolean/Array to PersistableBundle

Due to popular demand the methods putBoolean(), getBoolean(),
putBooleanArray() and getBooleanArray() have been added to
PersistableBundle.

Fixes bug 18390436.

Change-Id: Id133ba902aca774f98529e36ce560e873b88ad5b
nternal/util/XmlUtils.java
3256601f5e4d94713f59e97b9d4912875c1bdcaf 03-Dec-2014 Jeff Sharkey <jsharkey@android.com> Offer to "merge" subscribers for data usage.

There are some cases where multiple subscriber identities (IMSI)
should be treated as "merged together" from a data usage
perspective. This is done by extending the template used for
matching purposes to support multiple subscribers.

Then, when we query historical usage or set network policies, we
normalize the matching template to merge to any other identities
that should be included. When normalizing, the "lowest" identity
is always used for equality and storage purposes, which allows
identities to come and go over time.

This change also fixes data usage recording for multi-SIM devices
by passing along the concrete subscriber identity for each network
interface. Also correctly create default policies for multi-SIM
devices. This change also drops setPolicyDataEnable() until it can
be wired up to the right underlying NetworkAgent. (This means we
still bring up the network, and then rely on iptables rules to block
traffic when over the limit, instead of proactively disabling the
connection.)

Bug: 18012787
Change-Id: If6acf32009fdfea2b836f5aff8e2f3e5e0248b4a
nternal/util/ArrayUtils.java
1e01d16982e6b22ec4c0e2d6dc1e261eb6f92c8e 05-Dec-2014 Dianne Hackborn <hackbod@google.com> Fix issue #17323751: Additional items in aggregated battery stats

- Now aggregate number of times each process has crashed and ANRed.
- Now aggregate total number of connectivity changes.
- Now record connectivity changes in the history.

Crash and ANR counts are new entries at the end of "pr" in checkin.

Connectivity change counts is a new entry at the end of "m" in checkin.

Connectivity changes in the history checkin are Ecn and include the
type of connection and its state.

Change-Id: I0c01186446034cf6c3fb97d45f5e3b5c69a0438a
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
18795a2299fefd88ee16393f22324b999ace6ce4 03-Dec-2014 Wale Ogunwale <ogunwale@google.com> Add support from restoring recent's backup.

Bug: 15986349
Change-Id: I899f81d317fcd5277a75db7ba50ecca14112df26
erver/backup/SystemBackupAgent.java
ef44c0514d497a789dca4731da61a2cf49bb3289 03-Dec-2014 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #18572506: AppOps in-memory state is invalid after..." into lmp-mr1-dev
7b7c58b3842d47c4c8df4876e2e2248c58477d97 03-Dec-2014 Dianne Hackborn <hackbod@google.com> Work on issue #18572506: AppOps in-memory state is invalid after...

...uninstalling updates to a system app

Things seem to be working fine, however we were not as aggressive at
writing out the current state in this case as we probably should be.

Also introduce more features to the appops command, which are useful
for testing this.

Change-Id: I177a9cc0e16e98b76fee0d052d742e06842bb3f9
nternal/app/IAppOpsService.aidl
d537987b173f6b48f5196a2ae7d445af1a49e2bb 25-Nov-2014 Kweku Adams <kwekua@google.com> Changing AUDIO_TURNED_ON constant.

Changed so that it's set to a different value from WIFI_MULTICAST_ENABLED.

Change-Id: Ied3a2c2bf891f887ec3c7b5249453af4524c099a
nternal/os/BatteryStatsImpl.java
27ef018846fc88122bcb2c30ba86e99a5b3039d6 02-Dec-2014 Christoph Studer <chstuder@google.com> Merge "NoMan/SysUI: Clear LEDs only when entering the shade" into lmp-mr1-dev
1f32c65697c22f423c2888cf4c53da1c95d602c1 26-Nov-2014 Christoph Studer <chstuder@google.com> NoMan/SysUI: Clear LEDs only when entering the shade

Don't clear notification LEDs when seeing notifications on the
lockscreen.

Also fix a bug where the LED didn't continue flashing after
the screen turned off.

For devices with doze capability, ensure that the LED continuing
to flash after screen off doesn't cause an immediate pulses, but
delay the first pulse by 10s.

Bug: 15449039
Change-Id: Id34d51a2c91ceaf069e49add1ab690bb855f9638
nternal/statusbar/IStatusBarService.aidl
498c84e7366cc0b4355f034bd03534a14beaf166 02-Dec-2014 Yigit Boyar <yboyar@google.com> Merge "Don't wipe out explicit Toolbar nav icon when calling setSupportActionBar" into lmp-mr1-dev
88831a2a6f4c7dd47d6479ba107ce1a8045d3fa5 21-Nov-2014 Adam Powell <adamp@google.com> Make work profile apps easier to pick in ResolverActivity

Pull the "Work" profile item up out of the main list and into the
header of the resolver drawer, making it easier to discover and access
without disrupting the sort order of the list.

Bug 17935301

Change-Id: Id2d081b61828352c998e517127132f883a20b7ef
nternal/app/ResolverActivity.java
ab954546dc49e1070ed8513efbddc8954b529c23 11-Oct-2014 Jim Miller <jaggies@google.com> Make IKeyguardService interface asynchronous

Add a state callback so lockscreen reports back whenever its state
relevant for PhoneWindowManager changed, instead of synchronously
calling into SysUI which can lead to deadlocks. Directly use
LockPatternUtils for isSecure, and optimize the number of calls to
this method to optimize layout performance.

Bug: 17677097
Change-Id: I5d491fc8884d4f84d9562626b9ea0d5eaa5166fc
nternal/policy/IKeyguardService.aidl
nternal/policy/IKeyguardServiceConstants.java
nternal/policy/IKeyguardStateCallback.aidl
5bbb1af74a40f60d6609c2b1c580cb91ffb12c54 24-Nov-2014 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #18486438: Reduce size of bugreport output" into lmp-mr1-dev
b5686d55963e76c801ca0581a1012c5f4aa8d009 24-Nov-2014 Jeff Brown <jeffbrown@google.com> am 3d110b23: Make WallpaperService watch the actual display state.

* commit '3d110b239153a6c7423a99f02ef859201205eee2':
Make WallpaperService watch the actual display state.
45e27327178be9d5524cfcbdde9bb83502668e46 24-Nov-2014 Sreeram Ramachandran <sreeram@google.com> Merge "Allow VPNs to specify their underlying networks." into lmp-mr1-dev
702d9e31b1bcacff975a2b8e0d04160bbd6811ed 24-Nov-2014 Adrian Roos <roosa@google.com> Merge "Fix DPM.resetPassword("")" into lmp-mr1-dev
3d110b239153a6c7423a99f02ef859201205eee2 22-Nov-2014 Jeff Brown <jeffbrown@google.com> Make WallpaperService watch the actual display state.

Bug: 18471411
Change-Id: Ie9d2e70e4e105dfbb2cb4d9726f632bcf2cc0a31
nternal/os/HandlerCaller.java
d052a9416ae3f7e42fc1e7de0740021df385ee48 22-Nov-2014 Dianne Hackborn <hackbod@google.com> Work on issue #18486438: Reduce size of bugreport output

Reduce how much stuff ProcessStats spews, and do collapsing of
repeated intent filter targets when dumping IntentResolvers.

Also add to pm's checkout output to include shared user ids,
and fix output formatting in a few places.

Change-Id: Ic9fc6731f0439101ba9343535e66cdbbad47e291
nternal/app/ProcessStats.java
24c2a7e736611b257d077f7ce1c0a28563bc8c06 22-Nov-2014 Yigit Boyar <yboyar@google.com> Don't wipe out explicit Toolbar nav icon when calling setSupportActionBar

Bug: 18440924
Change-Id: I7221532d003fd0208cf91a5ffd9be24a7695bd3d
nternal/widget/ToolbarWidgetWrapper.java
c2c0beab79a907f63e109eefe2a5aabcf2e3fd8f 12-Nov-2014 Sreeram Ramachandran <sreeram@google.com> Allow VPNs to specify their underlying networks.

These are used when responding to getActiveNetworkInfo() (and cousins)
when an app is subject to the VPN.

Bug: 17460017
Change-Id: Ief7a840c760777a41d3358aa6b8e4cdd99c29f24
nternal/net/VpnConfig.java
f8f56bce428bb2b89d1d572ccd2d604761dbbce8 20-Nov-2014 Adrian Roos <roosa@google.com> Fix DPM.resetPassword("")

While we're at it, also fix some multi-user issues in
LockPatternUtils.

Bug: 17496766
Change-Id: I8e557ea640fa589817c8f8f818c91463585d5ea7
nternal/widget/LockPatternUtils.java
a83c5806ded083f51549ba4bf70e0c1f6a17fc61 21-Nov-2014 Filip Gruszczynski <gruszczy@google.com> Merge "SwipeDismissLayout makes activity opaque only after entry animation ends." into lmp-sprout-dev
automerge: 96c5d37

* commit '96c5d37fb5139465cdd3d882b5deba830497557a':
SwipeDismissLayout makes activity opaque only after entry animation ends.
ad064d48adcfac71bd04d9f3bb5ea9d607d132a7 21-Nov-2014 Christopher Tate <ctate@google.com> Merge "Recents backup helper" into lmp-mr1-dev
ac6a3a5e9d90edb533e5b377a4a14ef514be955a 18-Nov-2014 Christopher Tate <ctate@google.com> Recents backup helper

Handles backup/restore of recent tasks for the system. Currently the
thumbnails are not saved.

At restore time the historical task records are placed in a designated
separate location rather than directly in the live bookkeeping; this
avoids ID duplication issues and makes it easier to deal with lazy
adoption of the historical task state as apps are installed on the
device post-restore.

Bug 17303286
Bug 15986349

Change-Id: Ie156c1e2ab9c9a7e7ac0447b27016fdcef55dded
erver/backup/SystemBackupAgent.java
50bfeec868157106e8b60abf8964cb24462af182 20-Nov-2014 Adrian Roos <roosa@google.com> Update KeyguardManager.isDeviceLocked API

Bug: 18414067
Change-Id: I0715714c2c9a122f578ec0c6f508faae12e6f752
nternal/widget/LockPatternUtils.java
6eafa902cbc15fa35f8f0dfb5e559673fa67f637 14-Nov-2014 Filip Gruszczynski <gruszczy@google.com> SwipeDismissLayout makes activity opaque only after entry animation ends.

Bug: 18340863
Change-Id: Ic60fa2463618f86b1ae23fc4a0c06cd348f28334
nternal/widget/SwipeDismissLayout.java
94d963381d7bd75e60da1c3038c7970e47d2ac35 17-Nov-2014 Christopher Tate <ctate@google.com> Merge "Don't crash just because invalid datasets were offered for restore" into lmp-mr1-dev
0de36e51c5990b1c25c3d0fad3fea7d10aaecce5 14-Nov-2014 Ying Wang <wangying@google.com> Move preloaded-classes out of framework.jar.

Instead we install preloaded-classes as a standalone configuration file
/system/etc/preloaded-classes, so we can configure different file per product.

Bug: 18305157
Change-Id: I22f1a1dd44f90268d02532bf18405768523c0b1b
nternal/os/ZygoteInit.java
824392bdbdd0d593c4bd2d26f197bb0009ff75c9 15-Nov-2014 Christopher Tate <ctate@google.com> Don't crash just because invalid datasets were offered for restore

In practice, recognize that the current transport state may not yet
incorporate a valid restore data stream object, so don't go making
assumptions that it's usable / closeable / etc.

Bug 18379004

Change-Id: I221e04b5b83438e37455e025d67f412d3abb8c50
nternal/backup/LocalTransport.java
377d80ba53d4eda31d131f4f2bd899668cad426b 13-Nov-2014 Dianne Hackborn <hackbod@google.com> Merge "Put native apps above browser in resolver activity." into lmp-mr1-dev
fabb70b2efbd125f74923d19ab12bc8e1371ed1f 11-Nov-2014 Dianne Hackborn <hackbod@google.com> Add reporting of Parcel memory/count.

Also fix issue #18340771: Dumpsys Procstats missing a newline

Change-Id: I0c612187a3fb4d7eeafbf97d373efdef732c477e
nternal/app/ProcessStats.java
138b83347b8da29166ee2eb09fa8126686bda3c7 11-Nov-2014 Adrian Roos <roosa@google.com> Obliterate LockPatternUtilsCache

It is disabled dead code already and not useful anymore
with the new caching in LockSettingsService.

Bug: 18163444
Change-Id: Icc184e923e0fbeab31ed128336c01f835b24c6f2
nternal/widget/ILockSettings.aidl
nternal/widget/ILockSettingsObserver.aidl
nternal/widget/LockPatternUtils.java
nternal/widget/LockPatternUtilsCache.java
ec452d9ff590725f57bc474b79f4c2731035372d 12-Nov-2014 Dianne Hackborn <hackbod@google.com> Put native apps above browser in resolver activity.

Add a special case for situations where we have some activities
that are matching a URI host/path, so that these are ordered
above others. This only happens when dealing with http or https
intents, for ordering native apps above the browser.

Change-Id: I21f3361229bc7a1ebefda66373d31b6b1fd19973
nternal/app/ResolverActivity.java
85d558cd486d195aabfc4b43cff8f338126f60a5 04-Nov-2014 Dianne Hackborn <hackbod@google.com> Add Activity API to get referrer information.

This expands the use of EXTRA_REFERRER to be relevant anywhere,
allowing apps to supply referrer information if they want. However,
if they don't explicitly supply it, then the platform now keeps
track of package names that go with Intents when delivering them
to apps, which it can be returned as the default value.

The new method Activity.getReferrer() is used to retrieve this
referrer information. It knows about EXTRA_REFERRER, it can return
the default package name tracked internally, and it also can return
a new EXTRA_REFERRER_NAME if that exists. The latter is needed
because we can't use EXTRA_REFERRER in some cases since it is a Uri,
and things like #Intent; URI extras can only generate primitive type
extras. We really need to support this syntax for referrers, so we
need to have this additional extra field as an option.

When a referrer is to a native app, we are adopting the android-app
scheme. Since we are doing this, Intent's URI creation and parsing
now supports this scheme, and we improve its syntax to be able to build
intents with custom actions and stuff, instead of being all hung up
on custom schemes.

While doing this, fixed a problem when parsing both intent: and new
android-app: schemes with a selector portion, where we were not
respecting any scheme that was specified.

Change-Id: I06e55221e21a8156c1d6ac755a254fea386917a2
nternal/content/ReferrerIntent.aidl
nternal/content/ReferrerIntent.java
450ce9fc8a1522819aec151433e6f509dfe60690 29-Oct-2014 Adrian Roos <roosa@google.com> Disable LockPatternUtilsCache

Also fix a bug where hasPattern and hasPassword were
not invalidated properly.

Bug: 18163444
Change-Id: I5bd8cc4e7c0d00497ee7a42f3c34449aa3f95a6c
nternal/widget/ILockSettingsObserver.aidl
nternal/widget/LockPatternUtils.java
nternal/widget/LockPatternUtilsCache.java
95c05a590f97d81a5d4e5d86540833cc1637ffdc 08-Nov-2014 Mike Lockwood <lockwood@google.com> Merge "Add dumpsys support for bluetooth" into lmp-mr1-dev
001b2e93030b06774e6af304157637c1acb94226 08-Nov-2014 Jeff Sharkey <jsharkey@android.com> Merge "ProcessCpuTracker touching proc is fine." into lmp-mr1-dev
ccce016fb18b7c42d69edf9b1ade9a05e749eb4e 07-Nov-2014 Jeff Sharkey <jsharkey@android.com> ProcessCpuTracker touching proc is fine.

Otherwise we spew hundreds of StrictMode violations.

Bug: 18261125
Change-Id: I2e5ff697b99f55bb73e806f04dba8384e6f1b935
nternal/os/ProcessCpuTracker.java
2f04d16f16ea935895872efe4dfcff3366070e9c 07-Nov-2014 Jason Monk <jmonk@google.com> Merge "Plumbing for screen pinning request from sysui" into lmp-mr1-dev
5565cb42f2ac07fcdbe3aab2503de07fbeb39504 12-Sep-2014 Jason Monk <jmonk@google.com> Plumbing for screen pinning request from sysui

Removes lock-to-app request dialog from the AM.

Added a showScreenPinningRequest to IStatusBar to handle the
flow from app requesting lock task to showing the dialog.

This CL also allows startLockTaskOnCurrent (system|signature) to
start lock task directly. (Note: this is the less locked version
that always allows exit through back + recents)

Bug: 16957435
Change-Id: I284918dd5989de6cb2767c2a717529eb5e9c6db4
nternal/statusbar/IStatusBar.aidl
b21220efae92a56ff7b4b781fa614a6e3a8a3007 01-Nov-2014 Yohei Yukawa <yukawa@google.com> Minimize the number of default enabled IMEs part 4

This is a follow up CL for recent attempt to minimize
the number of default enabled IMEs.
- part1: I831502db502f4073c9c2f50ce7705a4e45e2e1e3
- part2: Ife93d909fb8a24471c425c903e2b7048826e17a3
- part3: I6571d464a46453934f0a8f5e79018a67a9a3c845

It turned out that the changes made in part2 and part3 are
a bit overkill, and users will see no software keyboards
in some particular situations. The problem we missed in
the previous CLs is the fact that
InputMethodInfo#isDefault is indeed a locale-dependent
value, hence it may vary depending on the system locale.
Existing unittests also failed to abstract such
locale-dependent nature.

In order to addresses that regression, the selection logic
is a bit widely reorganized in this CL. Now the logic is
implemented as a series of fallback rules.

Also, unit tests are updated to be able to 1) test the
order of the enabled IMEs, and 2) emulate the
locale-dependent behavior of InputMethodInfo#isDefault
to enrich test cases.

BUG: 17347871
BUG: 18192576
Change-Id: I871ccda787eb0f1099ba3574356c1da4b33681f3
nternal/inputmethod/InputMethodUtils.java
8da8ab5cf2a7faae5691d1e7cd84dfacc7e8cf33 04-Nov-2014 Nicolas Prevot <nprevot@google.com> Merge "An intent forwarded from a chooser intent will be a chooser too." into lmp-mr1-dev
47ffc60578caf0caaf703293a3e96883f6ea5db2 04-Nov-2014 Sander Alewijnse <salewijnse@google.com> Merge "Show message when intent is forwarded across profiles." into lmp-mr1-dev
808fe6f99fba753e0ec4c5e90de0ff7a2140e8a6 03-Nov-2014 Adrian Roos <roosa@google.com> Merge "Fix colored status bar panning issues" into lmp-mr1-dev
862d72e2f4e600d6188f5a21a906d5374ab4f123 03-Nov-2014 Adrian Roos <roosa@google.com> Merge "Improve dump of status bar service" into lmp-mr1-dev
0e2b73f6858479ca963bd53c49f8955d98f14869 27-Oct-2014 Nicolas Prevot <nprevot@google.com> An intent forwarded from a chooser intent will be a chooser too.

If a chooser intent is fired:
If the user picks "work" or "personal apps":
send a chooser intent to the other profile instead of sending a normal intent.

Also using a userId instead of a userHandle for the target user.

BUG:16514027

Change-Id: I2e45cd57ad72e9b7280e772b31fc10938642ba59
nternal/app/ChooserActivity.java
nternal/app/IntentForwarderActivity.java
nternal/app/ResolverActivity.java
f654533f2d22ede2103ebdb2119a924399234d59 31-Oct-2014 Sander Alewijnse <salewijnse@google.com> Show message when intent is forwarded across profiles.

In resolver activity. Solution uses the contentUserHint.

Bug:17199630
Change-Id: I208e55a2bb37c7cd147240986c7659fc66f3e228
nternal/app/ResolverActivity.java
f34fa3e7aa9be9bf24c955a9ebf34022e4b88c25 31-Oct-2014 Dianne Hackborn <hackbod@google.com> Merge "Improve low on RAM reporting." into lmp-mr1-dev
6edb5c665dcb024ae7cfb95b9a92e30dcc5777c1 31-Oct-2014 Dianne Hackborn <hackbod@google.com> Improve low on RAM reporting.

- Don't print every little native process.
- Print in different sections, so if one is too long we don't get the
rest truncated in the log.
- Include other info from meminfo -- ksm and free/used/lost summary.

Change-Id: Iea4ec3860212667e195d2b60b3ded23bfec78436
nternal/util/MemInfoReader.java
5dd072d88459ef434ab756e1adcdcd1ce5eb1beb 31-Oct-2014 Adam Powell <adamp@google.com> Allow swipe down to dismiss for ResolverDrawerLayout

Let the user swipe the intent resolver UI off of the screen to get rid
of it. So satisfying!

Also fix a bug where transitioning between touching the area outside
of the drawer to the drawer itself would misbehave or otherwise
dismiss when it shouldn't.

Bug 18026675

Change-Id: I456cc22b9575dc4c65e45154dc81201fe2045adc
nternal/app/ResolverActivity.java
nternal/widget/ResolverDrawerLayout.java
159da3dba8811017c683fcee26c795be1948b0c4 30-Oct-2014 Craig Mautner <cmautner@google.com> Merge "Add enter-animation-done callback for system windows" into lmp-mr1-dev
9c79504225f60c72c947220b6aca928f11279e1c 29-Oct-2014 Craig Mautner <cmautner@google.com> Add enter-animation-done callback for system windows

Existing hidden methods allow activities to be notified when their
windows have completed animating in. This change adds that capability
to system windows using a ViewTreeObserver callback since system
windows lack an activity token.

The first subsystem to use this is the UserSwitchingDialog which was
previously using a 250 msec timeout to dismiss the dialog. That
deadline was often missed leaving the user with no dialog on the
screen during the transition.

Fixes bug 16661752.

Change-Id: I70789e0d9c07112f275e76fb82850926305f290d
nternal/view/BaseIWindow.java
35c3cb6a598d2868db064a2dcd6f3b7031fe9f0a 30-Oct-2014 Alan Viverette <alanv@google.com> Remove scroll view from correct parent in AlertController

BUG: 18191700
Change-Id: I37602fc26d103b76021f00c58f03bc32d7a978fe
nternal/app/AlertController.java
33d9dc46cfbe42e508b2c4b97801059964b3476b 30-Oct-2014 Yigit Boyar <yboyar@google.com> Merge "Move all actionbar related methods to DecorToolbar" into lmp-mr1-dev
104504053d33d337d52350960c48a1edc5ba1444 30-Oct-2014 Alan Viverette <alanv@google.com> Merge "Show scroll indicators in AlertDialog" into lmp-mr1-dev
154c2c24dc3b741bcc0d54c46d349478d24472ac 29-Oct-2014 Alan Viverette <alanv@google.com> Show scroll indicators in AlertDialog

BUG: 16353356
Change-Id: I0307283751ccb23b9d85b0c36cb78b01243e70dd
nternal/app/AlertController.java
3abf5c4bd167547b7e995f1b14ae1bae210c5fec 29-Oct-2014 Alan Viverette <alanv@google.com> Use action mode context for ActionMode menu inflater

BUG: 18078900
Change-Id: Iff837e741dde79a565f1e8c83846ee6155da179e
nternal/app/WindowDecorActionBar.java
fe6d57c366ba78295d3320cb73512f02876eed61 24-Oct-2014 Yigit Boyar <yboyar@google.com> Move all actionbar related methods to DecorToolbar

Bug: 17999561

Change-Id: I36af443cf245aedd64a079726c1a2e6f6068f221
nternal/app/ToolbarActionBar.java
nternal/widget/ActionBarView.java
nternal/widget/DecorToolbar.java
nternal/widget/ToolbarWidgetWrapper.java
53f28eccc546504cb1e894c02176ecce3139264e 29-Oct-2014 Adrian Roos <roosa@google.com> Improve dump of status bar service

Tracks which window caused the disable flags
instead of just blaming PhoneWindowManager.

Bug: 17830264
Change-Id: If6c957120bb2ee8e0083f80e35c71eb21b8672b6
nternal/statusbar/IStatusBarService.aidl
0e7ae4efe8f424fa1ced8f7e5f3d8ae78066592b 01-Oct-2014 Adrian Roos <roosa@google.com> Fix colored status bar panning issues

Bug: 17695293
Change-Id: I6a1267f8dff27e7b78ab312a71648ef16ab9483b
nternal/view/RootViewSurfaceTaker.java
f6a36e9cf347a851bc3b717e4c39b484fce4e9c2 29-Oct-2014 Alan Viverette <alanv@google.com> Inflate ActionMode items against the ActionBarContextView theme

BUG: 18078900
Change-Id: I300a0268bacf7e1ebcd64eac3d79548e1c4a9606
nternal/app/WindowDecorActionBar.java
nternal/widget/ActionBarContextView.java
726d4de780dea9afded2e44a010b793f7ac29c23 28-Oct-2014 Mike Lockwood <lockwood@google.com> Add dumpsys support for bluetooth

Bug: 18159457
Change-Id: I8d3f7084a7b089c111fd622ff526630bfdfa7300
nternal/util/StateMachine.java
1ac52667ee03af090bb13d1ccf45ee6f38ddee3c 24-Oct-2014 Alan Viverette <alanv@google.com> Merge "Add support for Explore by Touch to RadialTimePickerView" into lmp-mr1-dev
ffb46bf2956d89e3190007ccf2ef3ce3eed005fe 24-Oct-2014 Alan Viverette <alanv@google.com> Add support for Explore by Touch to RadialTimePickerView

Also adds IntArray, which is like LongArray for integers, and prevents
the AM/PM label text in the time picker header from wrapping.

BUG: 17468036
Change-Id: I7120089885709f23e20368927e4b3ed9db2e5393
nternal/widget/ExploreByTouchHelper.java
5c1a49651b4e0a15a938560394bffeaeb5718f72 24-Oct-2014 Christoph Studer <chstuder@google.com> Merge "SysUI/NoMan: Log clicks on notification buttons" into lmp-mr1-dev
fa36b36c8b66fc89f446a9eb065c31a1b224e662 24-Oct-2014 Narayan Kamath <narayan@google.com> Merge "Deprecate more apache-http." into lmp-mr1-dev
b977ade1e40393f661722d8eec636d10c7541588 23-Oct-2014 Filip Gruszczynski <gruszczy@google.com> am 625ec484: Check if context is actually an activity.

* commit '625ec4849118f061a99558ad558b16020435a88d':
Check if context is actually an activity.
625ec4849118f061a99558ad558b16020435a88d 23-Oct-2014 Filip Gruszczynski <gruszczy@google.com> Check if context is actually an activity.

Bug: 18101409
Change-Id: Iab21338ef4ccaab0ce66d664502e0b5e88ad9c50
nternal/widget/SwipeDismissLayout.java
823675fdbb7f974b8e2fa9fbb71774b32487582d 23-Oct-2014 Narayan Kamath <narayan@google.com> Deprecate more apache-http.

bug: 18067888

Change-Id: I50511d53dfc9ae236dfb1646c55a5dd7fa15d7b2
nternal/http/multipart/FilePart.java
nternal/http/multipart/MultipartEntity.java
nternal/http/multipart/Part.java
nternal/http/multipart/StringPart.java
e1201e87f4eb83783d8f9f3e46699cc18abb03f6 23-Oct-2014 Alan Viverette <alanv@google.com> Merge "Lighten action bar on light theme, use secondary color for subtitle" into lmp-mr1-dev
bd266fef814922448a048107e9d13a2a22a5d957 23-Oct-2014 Alan Viverette <alanv@google.com> Lighten action bar on light theme, use secondary color for subtitle

Also cleans up some code in ActionBarView.

BUG: 17987639
Change-Id: I7dcdf18748d6da5792900ab9a78775a0511f982a
nternal/widget/ActionBarView.java
720f43e4a42ca5cb2544a049d3b60c53174df93a 23-Oct-2014 Alan Viverette <alanv@google.com> Merge "Revert "Check MenuItem.isVisible() for keyboard shortcuts"" into lmp-mr1-dev
e38eb4d4ef504c0b72d51dfcc8fcd06cf73c0d50 23-Oct-2014 Alan Viverette <alanv@google.com> Revert "Check MenuItem.isVisible() for keyboard shortcuts"

Just kidding we do want this to work like it used to.

This reverts commit e354a9e4da56da45d7035e1e93301554c5faf32e.

Change-Id: Ia51050a93e25c1ad16144b0da3f6178a98ad971a
nternal/view/menu/MenuBuilder.java
d4a52a6878846ba0a69f6c2f814356ceaa4b8ec6 22-Oct-2014 Filip Gruszczynski <gruszczy@google.com> am baecc0b2: Merge "Disable activity\'s translucency until it starts being swiped away." into lmp-sprout-dev

* commit 'baecc0b2d111c3bc930b85d5450f1ff8b7b83395':
Disable activity's translucency until it starts being swiped away.
410f7ee4031bb754600ad9c984158b6ff4f056c8 22-Oct-2014 Alan Viverette <alanv@google.com> Merge "Check MenuItem.isVisible() for keyboard shortcuts" into lmp-mr1-dev
4da84cd56582fb4025eb5a9a1d4bb5b5b4a50cef 21-Oct-2014 Christoph Studer <chstuder@google.com> SysUI/NoMan: Log clicks on notification buttons

Introduce notification_action_click logtag that is logged whenever
the user clicks any notification button. For standard templates, we
also log the index of the pressed action button.

Bug: 18064190
Change-Id: Icb07795ff711729d16bde0b7e03d13c2f466779c
nternal/statusbar/IStatusBarService.aidl
3f8dd14451521d728fba548c7655d8fe531ed2ef 21-Oct-2014 Filip Gruszczynski <gruszczy@google.com> Disable activity's translucency until it starts being swiped away.

Change-Id: Ia5dceac7bd9ff57920a43736f9db6a33175e01ac
nternal/widget/SwipeDismissLayout.java
e354a9e4da56da45d7035e1e93301554c5faf32e 21-Oct-2014 Alan Viverette <alanv@google.com> Check MenuItem.isVisible() for keyboard shortcuts

Parity with support-v7 change.

BUG: 18021345
Change-Id: I583b586d451a21bbd207d2b0584a396e1125ee59
nternal/view/menu/MenuBuilder.java
0b3c11260ae5ea09c7e702802b39f77afc74f35f 09-Oct-2014 Adam Powell <adamp@google.com> Intent chooser callback

Let an app specify an IntentSender as an extra for ACTION_CHOOSER that
will be notified of the user's chosen target. Apps can use this to
implement things like one-touch last used affordances without
implementing their own one-off chooser UI.

Bug 17363684

Change-Id: Ic5d1d0e0c7a0bae3eda6b1d6ade993f3ba865cfa
nternal/app/ChooserActivity.java
nternal/app/ResolverActivity.java
ed512c817c090e2545db89e13837481f86e7596e 18-Oct-2014 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #17948288: Improve accuracy of memory use reporting" into lmp-mr1-dev
d9b81b11b9c3c61d21565d7c6ac250fba1a4f052 18-Oct-2014 Jim Miller <jaggies@google.com> am a054a828: am c6c843fb: Merge "Add utility methods to LockPatternUtils for encryption" into lmp-dev

* commit 'a054a8280c1316a1f805cc86f00f571a3b1cfc2f':
Add utility methods to LockPatternUtils for encryption
a054a8280c1316a1f805cc86f00f571a3b1cfc2f 18-Oct-2014 Jim Miller <jaggies@google.com> am c6c843fb: Merge "Add utility methods to LockPatternUtils for encryption" into lmp-dev

* commit 'c6c843fbe8fb8d9bdd012a472e22970ee89b9d24':
Add utility methods to LockPatternUtils for encryption
c6c843fbe8fb8d9bdd012a472e22970ee89b9d24 18-Oct-2014 Jim Miller <jaggies@google.com> Merge "Add utility methods to LockPatternUtils for encryption" into lmp-dev
dd5de719c5a0d39030f94d931c0ab1bed1f147f8 17-Oct-2014 Jim Miller <jaggies@google.com> Add utility methods to LockPatternUtils for encryption

This enables a change in Settings that allows device
encryption to be disabled by the user.

Fixes bug 17881324

Change-Id: I34dfc586df1a598bf969dc82adf8537a2730d345
nternal/widget/LockPatternUtils.java
b3af4ec6bae4fe93d40f021e54cbbce10cc7b4c6 18-Oct-2014 Dianne Hackborn <hackbod@google.com> Fix issue #17948288: Improve accuracy of memory use reporting

We now use Mapped to not double-count cached pages that are
mapped in to app processes. Also read in some more values that
count towards kernel RAM use, and count buffers as free rather
than used RAM.

It also looks like the zram accounting is broken -- it was never
collecting the total zram reserved space. I need to figure out
how I was finding that before.

Change-Id: I883f6fc93966774b5c7d2801d1801666dd11ed41
nternal/util/MemInfoReader.java
44d515457a55cdcd92257a711db8dd10f71f0175 18-Oct-2014 William Bourke <billbourke@google.com> am 7d5c68e3: am 84b4791a: Merge "Modified lollipop Easter egg for TV compatibility" into lmp-dev

* commit '7d5c68e31eea3848fd8fa75dfd9f7190ef1cd3a3':
Modified lollipop Easter egg for TV compatibility
7d5c68e31eea3848fd8fa75dfd9f7190ef1cd3a3 18-Oct-2014 William Bourke <billbourke@google.com> am 84b4791a: Merge "Modified lollipop Easter egg for TV compatibility" into lmp-dev

* commit '84b4791aaf0384a334068a97c70fcda162cfadab':
Modified lollipop Easter egg for TV compatibility
33f577cfea7b5cc7c7167716522bf74c5e3219da 17-Oct-2014 William Bourke <billbourke@google.com> Modified lollipop Easter egg for TV compatibility

Bug: 17997922

Change-Id: I0e2e34245183cdd146ecca02ab09b2c4867770ec
nternal/app/PlatLogoActivity.java
e1970346a43109a9bcf4037135425a918fc953d3 17-Oct-2014 Amith Yamasani <yamasani@google.com> am b5afeca3: am a865bb5d: Merge "Use the correct method to check if device is encrypted" into lmp-dev

* commit 'b5afeca3d9ce3efb0ab9ab6536d4446ec73b416c':
Use the correct method to check if device is encrypted
b5afeca3d9ce3efb0ab9ab6536d4446ec73b416c 17-Oct-2014 Amith Yamasani <yamasani@google.com> am a865bb5d: Merge "Use the correct method to check if device is encrypted" into lmp-dev

* commit 'a865bb5df834194dee339db615c17d7c7b63aaa3':
Use the correct method to check if device is encrypted
cd410ba4e816b657020cafb23e69206734726b42 17-Oct-2014 Amith Yamasani <yamasani@google.com> Use the correct method to check if device is encrypted

DPM's method will return false if encrypted by default password,
preventing the changing of encryption password to lockscreen password.

Check if the device is encrypted by some means, instead.

Also fix a SecurityException when Device Admin queries encryption state
(recent regression)

Bug: 17881324
Change-Id: Id897e61c5e254ab3f8dc569285428a73005303ea
nternal/widget/LockPatternUtils.java
ccb7a9af271836fde98636d9ce6ebbda09eb0158 16-Oct-2014 Adrian Roos <roosa@google.com> Merge "Prevent ChooserActivity from taking over the system bars" into lmp-mr1-dev
8afc90fd715457033ca70dae3cd53377957d8b94 16-Oct-2014 Alan Viverette <alanv@google.com> Merge "Add style support to PopupMenu, clean up constructor javadoc" into lmp-mr1-dev
29632521c36548d71b610fc4de864281bab4dfb4 16-Oct-2014 Alan Viverette <alanv@google.com> Add style support to PopupMenu, clean up constructor javadoc

BUG: 18002523
Change-Id: Ice492686b814460248ccbe9727c64dd002e7ed7a
nternal/view/menu/MenuPopupHelper.java
ce711c6d57732c3582da0828c0361f55381f4223 15-Oct-2014 Jim Miller <jaggies@google.com> am 09ba0da8: am e7c32555: Merge "Add a checkbox option to \'require password to decrypt\'" into lmp-dev

* commit '09ba0da87fa56eac91da5eb2d0a20b7799df66d5':
Add a checkbox option to 'require password to decrypt'
09ba0da87fa56eac91da5eb2d0a20b7799df66d5 15-Oct-2014 Jim Miller <jaggies@google.com> am e7c32555: Merge "Add a checkbox option to \'require password to decrypt\'" into lmp-dev

* commit 'e7c325559d961f13c6df96803bca4747f41b27a4':
Add a checkbox option to 'require password to decrypt'
e7c325559d961f13c6df96803bca4747f41b27a4 15-Oct-2014 Jim Miller <jaggies@google.com> Merge "Add a checkbox option to 'require password to decrypt'" into lmp-dev
27c3ab630afd6296ff1ff7b2b71638caa8f2ec54 15-Oct-2014 Adrian Roos <roosa@google.com> Prevent ChooserActivity from taking over the system bars

Bug: 17939334
Change-Id: I4d028695a1f81442cbbe7067b33475634effd5d2
nternal/app/ResolverActivity.java
4d526bd249d720ef8dc54b8c7ecef9953e5be5c7 15-Oct-2014 Jeff Sharkey <jsharkey@android.com> am cf2c5649: am 97978808: Start cross profile intents as caller.

* commit 'cf2c564987965be1241fe197106b3ec22b11b4b0':
Start cross profile intents as caller.
cf2c564987965be1241fe197106b3ec22b11b4b0 15-Oct-2014 Jeff Sharkey <jsharkey@android.com> am 97978808: Start cross profile intents as caller.

* commit '9797880808320e3a7bae1f59bc7e0c5a13189e5f':
Start cross profile intents as caller.
9797880808320e3a7bae1f59bc7e0c5a13189e5f 14-Oct-2014 Jeff Sharkey <jsharkey@android.com> Start cross profile intents as caller.

The system should always be using new startActivityAsCaller() when
starting activities on behalf of someone else, to ensure that
security checks are enforced as the original caller.

Bug: 17983737
Change-Id: Ic40816a797cfdb13c0adb48b86ed4ed7d6aae8eb
nternal/app/IntentForwarderActivity.java
nternal/app/ResolverActivity.java
6848dc8e3b54fb27047836d8026c4c9971754607 14-Oct-2014 Jim Miller <jaggies@google.com> Add a checkbox option to 'require password to decrypt'

Fixes bug 17881324

Change-Id: Id94e593a172d686339c736473226fece1bb749ee
nternal/widget/LockPatternUtils.java
d8a21bbedbaeb752b7f458823ed709b9a01c14c1 14-Oct-2014 Nicolas Prevot <nprevot@google.com> Merge "Not using resource ids for EXTRA_INITIAL_INTENTS inside a managed profile." into lmp-mr1-dev
e61e68d001ac858d87a7f639515f12c3eafcd297 10-Oct-2014 Dianne Hackborn <hackbod@google.com> am 18d2d51e: am 7ea69880: Merge "Improve some docs, fix some debugging." into lmp-dev

* commit '18d2d51ee30d8df4d3afa5e7b6bb7e7171a18b63':
Improve some docs, fix some debugging.
1a815921694ca2b3ad4dbb85bf82d85e831bc84e 10-Oct-2014 Nicolas Prevot <nprevot@google.com> Not using resource ids for EXTRA_INITIAL_INTENTS inside a managed profile.

Inside ResolverActivity: when getting the ResolveInfo for EXTRA_INITIAL_INTENTS:
The ResolveInfo is created directly inside ResolverActivity, not by PackageManagerService.
So, noResourceId had not been set to true for this ResolveInfo.
So setting it inside ResolverActivity.

This is needed since inside a managed profile, the icons are not associated with resource ids.

BUG:17577733
Change-Id: Ic4f0439128f95482167103b783344e2baa0aed52
nternal/app/ResolverActivity.java
18d2d51ee30d8df4d3afa5e7b6bb7e7171a18b63 10-Oct-2014 Dianne Hackborn <hackbod@google.com> am 7ea69880: Merge "Improve some docs, fix some debugging." into lmp-dev

* commit '7ea69880bdbf2c51140460dcfd063dc015c3ce26':
Improve some docs, fix some debugging.
ab4a81b3c625e33d04ae8070fcce6b6baee6522c 10-Oct-2014 Dianne Hackborn <hackbod@google.com> Improve some docs, fix some debugging.

- Add docs to Binder, Messenger, ResultReceier to explain their
relation (or lack there-of) to process lifecycle.
- Clarify some aspects of process lifecycle for services.
- Fix help text of am command.
- Fix per-package dumping of battery stats to not include history.
- Fix per-package dumping of proc stats to only include aggregated
and current stats and fix some formatting.
- Fix per-process dumping of meminfo to have an option to interpret
the input as a package, so including all processes that are
running code of that package.
- Fix top-level per-package debug output to correctly include all
of these improvements and give them a little more time (10s) to
complete for timing out.

Change-Id: I2a04c0f862bd47b08329443d722345a13ad9b6e2
nternal/app/ProcessStats.java
d83e9e42805e340384f30199777fbc472c5c6f20 09-Oct-2014 Dianne Hackborn <hackbod@google.com> am 0761b1b5: am 89b19695: Merge "Put in real "code" (aka marketing) name." into lmp-dev

* commit '0761b1b5ebb453a411e3289c1c972dbfddcee880':
Put in real "code" (aka marketing) name.
fe087d38a8cca08680e659c57176b3afd735ea90 09-Oct-2014 Alan Viverette <alanv@google.com> Merge "Fix invalid bounds detection in ExploreByTouchHelper" into lmp-mr1-dev
0761b1b5ebb453a411e3289c1c972dbfddcee880 09-Oct-2014 Dianne Hackborn <hackbod@google.com> am 89b19695: Merge "Put in real "code" (aka marketing) name." into lmp-dev

* commit '89b196958fee07475765bd3c458098464ba16f2e':
Put in real "code" (aka marketing) name.
9eef8749232c00afad5ca3c26736c0be785cb8c1 08-Oct-2014 Dan Sandler <dsandler@android.com> am 2200f86f: All (er, L) is finally revealed.

* commit '2200f86f800876d005f911e6864708fa9772d03a':
All (er, L) is finally revealed.
89b196958fee07475765bd3c458098464ba16f2e 08-Oct-2014 Dianne Hackborn <hackbod@google.com> Merge "Put in real "code" (aka marketing) name." into lmp-dev
2200f86f800876d005f911e6864708fa9772d03a 06-Oct-2014 Dan Sandler <dsandler@android.com> All (er, L) is finally revealed.

If you exceed 20000 points, please send in a screenshot.

Bug: 15984887
Change-Id: I1164160bfa8e7dca3b9e7d7ca5d50ef9abd38b61
nternal/app/PlatLogoActivity.java
955d8d69ea6caabce1461dc25b339b9bf9dc61a6 08-Oct-2014 Dianne Hackborn <hackbod@google.com> Put in real "code" (aka marketing) name.

Change-Id: Idb3976edfae37293ed75cb5b869b4b42d8042bbe
nternal/app/ResolverActivity.java
1d5ef81e29279f769d79315f2a38e747ea92e10f 07-Oct-2014 Jeff Sharkey <jsharkey@android.com> am 99586dc0: Merge "Reduce PackageInstaller I/O pressure." into lmp-dev

* commit '99586dc0108d0f4311c8af4d06ed113bbf40a6ee':
Reduce PackageInstaller I/O pressure.
02bd78490d8594d225ecc70a74b2058cb968a657 07-Oct-2014 Jeff Sharkey <jsharkey@android.com> Reduce PackageInstaller I/O pressure.

When performing a restore during initial device setup, we could be
installing hundreds of packages. Currently, we're writing all
metadata (including heavy icons) for every session mutation! Because
we're holding the mSessions lock while writing all this heavy data,
we end up causing ANRs when apps call other PackageInstaller APIs.

This patch mitigates by moving the heavy icon data into separate
per-session PNG files, which we only persist when changed.

Bug: 17881962, 17567794
Change-Id: I4dee15d4a65a8eb65c381e6bb7477728b6cc30d2
nternal/util/XmlUtils.java
7a81bd82f4d05e6843e4a9743e194cceb0c2d2e1 02-Oct-2014 Alan Viverette <alanv@google.com> Fix invalid bounds detection in ExploreByTouchHelper

Empty bounds are actually valid in some cases.

Change-Id: I2b9bf7c072e0370d13eff71e22498959eab07797
nternal/widget/ExploreByTouchHelper.java
bebcde4453af3f0711c60d09f5b0f82076daff3d 02-Oct-2014 Paul West <paulofthewest@google.com> Merge "[DS] DSDS support for widget view" into lmp-sprout-dev
dea847c2ace8894a595cf9bd87764ce2ca9698ab 01-Oct-2014 Patrick Tjin <pattjin@google.com> Skip over directories when iterating tombstones

Bug: 17380601
Change-Id: Idb6e559a89c7438751bd7a52375b9789454e0334
erver/BootReceiver.java
97850c066b3eccdabecdd5f424735883661c12ed 11-Sep-2014 Mick Lin <Mick.Lin@mediatek.com> [DS] DSDS support for widget view

Change-Id: If8b8410eb3cc471933f0b109973ea1f43fe5e791
nternal/widget/AccountItemView.java
nternal/widget/AccountViewAdapter.java
44d4eeaa48721296663a05d01071f196a509dc34 30-Sep-2014 Svetoslav <svetoslavganov@google.com> Merge "Use default encryption password if an accessibility service is enabled." into lmp-dev
16e4a1aade2b73edfdaa42aa86a3893fd039fc62 30-Sep-2014 Svetoslav <svetoslavganov@google.com> Use default encryption password if an accessibility service is enabled.

When device is encrypted the user has to authenticate in order to decrypt
the data partition which is required for running accessibility services
and Text-To-Speech. In order to address this issue we are falling back
to use the default password if there is an enabled accessibility service
and the user has secure lock. This will enable the user to authenticate
when accessibility layer is completely functional.

bug:17671790

Change-Id: Iafffe7bcd234008cf91ffb5011b21b803dca227a
nternal/widget/LockPatternUtils.java
fb3809ca63c17ac09162e08ee3eef0bdae16dc73 30-Sep-2014 Dianne Hackborn <hackbod@google.com> Fix issue #17705755: Battery stats resets at incorrect times

Revert back to (mostly) KK behavior, fix a problem where we were
collecting some data in an inconsistent state.

Change-Id: Ida3ca3fb734a9d7d61a90fd5044152e927c59e02
nternal/os/BatteryStatsImpl.java
73d6a821aeecd6003c70c32f7ae6c38f062c4290 29-Sep-2014 Dianne Hackborn <hackbod@google.com> Work on issue #17656716: Unhandled exception in Window Manager

Remove the checks for large parcel sizes. Those were triggering,
and identifyng the area of the problem, but also cause a lot of
trouble by making the unsafe deadlocky code there much more likely
to deadlock.

Add logging for strict mode IPCs, since those seem to be the
problem. Only log when things look bad.

Also add a log when battery stats are reset, to diagnose why they
are getting reset when they shouldn't be.

Change-Id: I588c858fb8d8c45f3c9c164ae2de9ae01547b304
nternal/os/BatteryStatsImpl.java
208678718f9f8db3bc279c7d5bd1445af2831ae3 10-Sep-2014 jgu21 <jinghui.gu@intel.com> Frameworks/base: Early init native bridge

Add the app directory to the arguments for starting a process.
Add a check for NeedsNativeBridge and a call to PreInitializeBridge
in the native fork code.

(cherry picked from commit 2eacd06bfb82b33dfcbccafbcfc0bf1218484bb5)

Bug: 17671501
Change-Id: I970db5b284b0c12e2d8a45df3950c1fff2927a4e
nternal/os/Zygote.java
nternal/os/ZygoteConnection.java
f839b4fcb6b179529585765517895a8c90fe315b 26-Sep-2014 Elliott Hughes <enh@google.com> Set the system locale correctly even on an encrypted device.

Bug: 17659622
Change-Id: Ibbbd5b959bfab5345f20b556c4720d0910b50084
nternal/widget/LockPatternUtils.java
2f1993ec460166413e7887f151630f6708077c0f 26-Sep-2014 Dianne Hackborn <hackbod@google.com> Fix issue #17671802: "content" command always prints...

..."uid 2000 does not have android.permission.UPDATE_DEVICE_STATS"

Make sure to clear calling identity before getting into the guts
of the activity manager. Also fix the places the activity manager
calls in to battery stats to not require a permission check, anyway.

Change-Id: Ifd90937875b9fe0c36aa3f5cf1ec173746914e6b
nternal/app/IBatteryStats.aidl
a35c77aea61cd0701a921d245ce15bfbd923f117 26-Sep-2014 Adam Powell <adamp@google.com> Always show the name of the last used Home app in ResolverActivity

Bug 17629220

Change-Id: Ia1d0a188f8c0911e5b74b18ba44508a6e2139d0c
nternal/app/ResolverActivity.java
625e8f595978693a079c4c20ac8d70e8710947e9 26-Sep-2014 Adrian Roos <roosa@google.com> Merge "Ensure that setting an empty password clears it" into lmp-dev
3a5a0be61ec7ea08884c80817c226f7cfe531a67 25-Sep-2014 Paul Lawrence <paullawrence@google.com> Fix pause when setting pin/pattern/password

Move setting encryption pin/pattern/password into a separate thread

Bug: 17554587
Change-Id: Ifdf2ed5aa9ca08d68bb2ed08c8985203c24dcb9f
nternal/widget/LockPatternUtils.java
ab7dae58cc831471b9a677575ac3dccd17779925 25-Sep-2014 Adrian Roos <roosa@google.com> Ensure that setting an empty password clears it

Bug: 17496766
Change-Id: I7c29b632519247bc5675a05ef6cc90902fec8527
nternal/widget/LockPatternUtils.java
004a4b20f8d3116e6a711525960d433fcfea4ee4 24-Sep-2014 Jeff Sharkey <jsharkey@android.com> Include reason when wiping data.

This will help us track down who requested a data wipe.

Bug: 17412160
Change-Id: If8413e5d6377773f37e8b34ae3d26347226a027c
nternal/os/storage/ExternalStorageFormatter.java
d0e0154c1f0be7786f12aea60add7ed4fb7c4e6c 23-Sep-2014 Dianne Hackborn <hackbod@google.com> Merge "Maybe fix issue #17614177 APR: system process restarting due to infinite loop" into lmp-dev
25e1ecaabbde4741663c8e5a777d9df9b939572c 23-Sep-2014 Dianne Hackborn <hackbod@google.com> Maybe fix issue #17614177 APR: system process restarting due to infinite loop

Also try to get rid of a huge wtf we are seeing across a lot of devices
where we incorrectly change real states on a service that is restarting,
and get rid of one of the noisier boot logs in the package manager.

Change-Id: I2510b6fb082eac3f6168cbd57bc3b70ad006114d
nternal/app/ProcessStats.java
e7868959184ebf711ad7e67a22b51480ec2a9582 22-Sep-2014 Alan Viverette <alanv@google.com> Merge "Pass explicit null theme when preloading drawables" into lmp-dev
ca5e72c5aeb85c99ed7a5ae3bf3a870462562352 22-Sep-2014 Yohei Yukawa <yukawa@google.com> Merge "Work on issue #17506095: Plumb a new configuration to IMMS" into lmp-dev
84e001a9f514a047816f27db6ce836966efa481e 22-Sep-2014 Alan Viverette <alanv@google.com> Pass explicit null theme when preloading drawables

Prevents "unresolved theme attributes" warning.

BUG: 17589490
Change-Id: I5217d85b1d5ce8b551315ee8b1ca79eccfac3f10
nternal/os/ZygoteInit.java
5507b223dd238402d7dded3a974f7bc6885b8478 22-Sep-2014 Yigit Boyar <yboyar@google.com> Merge "Allow fallback to Toolbar's default Navigation Icon" into lmp-dev
e63b5fae8d099d2f5d4d5a5cf7a8d5a86266c0fe 19-Sep-2014 Yohei Yukawa <yukawa@google.com> Work on issue #17506095: Plumb a new configuration to IMMS

This CL makes a plumbing from SystemConfig to IMMS.

Change-Id: Ia70b870723acf647e0c27f24aff91b40d6f85543
nternal/inputmethod/InputMethodUtils.java
30f5dc935b30a72982cc2ee04c8c2a17ba95e885 19-Sep-2014 Yigit Boyar <yboyar@google.com> Allow fallback to Toolbar's default Navigation Icon

Bug: 17554486
Change-Id: Id9f2197820df42d81351540be5baa852f49bdf0a
nternal/widget/ActionBarView.java
nternal/widget/DecorToolbar.java
nternal/widget/ToolbarWidgetWrapper.java
ecd7c96aa4144224c1e6c47d079d043abb86839c 19-Sep-2014 Alan Viverette <alanv@google.com> Correctly apply max width/height to preference icons

BUG: 17581750
Change-Id: I8ad21a321c80f0a657670ba4d175d0ebecea49ef
nternal/widget/PreferenceImageView.java
07ecc748fb378a1acb86f3b93a7ad35d8fbb5aa5 18-Sep-2014 Alan Viverette <alanv@google.com> Merge "Use action bar theme for action modes, fix ViewStub inflation theme" into lmp-dev
d4710c87e607fbdb59a56e51eef7e6ec4bb56d2c 18-Sep-2014 Sander Alewijnse <salewijnse@google.com> Merge "Update targetSdkVersion check." into lmp-dev
a9ddb8dc23b253c53f24ceb81e9d596c072d834e 18-Sep-2014 Alan Viverette <alanv@google.com> Use action bar theme for action modes, fix ViewStub inflation theme

BUG: 17262483
BUG: 17513621
Change-Id: I74764570a11da162a224e94978e21e52d17e2e84
nternal/view/StandaloneActionMode.java
fd20f196b12fbb6934283baadb855837f4215b40 17-Sep-2014 Yigit Boyar <yboyar@google.com> Merge "Handle action mode changes properly for actionbar tabs" into lmp-dev
80ea66b1029a72b031795cfcb2980558211a0f35 17-Sep-2014 Sandeep Siddhartha <sansid@google.com> Merge "Fix issues with multiple languages and multi-users" into lmp-dev
2bbad0cddce213ffd3d1e0909f2dc74dd0038ba7 17-Sep-2014 Yigit Boyar <yboyar@google.com> Handle action mode changes properly for actionbar tabs

Bug: 17513613
Change-Id: I4ebcadc618558153b72bf577232adc3e616adb6b
nternal/app/WindowDecorActionBar.java
nternal/widget/ActionBarContainer.java
nternal/widget/ToolbarWidgetWrapper.java
8cf8f71644643601fe8c3e9538fd00412b1ae8b1 15-Sep-2014 Sandeep Siddhartha <sansid@google.com> Fix issues with multiple languages and multi-users

For multi-user the issue was looking into the user ID of the current
process instead of the active user. The current process was the system
process and the call to UserManager was returning a user handle that
wasn't of any use while trying to map sound models to a user.

For language, the issue was that we were incorrectly just looking up the
model based on the keyphrase id, however we should have also taken the
enrolled model's locale into account.

Explicitly document that for model management the string representation of locales
is a BCP47 language tag.

Remove debug logging.

Bug: 16798166
Bug: 17462570
Bug: 17463511
Change-Id: Ieffb3e218de63f6e7f40af9705dced481a35b0ad
nternal/app/IVoiceInteractionManagerService.aidl
3846c1d2611aa0fc4c6b86df988444494cfad268 16-Sep-2014 Adam Lesinski <adamlesinski@google.com> Merge "Show the lockscreen when more than 1 user is present" into lmp-dev
61d9409239c5ed360ffc2181eee6b981aad9192b 16-Sep-2014 Adam Lesinski <adamlesinski@google.com> Show the lockscreen when more than 1 user is present

Bug:17399024
Change-Id: Iaf2ea2747cbcd9db45ba9faa7c8fe0389a799855
nternal/widget/LockPatternUtils.java
84f20ec49df3bfc8b40a27964ba2b074e5f101fc 16-Sep-2014 Yohei Yukawa <yukawa@google.com> Merge "Minimize the number of default enabled IMEs part 3" into lmp-dev
afd3a3a0491f2997b479f4c17bcfc7bc75bc6670 16-Sep-2014 Adam Powell <adamp@google.com> Merge "Treat empty string as title-set in ToolbarWidgetWrapper" into lmp-dev
6192b07bdc81072fe8d8579b2625a9ba3999a3a0 16-Sep-2014 Adam Powell <adamp@google.com> Treat empty string as title-set in ToolbarWidgetWrapper

If a developer explicitly sets the empty string as the title of a
Toolbar that is used as an action bar via Activity#setActionBar, don't
overwrite it with the window title. This clears up a nonintuitive
behavior when explicitly clearing the title of a toolbar.

Bug 17510951

Change-Id: I183c2ca57d3bd16ae1f89bb7daa2cdf086189138
nternal/widget/ToolbarWidgetWrapper.java
d044ad97a8ac1f62c572c7e42c77e960441d8d02 15-Sep-2014 Adam Powell <adamp@google.com> Finish materializing dialogs

Fix bottom spacing for dialogs with no button bar

Remove default dividers from dialog lists

Bug 17503404

Change-Id: Icdcaaad99f70a259ff3f892d6385257801e38437
nternal/app/AlertController.java
38ea779b429d4292bdda9349cbf78aa2f0e0fc18 15-Sep-2014 Sander Alewijnse <salewijnse@google.com> Update targetSdkVersion check.

Bug:16509819
Change-Id: I471c4a5b2450b4cc64414dfa2dae75d51cce3abb
nternal/app/ResolverActivity.java
dc489241cfb3691a87942344cf55efd3d98c1107 13-Sep-2014 Yohei Yukawa <yukawa@google.com> Minimize the number of default enabled IMEs part 3

With this CL, the behavior of getDefaultEnabledImes() changes
as follows:

- Previously system IMEs are always enabled by default as long
as it is a software keyboard that supports En_* subtype. With
this CL, getDefaultEnabledImes() relies on the locale returned
from getFallbackLocaleForDefaultIme() instead of calling
isSystemImeThatHasEnglishKeyboardSubtype() to minimize the
number of enabled IMEs.
- Previously default enabled system IMEs are chosen in a
country-agnostic way. As a result, "en_IN" is enabled even
when the system locale is "en_US". With this CL, the system
first tries to find IMEs with taking the coutnry into account,
and use the country-agnostic way when and only when fallback
logic is required.

BUG: 17347871
Change-Id: I6571d464a46453934f0a8f5e79018a67a9a3c845
nternal/inputmethod/InputMethodUtils.java
9dbe94d8cdd91c948160ca08c9028df455826c08 15-Sep-2014 Adam Powell <adamp@google.com> Merge "Magic null-background filling for PhoneWindows" into lmp-dev
f849a5e16d016fb6ae081a4575ce67f4ce688e3a 12-Sep-2014 Adam Powell <adamp@google.com> Magic null-background filling for PhoneWindows

In the past it's been a recommended approach to avoiding overdraw for
apps to set their window background to null at runtime if their
content view fully covers their window surface. The problem with this
is the IME.

The IME can force a resize of the window at unexpected times and
unless an app has been configured to fit system windows and manually
cover the padded area that the IME window covers, the asynchronous
nature of the IME-show process can leave surface buffer garbage
visible to the user. In previous platform versions this wasn't an
issue since pre-renderthread we would always animate a crossfade from
the closed to open state. This animation was always a bit of a hack
since it could break the contract of requestLayout/invalidate on the
view hierarchy - it could result in a draw happening into the saved
"before" state of the crossfade before a pending layout.

Now that this has been cleaned up the buffer garbage is sometimes
visible.

To prevent this, PhoneWindow now detects the state of a null window
background and draws solid rects into the area not covered by a
window's content. Which color is determined by the window context's
theme, though this is not a public API available to apps.

Bug 17006497

Change-Id: I714439a1608c4ae135f3d9d49bb165330d9fbe9f
nternal/widget/ActionBarContainer.java
nternal/widget/BackgroundFallback.java
nternal/widget/DecorContentParent.java
4605b2929ead9119096818d6f5c44d3b2bbf6319 14-Sep-2014 Chet Haase <chet@google.com> Merge "set correct bounds in ActionBar based on visibility of ActionBarView" into lmp-dev
ccd3da23c6dbdda2af5c5d746652e4b240cb4f50 13-Sep-2014 Chet Haase <chet@google.com> set correct bounds in ActionBar based on visibility of ActionBarView

ActionBarContainer was setting the bounds of its background assuming the
visibility of the ActionBarView. But that view becomes GONE when the
ActionBarContextView is visible, causing artifacts such as wrong shadows
when resized (as in custom configuration changes).

Issue #17280341 Quantum: drop shadow on CAB has wrong width after rotation on L, when configuration change is handled by the app

Change-Id: I07e57f00e27b41d5370cb9440b35734a8ec10f3a
nternal/widget/ActionBarContainer.java
5ec679a0fa2e26c058a8094836d80e4e989f74d5 21-Aug-2014 Xin Guan <a18772@motorola.com> Fix crash in TranserPipe.

Sometimes the pipe has been closed when it's thread tries to access

E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: TransferPipe
E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.FileDescriptor android.os.ParcelFileDescriptor.getFileDescriptor()' on a null object reference
E AndroidRuntime: at com.android.internal.os.TransferPipe.run(TransferPipe.java:184)
E AndroidRuntime: at java.lang.Thread.run(Thread.java:818)

Change-Id: I0fcd4a3334b49972903f2cb0edb51323ba3f49e5
nternal/os/TransferPipe.java
c68f27625bfd18d945ab214983ae05206b6f3bfa 14-Sep-2014 Yohei Yukawa <yukawa@google.com> Merge "Minimize the number of default enabled IMEs part 2" into lmp-dev
68c860bb29861e54fd9b868bd5af701b054a1dc0 13-Sep-2014 Yohei Yukawa <yukawa@google.com> Minimize the number of default enabled IMEs part 2

Previously the system tried to enable at least one auxiliary IME
even when the system is not ready. However, this doesn't make
much sense because the user should be able to set up their phone
without auxiliary IMEs. Also, IMEs enabled before the system
becomes ready are kept to be enabled after the system becomes
ready. Thus, we should minimize the number of enabled IMEs
until the system becomes ready.

BUG: 17347871
Change-Id: Ife93d909fb8a24471c425c903e2b7048826e17a3
nternal/inputmethod/InputMethodUtils.java
ead6ad8a383d945a4c625cb537372c8ee65f6ab4 13-Sep-2014 Tyler Gunn <tgunn@google.com> Merge "Renaming Telecomm to Telecom." into lmp-dev
c0b8cb89105e814f2dc710c4b6f932ff726f0134 13-Sep-2014 Yohei Yukawa <yukawa@google.com> Merge "Minimize the number of default enabled IMEs part 1" into lmp-dev
ef9f6f957d897ea0ed82114185b8fa3fefd4917b 13-Sep-2014 Tyler Gunn <tgunn@google.com> Renaming Telecomm to Telecom.

- Changing package from android.telecomm to android.telecom
- Changing package from com.android.telecomm to
com.android.server.telecomm.
- Renaming TelecommManager to TelecomManager.

Bug: 17364651
Change-Id: I192cb5d189f55db012ea72ee82ccc5aedbc21638
nternal/widget/LockPatternUtils.java
a7d0d557718d0feaa2760666cd95c66e2d88c551 13-Sep-2014 Dianne Hackborn <hackbod@google.com> Work on issue #17477510: Time change notifications sent too often

This gets rid of the spam from the battery history, by not creating
an event unless the wall clock time has changed by more than
+/- 500ms.

We'll do the remaining work in MR1.

Change-Id: I8d1cc41b5504261033d3b0ccdcf9e7cf70df9d04
nternal/os/BatteryStatsImpl.java
5e5c60a43a93a0b5f16680042f2fecf6e0ecd0d7 12-Sep-2014 Yohei Yukawa <yukawa@google.com> Minimize the number of default enabled IMEs part 1

Basically this CL does following clean-ups as groundwork.
- Embed isDefaultEnabledIme into its only one caller
- Fix a typo in isSystemAuxilialyImeThatHashAutomaticSubtype()
- Use exit-early style in getMostApplicableDefaultIME()

No behavior change is intended by this CL.

BUG: 17347871
Change-Id: I831502db502f4073c9c2f50ce7705a4e45e2e1e3
nternal/inputmethod/InputMethodUtils.java
64d4dca63f65e4c7d4a829c85ff6670bdd34e2eb 28-Aug-2014 Alexandra Gherghina <alexgherghina@google.com> Assign default icon to users at creation time and in SystemUI.

Right now different code in System UI, Settings app and other places replace the
user icon with their own default. This tries to make it consistent by moving the
mechanism used in Settings in a helper class.

Bug: 17311038
Change-Id: Ic858c65bf82a98b9806dbba029e7cdcf441f372e
nternal/util/UserIcons.java
3fadee479107f0494e1e190aba2a1eea12cb0a75 08-Sep-2014 Yohei Yukawa <yukawa@google.com> API Review: Clean up removed APIs

This CL removes old API signatures marked as @removed
in the follow CLs.
- Ic8c6fab58c01206872a34e7ee604cdda1581364d
- Ia8cbb9f6b41cd9509fc0147fd68763dfde593ffc
- I772c48ff18918e48a81e807b48ff907614485c09

This is just a clean-up CL. No behavior change is intended.

BUG: 17200900
BUG: 17320996
BUG: 17365414
Change-Id: Ibfbd5cc1cdebb8851c73477cff55c9b2d631fdea
nternal/view/InputConnectionWrapper.java
38c29ca3c75b46d631992d77af858bcd82cd04e9 12-Sep-2014 Brian Carlstrom <bdc@google.com> Merge "Add zygote preloading of shared libraries" into lmp-dev
6c9af96de59ab2feebe3d0165548591c4f632bc5 12-Sep-2014 Brian Carlstrom <bdc@google.com> Add zygote preloading of shared libraries

Bug: 17459019
Change-Id: I7cb4ecd0ec9542aa9079420fe158cedca7fca028
nternal/os/ZygoteInit.java
dba92d416dc8020a0d9cf6e10158c9524c67796a 12-Sep-2014 Yigit Boyar <yboyar@google.com> Merge "Add support for default content description in DecorToolbar" into lmp-dev
91317107a39a4f2a9347105b96aafcb98fe21fee 11-Sep-2014 Paul Lawrence <paullawrence@google.com> Create correct files in dropbox on encrypted boot

On the minimal framework start, don't mark ro.runtime.firstboot, allowing
the real framework to properly create the dropbox files in the real /data

Bug: 17450632
Change-Id: Ic53b3471b44e69f3eea7e3f3de18e789f51192bc
erver/BootReceiver.java
023b6812abbca465773acd6141ff672d525a83ee 11-Sep-2014 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #17414533: update batterystats occasionally takes a couple..." into lmp-dev
e91f7c0219d0f47d9c44a4933b571b0a482ec058 11-Sep-2014 Yigit Boyar <yboyar@google.com> Add support for default content description in DecorToolbar

Bug: 16888338
Change-Id: I0f3f8fcd39cfd29d239801392dd712869749aecf
nternal/app/ToolbarActionBar.java
nternal/widget/ActionBarView.java
nternal/widget/DecorToolbar.java
nternal/widget/ToolbarWidgetWrapper.java
652973fca83c48d8b4622493f10e656b8d86dd17 11-Sep-2014 Dianne Hackborn <hackbod@google.com> Fix issue #17414533: update batterystats occasionally takes a couple...

...hundred milliseconds.

Rework the locking so that no critical paths block on the cpu collection.

Change-Id: Ie615a033f7f8b523b67abee62c581d1a8fce324c
nternal/os/ProcessCpuTracker.java
b4e5061fd6e0b665e025713643378ec31188cff2 10-Sep-2014 Mathieu Chartier <mathieuc@google.com> Change EmptyArray System.identityHashCode to Object.hashCode.

Equivalent behavior, improves performance since
Object.hashCode has a fast path in the java side that does not
require JNI.

According to traceview sampling profiler:
Calendar had 6.8% time in System.identityHashCode during launch.
0.4% time in System.identityHashCode after the change.

Bug: 16828525

Change-Id: I1ed1d1283a990f990b0d4352cc1f4822b1dadf7b
nternal/util/ArrayUtils.java
1d38f5899019f3f0dead3b7aae6a22b216546845 09-Sep-2014 Zoltan Szatmary-Ban <szatmz@google.com> Merge "Extend IKeyChainService AIDL with CACert retrieval" into lmp-dev
fd1e93d128da9dbb2f97630c01239bb56199686e 08-Sep-2014 Adam Powell <adamp@google.com> New new design for ResolverActivity

Switch back to using a list as the grid and differently positioned
activity icons were confusing to users. Keep the distinct "last used"
presentation but align icons and titles with the further choices
below. Adjust this to make the fold more apparent. Remember
open/closed slider state across config changes.

Fix some bugs in nested scrolling and flinging.

Bug 17301272

Change-Id: I175937d5821df27b6ac7ffad7f01cd9a6ed3e3e3
nternal/app/ResolverActivity.java
nternal/widget/ResolverDrawerLayout.java
6b0ed64fb868e64684031558cbdeedcd94d40713 05-Sep-2014 Andreas Gampe <agampe@google.com> Frameworks/base: Add native bridge post-fork initialization

(cherry picked from commit d7746a8b65ee4690427ed798816f970218578fa3)

Change-Id: I5a20de1cb68dd1802937b369b14c50c9c1031c67
nternal/os/Zygote.java
nternal/os/ZygoteConnection.java
f0ae135049048424bceccb0799b12377181b25f0 18-Aug-2014 Zoltan Szatmary-Ban <szatmz@google.com> Extend IKeyChainService AIDL with CACert retrieval

Bug:16029580
Change-Id: I41a3bd2f3bd95550e59f1d0d0acd0e765d7b62d7
nternal/util/ParcelableString.java
e016605981985b64cc28a8272474ae925801548b 08-Sep-2014 Jeff Sharkey <jsharkey@android.com> Merge "Delayed ASEC allocation, refine progress handling." into lmp-dev
77d218e1869e69c8d436b09cd11dcfe45e50b2cf 06-Sep-2014 Jeff Sharkey <jsharkey@android.com> Delayed ASEC allocation, refine progress handling.

For restore use-case, session creation needs to complete quickly, so
delay ASEC allocation until session is opened. When preflighting
size checks, only consider external when we have a known size for the
container. Also relax size checks when using MODE_INHERIT_EXISTING
on external, since we don't know how much of existing app will be
copied over.

Consider session as "active" while commit is ongoing, until we're
either finished or pending user interaction.

Always publish first client needle movement away from 0. Use 25% of
internal progress to reflect ASEC allocation.

Avoid CloseGuard messages about leaking PFDs.

Bug: 17405741, 17402982
Change-Id: I6247a1d335d26621549c701c4c4575a8d16ef8c2
nternal/content/PackageHelper.java
nternal/util/XmlUtils.java
ce78347c37000347c9dbd4487d53a3f4aceff692 06-Sep-2014 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #17397177: BatteryStats reporting error on job start/stop" into lmp-dev
c3940bc1ba753bcbeb9849239ec4b2ec685c40e2 06-Sep-2014 Dianne Hackborn <hackbod@google.com> Fix issue #17397177: BatteryStats reporting error on job start/stop

Dumb, dumb, dumb mistake.

Also fix battery stats wakeup reason tracking to use a SamplingTimer
(like kernel wake locks) so we can track both the duration and count
for each wakeup reason.

Change-Id: I89d69661006dc533622b1b7e68a139166d3a6975
nternal/os/BatteryStatsImpl.java
248b369661f412bfac9b9b117d6911106558c1a0 05-Sep-2014 Anwar Ghuloum <anwarg@google.com> Merge "Timing Hacks DO NOT MERGE" into lmp-dev
629dc1801331ce89e8ee0ff7ee5dcde1d7512417 04-Sep-2014 Anwar Ghuloum <anwarg@google.com> Timing Hacks DO NOT MERGE

Let's submit to see any lingering effects.

Bug: 17310019
Change-Id: I791bceec0b6aa8b80ac4e6c582a10c3f0ec7a906
nternal/os/Zygote.java
nternal/os/ZygoteConnection.java
nternal/os/ZygoteInit.java
c46125042493e66f7dfdccec24e3b0739600b194 05-Sep-2014 Adam Powell <adamp@google.com> Menu callbacks for ToolbarActionBars, part 2

Pass through the menu mode change events and make sure Activities get
prepare/open/close events properly.

Bug 17326424

Change-Id: I0ac2f56e4d0054ef01720b2ff1c41ded053750c7
nternal/app/ToolbarActionBar.java
e50a26f3d874940dd345d7f65a1aa98aa9527bd4 05-Sep-2014 Adam Powell <adamp@google.com> Merge "Dispatch more menu events to window callbacks from ToolbarActionBar" into lmp-dev
04c0d4607897157f01c908475fa0c6d7301cf7e5 05-Sep-2014 Adam Powell <adamp@google.com> Dispatch more menu events to window callbacks from ToolbarActionBar

Wire through the callbacks that result in onPrepareOptionsMenu being
called properly when an activity overflow menu is opened.

Bug 17326424

Change-Id: Ifc5b67af0d215f210bb00326f82f60ba55a36d52
nternal/app/ToolbarActionBar.java
135b59e597bcace4da493327cb5f4abfb1587468 04-Sep-2014 Yorke Lee <yorkelee@google.com> Merge "Use TelecommManager APIs to detect if we are in a call" into lmp-dev
4ef16eaa8db55b758ac8f8a0702b69c6124f84ae 04-Sep-2014 Adam Powell <adamp@google.com> Merge "Change the CAB to use the up-glyph for closing action modes" into lmp-dev
b2536cf473a6fc386eea75ab8c97edf3a1ad323b 04-Sep-2014 Adam Powell <adamp@google.com> Change the CAB to use the up-glyph for closing action modes

In an effort to reduce glyph proliferation, change the "done"
checkmark from the CAB to the up-navigation arrow, placing the CAB
firmly in the current navigation hierarchy. This matches behavior for
expandable action views such as SearchView.

Allow the use of different CAB "done" layouts by theme; the material
layout should not include the "done" text and should use the standard
borderless selectable item background.

Bug 17372188

Change-Id: Icfb3e0bbc6a718e22ab27f9d520da5fe4eb833e7
nternal/widget/ActionBarContextView.java
cc5179f0e3725a5f3c140fc57d719e18b7aa104f 04-Sep-2014 Yorke Lee <yorkelee@google.com> Use TelecommManager APIs to detect if we are in a call

Bug: 17335666
Change-Id: I5f443c76041e51a2eca903db924fb26031dde055
nternal/widget/LockPatternUtils.java
98a31b2ef0cdcf68ea1ded8620a59c3d13ac9c19 04-Sep-2014 Alan Viverette <alanv@google.com> Merge "Only use default backgrounds when not extending AlertDialog style" into lmp-dev
b17c6c178f7b7b2774915497c7d2a871cf1fd85f 04-Sep-2014 Alan Viverette <alanv@google.com> Only use default backgrounds when not extending AlertDialog style

BUG: 17368867
Change-Id: I440dad33cfb093c13b450a5f2369481fb30665ad
nternal/app/AlertController.java
d1dc910effbbe0998a00e428767eed562aa6f25c 04-Sep-2014 Dan Sandler <dsandler@android.com> Merge "Reduce RAM requirements of grayscale icon testing" into lmp-dev
05c362d5645367c816069aa138b597b77f317aa4 03-Sep-2014 Dan Sandler <dsandler@android.com> Reduce RAM requirements of grayscale icon testing

The isGrayscale family of methods is designed to identify
drawables and bitmaps that apps are using in the largeIcon
position to pose as small icons in order to get the
appropriate background treatment (a solid blue or gray block
in KK/JB, or geniune selvedge denim in ICS/HC).

We can optimize this search two ways:

(1) Reject immediately any largeIcon that is larger than
largeIcons should be (64x64dp). We could one day simply
reject, or resize, these in the notification manager,
but regardless these are not plausible smallIcon
subsitutes. This new constraint is commemorated in the
new name, isGrayscaleIcon().

(2) Shrink the bitmap even smaller before scanning it slowly
in Java. This lets native_drawBitmap do the heavy
lifting across the entire bitmap; we need only scan a
few pixels.

Bug: 16513124
Change-Id: I3a2b79130ed2465a4aedfbb5a556db7f8a7aa132
nternal/util/ImageUtils.java
nternal/util/NotificationColorUtil.java
d8636ea7ca78df83d6b04088eab7853f15f3e999 03-Sep-2014 Yohei Yukawa <yukawa@google.com> API Review: InputConnection

This CL does nothing but rename some L API candidates
in InputConnection class, as per requested.

- requestUpdateCursorAnchorInfo()
-> requestCursorUpdates()
- REQUEST_UPDATE_CURSOR_ANCHOR_INFO_IMMEDIATE
-> CURSOR_UPDATE_IMMEDIATE
- REQUEST_UPDATE_CURSOR_ANCHOR_INFO_MONITOR
-> CURSOR_UPDATE_MONITOR

BUG: 17320996
Change-Id: I772c48ff18918e48a81e807b48ff907614485c09
nternal/view/IInputConnectionWrapper.java
nternal/view/InputConnectionWrapper.java
nternal/widget/EditableInputConnection.java
12b0321c0b400f105cad40568a1f572020ba6336 03-Sep-2014 Adam Powell <adamp@google.com> Automatically supply a content description for ToolbarActionBar nav

If the developer hasn't set a navigation content description on the
Toolbar assigned to be an action bar or a home-action content
description via the ActionBar interface, use the framework default
"navigate up" string.

Also make sure that the default Up description is supplied in the
screen_toolbar window decor layout and that it is parsed properly in
all toolbars, even if we don't have an icon set during construction.

Bug 17298370

Change-Id: Ie2f9e34f92046d4d4ffb9a07e38fa89581891f7b
nternal/app/ToolbarActionBar.java
1572ee379e1d070c7ad1c37a626ed25db5341a3e 01-Sep-2014 Adrian Roos <roosa@google.com> Trust: Look at the security unlock method of the right user

Follow up to Ic9e93862c722ebc529f5b2010b9cea941f569ce7.

Bug: 17107213
Change-Id: I8f3c19aedeaca3f265c98a4fb60ab74b115fca47
nternal/widget/LockPatternUtils.java
cc562a811da508b275254f275d6e0c1758a47d07 27-Aug-2014 Adam Lesinski <adamlesinski@google.com> Make UsageStats API comply with API Council

- Fix documentation to mention units of time in APIs.
- Return a Map instead of an ArrayMap

Bug:17289531
Change-Id: I0a2cfdc0bc003eeeb65a16e37bb7b991624b2853
nternal/app/ResolverActivity.java
72d35fa829549a138504dde35a42535a296f79cb 29-Aug-2014 Yohei Yukawa <yukawa@google.com> Reject request when any unknown flag is speficied

Currently EditableInputConnection#requestUpdateCursorAnchorInfo
never returns false unless InputMethodManager is somehow
unavailable.

This is problematic, especifially when we add a new flag to
EditableInputConnection#requestUpdateCursorAnchorInfo in a
future release.

With this CL, #requestUpdateCursorAnchorInfo does nothing and
immediately returns false when one ore more unknown bits are
specified.

BUG: 17324806
Change-Id: I5601714b481e8efa0ad3337c0d093cfcf55eade3
nternal/widget/EditableInputConnection.java
2db754ac6e2cddf01801c450bb8200b01cddf410 28-Aug-2014 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #17289876: startActivityFromRecents appears to launch the wrong task" into lmp-dev
d7c9289f935992f4ae2fc032747f9e04bb86a7d0 28-Aug-2014 Dianne Hackborn <hackbod@google.com> Fix issue #17289876: startActivityFromRecents appears to launch the wrong task

It would be good to actually bring the task to the front.

Also, make the flow when inTask is provided better match what happens when
we go looking for a task on our own.

And this includes another fix that was supposed to be part of a different
change but I forgot this class is part of the framework project now.

Change-Id: I3cf05f2e585c0fd7a0dbb7c7cf9fb1655764dd93
nternal/os/BatteryStatsHelper.java
7d9eefd871f1cdc5ebc36fa92dae48a737ae2928 28-Aug-2014 Dianne Hackborn <hackbod@google.com> Fix issue #16953886: History and batterystats checkin summary...

...start timestamps are in 1970s

Look for the wall clock time being very small, and try to update
it to a better value if we see one.

Also handle time change events to update the current time we a re
tracking.

Change-Id: Ifbae2b8c43ab5baa75ee4f672a752a542e23b52d
nternal/os/BatteryStatsImpl.java
5232271a41323594ae406be7476b6ca2f08af3d8 27-Aug-2014 Dianne Hackborn <hackbod@google.com> Fix issue #17146552: system anr

Add a safe path for Slog.wtf that doesn't acquire an activity manager
lock or block in any way.

Change-Id: I8fef8251a0cb85081442cae55d85063944248d15
nternal/os/RuntimeInit.java
4902a89103ede745a933186d524fb739791eba2a 27-Aug-2014 Adam Powell <adamp@google.com> Merge "Adjust toolbar/action bar title handling" into lmp-dev
af2d85973ed768e390bc2f40f255ea39cc6f6fe5 27-Aug-2014 Adam Powell <adamp@google.com> Adjust toolbar/action bar title handling

Treat activity title changes as window title changes when propagating
to action bars. This gives it lower priority if a "hard" title has
been set. Fix some lifecycle handling around this that previously
resulted in multiple calls.

Automatically detect the starting display options for a
ToolbarWidgetWrapper if we're not grabbing them from styles. This
prevents setTitle and friends from going totally out to lunch if
constructed around a Toolbar with no starting title.

Bug 17138048

Change-Id: I9f58a3d222546745c8aa873e996b8f0d52a0ad21
nternal/app/ToolbarActionBar.java
nternal/app/WindowDecorActionBar.java
nternal/widget/ToolbarWidgetWrapper.java
5b62d263a70ad7dceba7a488b11478ad3eaf3f45 26-Aug-2014 Paul Jensen <pauljensen@google.com> Merge "Implement VpnConfig.addAllowedApplication()." into lmp-dev
4610545dd28ebf316704e119572521e97dbbd6bd 26-Aug-2014 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #16311398: Limit number of documents a process can open" into lmp-dev
d68f83cc478a8ec501d0a5a08a2a737355bee89a 26-Aug-2014 Calin Juravle <calin@google.com> Merge "Pass vmSafeMode (manifest attribute) to installd." into lmp-dev
89ad456ea49cb62615ebdcac83a2515743bbe5fa 25-Aug-2014 Dianne Hackborn <hackbod@google.com> Fix issue #16311398: Limit number of documents a process can open

In application processes, monitor for when we start getting close
to the Dalvik heap limit, and ask the activity manager to try to
prune old activity instances in that case.

Add an explicit API for apps to ask that they have their own
activity instances cleaned up, if they want.

Fix some bugs in launching activities that were not correctly
applying the "multi task" behavior in the appropriate situations
of document-centric recents.

Clean up the activity manager's process removal code to all share
a common path.

Add a new "Spam" option to ActivityTests, which continually creates
new tasks, checking that the activity manager will now prune old
tasks rather than letting the app run out of RAM.

And while I was was doing this, I found problems with the path
for bringing an empty task to the foreground -- it could make
a new task instead of re-starting the root activity in the
existing task. This is fixed, and some code in the recents
UI for working around the bug is removed.

And as long as I am doing that, we now have nice hooks in to
the activity manager for AppTask to give some APIs for better
managing the task, so add those along with more tests for these
APIs in ActivityTests.

We should look at also having the activity manager try to prune
old tasks when it sees app processes being killed, to better balance
memory use across multiple processes when some processes may host
many documents. That however is for another CL...

Change-Id: I2bb81c3f92819350c868c7a7470b35817eb9bea9
nternal/os/BinderInternal.java
e4b1d57dfd89035a67984e1a295d5ef5b97953be 26-Aug-2014 Nancy Chen <nancychen@google.com> Merge "API review PhoneManager -> TelecommManager. Rename methods (6/6)" into lmp-dev
0784eeab28da094a87437ed454fe3dca01b1f9f2 19-Aug-2014 Paul Jensen <pauljensen@google.com> Implement VpnConfig.addAllowedApplication().

bug:17109588
bug:13651397
Change-Id: Ibb944794627117728373f0105e24f196f3eeb9e9
nternal/net/VpnConfig.java
396ac76fd37fbc1ad6f8268cb3beb9d003067271 25-Aug-2014 Paul Lawrence <paullawrence@google.com> Show PIN screen with all PINs, not just simple ones

Bug: 17194645
Change-Id: I8b8ccd2b7cf6dbfac567492387d4f4fd61258a34
nternal/widget/LockPatternUtils.java
0eb1e402c7e612887e38dc5516f11506b11fd835 22-Aug-2014 Nancy Chen <nancychen@google.com> API review PhoneManager -> TelecommManager. Rename methods (6/6)

PhoneManager
- handlePinMMI docs should explain what a Pin is and what MMI is
- rename isInAPhoneCall to isInCall
- rename showCallScreen to showInCallScreen
- merge this class into TelecommManager, we don't need both

Bug: 16960458

Change-Id: I7d573e27ed093f2ddb7849703cc62f9916835393
nternal/widget/LockPatternUtils.java
37cf9907d201e39ecf8a8de934c44e3eaf04b6db 24-Aug-2014 Jeff Sharkey <jsharkey@android.com> Merge "Installing splits into ASECs!" into lmp-dev
90b1b9f985a91fb54254705515f822b09c68ac26 22-Aug-2014 Jeff Davidson <jpd@google.com> Restore legacy VPN stats dialog.

Was originally removed in ag/522961, but restoring to keep legacy VPN
behavior the same from within VpnSettings. This dialog is only
accesible from VpnSettings and so should only ever be shown for legacy
VPNs.

Bug: 17164793
Change-Id: I06c4e136e1023b8f84edfd15a15264d2e41d325b
nternal/net/LegacyVpnInfo.java
nternal/net/VpnConfig.java
941a8ba1a6043cf84a7bf622e44a0b4f7abd0178 21-Aug-2014 Jeff Sharkey <jsharkey@android.com> Installing splits into ASECs!

Sessions can now zero-copy data directly into pre-allocated ASEC
containers. Then at commit time, we compute the total size of the
final app, including any inherited APKs and unpacked libraries, and
resize the container in one step.

This supports both brand new ASEC installs and inheriting from
existing ASEC installs. To keep things simple, it currently requires
copying any inherited ASEC contents, but this could be optimized in
the future.

Expose new vold resize command, and allow read-write mounting of ASEC
containers. Move native library extraction into the installer flow,
since it needs to happen before ASEC is sealed. Move multiArch flag
into NativeLibraryHelper, instead of making everyone pass it
around. Migrate size calculation to shared location.

Separate "other" package name in public API, provide a path to a
storage device when relevant, and add more docs.

Bug: 16514385
Change-Id: I06c6ce588d312ee7e64cce02733895d640b88456
nternal/content/NativeLibraryHelper.java
nternal/content/PackageHelper.java
c9991c7149ccd320200ad62ac0036fe57c5cc831 22-Aug-2014 Adam Powell <adamp@google.com> Merge "Fix (another) measurement issue in ActionBarContainer" into lmp-dev
2b7ff72683b71e87c327eb781dfbcc5d6fb5c9f9 22-Aug-2014 Adam Powell <adamp@google.com> Fix (another) measurement issue in ActionBarContainer

Or, the patch in which we discover how many silly bugs adamp caused in
e77b6590.

Change-Id: Iaacd3792d161e068dee74b897872e9ab2f155aca
nternal/widget/ActionBarContainer.java
5d04fee90063f333895e2d9521f1fd3739d8a3bc 22-Aug-2014 Elliott Hughes <enh@google.com> Merge "Don't show the pseudolocales unless we're in developer mode." into lmp-dev
1960b324345cd4b1808393a783ec4b84be9dd7de 22-Aug-2014 Yigit Boyar <yboyar@google.com> Merge "Fix RTL bug for actionbar tooltips" into lmp-dev
dee5cde1ec3cca5235c397acdb217ddadaa7994f 22-Aug-2014 Elliott Hughes <enh@google.com> Don't show the pseudolocales unless we're in developer mode.

The old zz_ZY and zz_ZZ pseudolocales are gone, replaced by ar_XB and en_XA.
The existing check for "developer mode" wasn't working, and now the
pseudolocales are there by default, we want to _remove_ them if we're not
in developer mode rather than add them if we are in developer mode.

Bug: 17190407
Change-Id: I6ee6eba53f5b816ef8e0d1768c94cd3484a196b5
nternal/app/LocalePicker.java
c793c9eb2422936cab70ff310937baf0ae551e02 22-Aug-2014 Adam Powell <adamp@google.com> Merge "Add a missing condition when checking measurement for ActionBarContainer" into lmp-dev
a12aaa75df2a7611f38050e2111a767a20a91b1b 22-Aug-2014 Adam Powell <adamp@google.com> Add a missing condition when checking measurement for ActionBarContainer

It even said "non-tab" right there.

Bug 17202141

Change-Id: Iacc7ec9610d2639aab59dd57ba7194178fb6391f
nternal/widget/ActionBarContainer.java
9a434ae00f065f038b33aed586e50f68fae501e3 22-Aug-2014 Brian Carlstrom <bdc@google.com> Merge "Move SystemBackupAgent from services.jar to frameworks.jar" into lmp-dev
feb193085adbdc379ee70dbb7dc6ae4c9f2971dd 21-Aug-2014 Calin Juravle <calin@google.com> Pass vmSafeMode (manifest attribute) to installd.

The flag is used to enforce --interpret-only flag when running dex2oat.

Bug: 12457423
Change-Id: Ifdafcc1afa32996577fa44c5682eeb58c79772ac
nternal/os/InstallerConnection.java
076e72554d4367a0377047fe7eb2e3ea73c5baec 22-Aug-2014 Adrian Roos <roosa@google.com> Merge "Only run TrustAgentServices for users with secure keyguards" into lmp-dev
a277db28e990d1f6f74ace0c32fe92401660a840 22-Aug-2014 Yohei Yukawa <yukawa@google.com> Remove CursorAnchorInfoRequest and related stuff

This CL removes CursorAnchorInfoRequest and related stuff
in favor of InputConnection.requestUpdateCursorAnchorInfo,
which is more easy to understand. This CL also deprecates
InputMethodManager#updateCursor and related stuff.

Rationale:
1. The spec of #updateCursor says that it provides the cursor
position in local coordinates, while the input method
requires it in the screen coordinates.
2. #updateCursor has never been enabled in AOSP, because
InputMethodManager#isWatchingCursor always returned false.
3. There has been no way to let
InputMethodManager#isWatchingCursor return true.
4. In L, InputMethodManager#updateCursorAnchorInfo is
introduced to address all the issues above.

Given that we no longer need to support #updateCursor,
CursorAnchorInfoRequest is overkill when we need to convey
just a couple of parameters.

BUG: 17185263
BUG: 17182367

Change-Id: I4a577bfd02b37b9e56c80b8b41bb25afa95dd8ef
nternal/view/IInputConnectionWrapper.java
nternal/view/IInputContext.aidl
nternal/view/IInputContextCallback.aidl
nternal/view/InputConnectionWrapper.java
nternal/widget/EditableInputConnection.java
8def5cbb3a1a68bb66fbe7ce63fcc8eadcbb238d 22-Aug-2014 Brian Carlstrom <bdc@google.com> Move SystemBackupAgent from services.jar to frameworks.jar

Bug: 17168017
Change-Id: I89b98ca839a78eeb7fb43930e0699ee235deafad
erver/backup/SystemBackupAgent.java
d719539f91d4f5cf6c0f9be0b68b750dcd443433 22-Aug-2014 Yigit Boyar <yboyar@google.com> Fix RTL bug for actionbar tooltips

Bug: 12570378
Change-Id: I13ba94c8b736a3a80a8d79e95bd18b93a1157303
nternal/view/menu/ActionMenuItemView.java
7bf41929f246873f3c1206a0ef2d2180b9e2edb6 21-Aug-2014 Paul Lawrence <paullawrence@google.com> Merge "Save PatternVisible setting to crypto header" into lmp-dev
4b9e324b6f59f49a8ca4bc4cd8b38a5ea005a6b2 20-Aug-2014 Adrian Roos <roosa@google.com> Only run TrustAgentServices for users with secure keyguards

Bug: 17107213
Change-Id: Ic9e93862c722ebc529f5b2010b9cea941f569ce7
nternal/widget/LockPatternUtils.java
878ba0a266246f29e8145612a2a58e5e997b018c 20-Aug-2014 Paul Lawrence <paullawrence@google.com> Save PatternVisible setting to crypto header

Bug: 17059314
Change-Id: Ic64c64567f70ea11030cabfd33b57f77fb23dac7
nternal/widget/LockPatternUtils.java
635c21b06194cd1b426d1936e7fdf7db34b5bb98 21-Aug-2014 Adam Powell <adamp@google.com> Fix measurement regression in ActionBarContainer

Make sure that we take into account all child views (including
ActionBarContextViews) when measuring the action bar container to
determine the measurement influence of an additional tab bar.

Bug 16982971

Change-Id: I53ba7e9a4c9e36d97c6385d2007a3ee0a4e2bc77
nternal/widget/ActionBarContainer.java
75f9918760ca3eb6cf753737fb34fb57146a5e59 21-Aug-2014 Adam Powell <adamp@google.com> Merge "Unify code paths for collapsing action views in action bars" into lmp-dev
5352a89e8a633e348c450aaee835d2a2d72e8ae0 21-Aug-2014 Adam Powell <adamp@google.com> Unify code paths for collapsing action views in action bars

This reverts a well-intentioned bugfix that made
ActionBarOverlayLayout focusable in touch mode and caused issues with
some activity layouts. Removes the associated key handling code for
the Back key in ActionBarOverlayLayout and handles it at a higher
level in Activity instead. (This same code path was already in use by
ToolbarActionBar.)

Bug 17105724

Change-Id: I57e4cace44a6d11f25a2549644b565446d616a52
nternal/app/WindowDecorActionBar.java
nternal/widget/ActionBarOverlayLayout.java
05542603dd4f1e0ea47a3dca01de3999a9a329a9 11-Aug-2014 Jeff Davidson <jpd@google.com> Less intrusive VPN dialog and other UX tweaks.

-The ability to launch VPNs is now sticky; once approved by the user,
further approvals are not needed UNLESS the connection is revoked in
Quick Settings.

-The old persistent notification has been removed in favor of the new
Quick Settings UI.

-The name of the VPN app is now pulled from the label of the VPN
service rather than the app itself, if one is set.

Bug: 12878887
Bug: 16578022
Change-Id: I102a14c05db26ee3aef030cda971e5165f078a91
nternal/net/LegacyVpnInfo.java
nternal/net/VpnConfig.java
ae4a10c17fd8972ac583292e3254790c30feffc2 20-Aug-2014 Adam Powell <adamp@google.com> Merge "Correctly populate title for ResolverActivity" into lmp-dev
11f59a08994d24991980887501e3c04f21a93325 20-Aug-2014 Adam Powell <adamp@google.com> Correctly populate title for ResolverActivity

This affects accessibility feedback.

Bug 17147141

Change-Id: I3e90b80c2813e79e0abe1c5ddc6e0c115a6369dd
nternal/app/ResolverActivity.java
bb7b7bea19223c1eba74f525c7fe87ca3911813b 20-Aug-2014 Jeff Sharkey <jsharkey@android.com> More progress towards split APKs in ASECs.

Teach DefaultContainerService to install split APKs, which will be
needed when moving to/from ASECs. Also support forward locking for
testing purposes, even though its deprecated.

Move native library unpacking code to NativeLibraryHelper location
where it can be shared by both DCS and PMS. Also update footprint
calculation logic to mirror the later unpack codepaths.

Immediately persist sealed sessions. When resolving install
locations, prefer location of any existing install of that
package. Lightweight parse requesting certificates now always
verifies that all contents are signed correctly.

Bug: 16514385
Change-Id: Ida1c4eb0f95b065104dd971e19126d4085ebf1f0
nternal/content/NativeLibraryHelper.java
nternal/content/PackageHelper.java
249a7fdf4411f923c2fc69416b483a7d14f8b8cd 19-Aug-2014 Dianne Hackborn <hackbod@google.com> Merge "Temporary: raise overflow limit, print all wake locks." into lmp-dev
acc4a120742eed5905de2c7ee690f251cc32a0ae 19-Aug-2014 Dianne Hackborn <hackbod@google.com> Temporary: raise overflow limit, print all wake locks.

Change-Id: I02baa775b8e0659bd9cd4547b8671730f056cb86
nternal/os/BatteryStatsImpl.java
468fef687031f0d4f050bb001392fffc6ccf2c4b 19-Aug-2014 Michael Wright <michaelwr@google.com> Merge "Persist Show IME option." into lmp-dev
7b5a96ba8364d5c180780b2f878f5a2b949cfdac 10-Aug-2014 Michael Wright <michaelwr@google.com> Persist Show IME option.

Add a new setting to persist whether to show the IME when a hard
keyboard is connected.

Bug: 14066881
Change-Id: I2237ded850a0d4ab43ca441d0b7df13e0958e630
nternal/inputmethod/InputMethodUtils.java
665366a3055c7baa36242b8c92c5ff85b1c3394b 08-Aug-2014 Michael Wright <michaelwr@google.com> Change 'disable hardware keyboard' to 'show input method'

Previously it implied that the hardware keyboard would be disabled,
but really the toggle would just enable showing the IME even if a
hardware keyboard was present. Changed the string and swapped the
semantics to be more clear about the behavior.

Bug: 14066881
Change-Id: I9c8a7eb98b5277f1d09cc19fa7402e9b4cf51d92
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
f52233df74bb4a3efa1f7b9107353c841eafc933 18-Aug-2014 Nicolas Prevot <nprevot@google.com> Merge "When forwarding intents, ignoring the package set in the intent." into lmp-dev
028ceeb472801bcfa5844fc89ed0da8463098824 18-Aug-2014 Dianne Hackborn <hackbod@google.com> Fix issue #14617210: Apps can gain access to any ContentProvider...

...with grantUriPermissions (no user interaction required)

Add a new path in to the activity manager to start an activity as
if it was directy started by the original calling activity. This
is specifically for the resolver activity and chooser activity to
be able to safely launch its data after serving as an intermediary.

Access to the new method is highly restricted -- it can only be
called by an activity that is declared in the framework apk itself,
and the execute-as-the-caller behavior will only happen if the
code is running under the system uid. (This means we could still
have these run in the client's process in some cases and still work
correctly.)

Note there is some commented out code here half-done about trying
to propagate security exceptions back to the original calling
activity. This would be really nice, especially now with the
chooser activity running in a system process so any errors made
by the app (bad permission grants, bad intents, etc) no longer
actually appear in the app so are essentially invisible. I'd
really like to figure out a way to propagate these exceptions back
to the app, but this is hard since the app's process may no
longer even be running at this point.

Also tweak activity manager dump output to split the recents
dump out from activities, since recents can now be super large.

Change-Id: I50410c4783faf9302c69290589a068a846e0973a
nternal/app/ChooserActivity.java
nternal/app/ResolverActivity.java
89e4ae2f504b4c55d7823c3f04d4894de0d8e471 18-Aug-2014 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #16629489: Google (Play?) Services eating through battery" into lmp-dev
d953c53d3b04d772bb1b62ede1c2011641ca82b5 17-Aug-2014 Dianne Hackborn <hackbod@google.com> Work on issue #16629489: Google (Play?) Services eating through battery

There is a bug in how we deal with name overflows combined with resetting
the battery stats data. If we do a reset while a wakelock is being
actively held that has been put into the overflow bucket, then we can
end up reducing the number of known wake locks in the list so when after
that it is released we try to release it under its real name rather than
the overflow name.

This means we need to keep track of which wake locks have been placed
in the overflow bucket while they are actively being used, so we can be
sure to properly handle it as part of that bucket until it is eventually
released.

This makes things... somewhat more complicated. So now we have a class
to take care of all these details, and also use it for other places where
we have the same overflow semantics sync and job stats.

Also fix potential deadlock -- BatteryStatsHelper needs to call on to
ConnectivityManager to find out of there is telepohny, however we use
that class when doing a dump while the battery stats lock is held. To
fix this, we check the connectivity state up in the battery stats service
before acquiring the lock and propagate that information through to the
dump code.

Change-Id: Ib452206af5c36f4b0f03cc94d2845d36613d1ba5
nternal/os/BatteryStatsHelper.java
nternal/os/BatteryStatsImpl.java
8f4a21e46609527a38fbd423a8da8a45f57d84d1 19-Aug-2014 Adam Powell <adamp@google.com> Merge "Fix a bug propagating navigation button events from ToolbarActionBar" into lmp-dev
14e1afe0d86de826ae1831d64ca00da03da86b4b 19-Aug-2014 Adam Powell <adamp@google.com> Fix a bug propagating navigation button events from ToolbarActionBar

Add a simple internal wrapper for dealing with window callback events.
This should also make working with things like action modes from
ToolbarActionBar significantly easier in later changes.

Bug 16980711

Change-Id: I2c3d7525489a21847f4af9b80f6ebf9b34b4dd58
nternal/app/ToolbarActionBar.java
742e790294b3441b79f715fe447069b63c6065db 17-Aug-2014 Jeff Sharkey <jsharkey@android.com> Progress towards staging ASECs.

Move location selection logic into shared PackageHelper location,
and share it between DCS and PackageInstaller. Fix bugs related to
installed footprint calculation; always count unpacked native libs.

Have PMS do its own threshold checking, since it's fine to stat
devices. PMS only ever deleted staging ASECs, so move that logic
into installer and nuke unclaimed staging ASECs. Allocate legacy
ASEC names using PackageInstaller to make sure they don't conflict
with sessions.

Start wiring up session to allocate ASEC and pass through staged
container for installation.

Fix bug to actually delete invalid cluster-style installs.

Bug: 16514385
Change-Id: I325e0c4422fc128398c921ba45fd73ecf05fc2a9
nternal/app/IMediaContainerService.aidl
nternal/content/PackageHelper.java
376e4ba96222163be1f1cf409dc697550be4a285 14-Aug-2014 Nicolas Prevot <nprevot@google.com> When forwarding intents, ignoring the package set in the intent.

Apps should not be allowed to target a specific package in the target user.

BUG: 17025506

Change-Id: I81afa2f8d0a1114d91c001e357366792c63b6577
nternal/app/IntentForwarderActivity.java
9c7ed91d78a34d9fe3a7a094f31ec3834a004e71 15-Aug-2014 Zoltan Szatmary-Ban <szatmz@google.com> Merge "Revert "Revert "Revert "Revert "Revert "Update Trusted Credentials screen in settings"""""" into lmp-dev
3291de8f6c8bc7ffa5992a2a5a5c2cf8bb0adf4b 15-Aug-2014 Zoltan Szatmary-Ban <szatmz@google.com> Revert "Revert "Revert "Revert "Revert "Update Trusted Credentials screen in settings"""""

This reverts commit c9249c69813c6fb889d71d84583c67ae2942e6de.

Change-Id: I5504fddaf7b18efb73cd6c76678b3b39ce9b0229
nternal/util/ParcelableString.java
f8d72cc14f70f5af13342c4c7b107a8ab60dfe23 15-Aug-2014 Zoltan Szatmary-Ban <szatmz@google.com> Revert "Revert "Revert "Revert "Update Trusted Credentials screen in settings""""

This reverts commit 87efe74e092236c372d3b6909009641123aa416a.

This should be fine now with all the dependency CLs +2-ed


Change-Id: I96ad14ad5ff81e6b5391035cb6c5a62339c6cc40
nternal/util/ParcelableString.java
f75aadc028f2e79541a269bf2c74dcb3482e2ec7 15-Aug-2014 Narayan Kamath <narayan@google.com> Revert "Revert "Revert "Update Trusted Credentials screen in settings"""

This reverts commit 19c8ce291e89a9ef1442a20e1feab421b11536d7.

Change-Id: Ie5a5571127311e0a29f314c0566e779cfe940b53
nternal/util/ParcelableString.java
1e7bc0def8c62b91d3eb985a51bec54063ce83f5 15-Aug-2014 Zoltan Szatmary-Ban <szatmz@google.com> Revert "Revert "Update Trusted Credentials screen in settings""

This reverts commit 0f0de0bdd021bad5f85fdb0399a4ea91a1611e25.

Change-Id: Ia3d0907e3d7c2ec42d64e45f60e3dfaffb932c3d
nternal/util/ParcelableString.java
35cbf0e4508770f68771fea1ce54a277db50ea15 15-Aug-2014 Narayan Kamath <narayan@google.com> Merge "Remove system_server classes from the boot image." into lmp-dev
29564cd24589867f653cd22cabbaac6493cfc530 07-Aug-2014 Narayan Kamath <narayan@google.com> Remove system_server classes from the boot image.

We set the system_server classpath in the environment
(like we do with BOOTCLASSPATH). After the zygote forks
the system_server, we dexopt the classpath (if needed)
and then launch the system server with the correct
PathClassLoader. This needed several small / medium
refactorings :

- The logic for connecting to installd is now in a separate
class and belongs in the system_server.
- SystemService / SystemServiceManager have now moved to
classes.jar. They are only used from there, and since they
use Class.forName, we want them to be loaded by the
system_server classloader, and not the bootclassloader.
- BootReceiver now moves to frameworks.jar, because it is
used by ActivityThread and friends.

bug: 16555230

Change-Id: Ic84f0b2baf611eeedff6d123cb7191bb0259e600
nternal/os/InstallerConnection.java
nternal/os/RuntimeInit.java
nternal/os/ZygoteConnection.java
nternal/os/ZygoteInit.java
erver/BootReceiver.java
erver/SystemService.java
erver/SystemServiceManager.java
9da2f1e007268a42248a1778aa9b560e3ce3b704 14-Aug-2014 Jeff Sharkey <jsharkey@android.com> Some networks may have null ifaces, I guess?

Seems like a bug further upstream, but guard ourselves against it
for now.

Bug: 17033841
Change-Id: Id0e5895c3389b63d4e34b1fb064efef8b72cd609
nternal/os/BatteryStatsImpl.java
9fde9a250fffc15c6bcdfc985de12c8646a9813c 15-Aug-2014 Chet Haase <chet@google.com> Merge "ActionBarOverlay needs to be focusable" into lmp-dev
235510e67210f90de30c2d5582a2077ccc589619 13-Aug-2014 Jose Lima <joselima@google.com> Made AlarmClockInfo a nested class in AlarmManager

Bug: 16959028
Change-Id: I150eaaff765d1e214c3621c1bf50162ec0dac8ec
nternal/widget/LockPatternUtils.java
1e610d479f091f1b09f2a7e5201711bf4d311f6f 13-Aug-2014 Chris Craik <ccraik@google.com> Fix action bar background drawing

bug:16940717

Fixes regression from 0de8add60e0d40c59def41663acae4d57d0b4b15

Change-Id: I7ec30a9c0c9422874cad106a2caeb7dcbe75e1b6
nternal/widget/ActionBarContainer.java
8de4311c51229efbe2f2d0afbf298982c5cadd96 11-Aug-2014 Jorim Jaggi <jjaggi@google.com> Lockscreen launch animations

- Get rid of ActivityManager.dismissKeyguardOnNextActivity, which was
used for two different things: Dismiss keyguard from somewhere else
(not really necessary anymore), wait to actually dismiss keyguard
after the window behind is drawn. Instead, introduce
keyguardWaitingForActivityDrawn(), and change the semantics where
necessary.
- Make wallpaper_close_enter consistent with task_open_enter and the
Keyguard launch animation.
- Close the panel even on lockscreen when launching a notification.
- Block notification shade updates during the collapsing motion so
notification don't play the disappear animation immediately after
having launched a notification.

Bug: 15991916

Change-Id: I133c177b84e926c87c1a404ba93d633593fec3ab
nternal/policy/IKeyguardService.aidl
90e854ab7b470a1f41d70df523dfa451cecdf683 13-Aug-2014 Chet Haase <chet@google.com> ActionBarOverlay needs to be focusable

Issue #16654827 Settings search does not close all the way.

Change-Id: I6e46ac828a6a5e90e29761c176899b90d32563c5
nternal/widget/ActionBarOverlayLayout.java
c15819748a78963f0dbfbb06300419daf3d2f5f6 07-Aug-2014 Jorim Jaggi <jjaggi@google.com> New lock pattern assets and animations

Also removes the arrows.

Bug: 16196240
Bug: 13735707
Change-Id: I5a6606d916192fff594c7e6211e80b73ccd30456
nternal/widget/LockPatternView.java
eb2c2c790c4b86c9c09245e0b87a38972713434a 12-Aug-2014 Jeff Sharkey <jsharkey@android.com> Hack and ship: NetworkStats edition.

Some devices use clatd for catching raw IPv4 traffic when running on
a pure-IPv6 carrier network. In those situations, the per-UID
stats are accounted against the clat iface, so framework users need
to combine both the "base" and "stacked" iface usage together.

This also means that policy rules (like restricting background data
or battery saver) need to apply to the stacked ifaces.

Finally, we need to massage stats data slightly:

-- Currently xt_qtaguid double-counts the clatd traffic *leaving*
the device; both against the original UID on the clat iface, and
against UID 0 on the final egress interface.

-- All clatd traffic *arriving* at the device is missing the extra
IPv6 packet header overhead when accounted against the final UID.

Bug: 12249687, 15459248, 16296564
Change-Id: I0ee59d96831f52782de7a980e4cce9b061902fff
nternal/net/NetworkStatsFactory.java
6d2a9492e2b19421165f0cd918d9f28595bfb770 08-Aug-2014 Jeff Brown <jeffbrown@google.com> Eliminate power manager latency for boot completed.

The power manager disables the power button until boot completed
occurs. If there are many pending broadcasts in the queue, it
may be possible for BOOT_COMPLETED to be delayed for several
seconds after boot.

To avoid the delay, introduced a new boot phase which is
sent to system services immediately when boot completed happens.

Bug: 13398280
Change-Id: I1833d2ffb20305009dd76363b43e534034f1d0a2
erver/SystemService.java
bf1a4a81ebd340a18583f4ca9b5d562a01f55674 09-Aug-2014 Christopher Tate <ctate@google.com> Start using cancelFullBackup() when appropriate

The API was in place but the framework wasn't yet calling it.

Bug 16524520

Change-Id: Ie368758c830a7d0ad11e7dd3142a0ed896069944
nternal/backup/IBackupTransport.aidl
81f6d857c1baef5e159bb34dad540baf77572782 09-Aug-2014 Adam Lesinski <adamlesinski@google.com> Merge "Second iteration of the UsageStats API" into lmp-dev
3516800b611a79339a3c188332d13a26e9086b09 22-Jul-2014 Adam Lesinski <adamlesinski@google.com> Second iteration of the UsageStats API

Based on feedback from API council, updated the API.
Also added support for querying the event log.

Change-Id: Ibaa008b9e5bd145acdfe8e20c25c2ed2d96be123
nternal/app/ResolverActivity.java
8e1d299da27da534b508b1da51ebe351a689cefa 08-Aug-2014 Svetoslav <svetoslavganov@google.com> Polish the new cross-profile app widget APIs

bug:14991269

Change-Id: I5996f8c69a3d151ff1ecd8f19403dd606f588150
nternal/appwidget/IAppWidgetService.aidl
cd0e335be354d117c553bb87b3432a75d550d21a 08-Aug-2014 Dianne Hackborn <hackbod@google.com> Fix issues #16655104 and #16875776 in battery stats.

Issue #16655104: Android system used 21% of battery

We weren't clearing the current process state when we now retain
process objects across resets.

Issue #16875776: abnormal outliers in screen-off battery life in go/batterystats

The checkin data since charged was using the since unplugged data
for the amount of drain with the screen on/off.

Also added a new version tag in the checkin output containing
the platform build number and internal version format number, to
start moving away from the wasteful version code on every line.

And fixed a bug in figuring out when things have changed over
discharge levels.

Change-Id: I89b89513a748016aacc848f14bbbc8b2400d92ca
nternal/os/BatteryStatsImpl.java
1a2aad0abb63d809695cb5e0bb903a7028d69f22 08-Aug-2014 Alan Viverette <alanv@google.com> Fix docs build

Change-Id: Ieaea48c597efd23449615d22969a107e607bbdc2
nternal/util/JournaledFile.java
e079264b981d87c648921185528b553a86ae353d 07-Aug-2014 Christopher Tate <ctate@google.com> API to tell the transport to cancel a full backup in progress

Bug 16524520

Change-Id: If2cbffd3c8a03bf4eb7b11ff1ae784c437e27e7f
nternal/backup/LocalTransport.java
0068d3dcf1f1a804554a1a09e3b173ac12651786 07-Aug-2014 Dianne Hackborn <hackbod@google.com> Fix issue @16555033: Battery history overflowing too much

- No longer track process starts/stops normally.
- Increase buffer size to 256KB.
- Buffer size increase requires reworking how battery stats
are retrieved, since it is going to be hitting IPC limits.
- Also, store the last full stats after a reset, to be reported
at the next checkin.
- Also, discharge and charge times are tagged with the screen
and battery save state during that time.

Change-Id: Ie108ac9b626846108a9bb858101ac2b93276ac16
nternal/app/IBatteryStats.aidl
nternal/os/AtomicFile.java
nternal/os/BatteryStatsHelper.java
nternal/os/BatteryStatsImpl.java
138b324d5db09cff27e43c8ee3614def01630013 07-Aug-2014 Zoltan Szatmary-Ban <szatmz@google.com> Merge "Revert "Update Trusted Credentials screen in settings"" into lmp-dev
678e3ecc937c00969830700dffb42fb1ee232f7c 07-Aug-2014 Zoltan Szatmary-Ban <szatmz@google.com> Revert "Update Trusted Credentials screen in settings"

This reverts commit 4fde5aa9fab931d9becfc49f7d7b8526ad5640d9.

Change-Id: I581c38d64e9829b0079bafa42615f2aa0bf64763
nternal/util/ParcelableString.java
0f5efe0b440832f6dea37b4381f9e4ebafd9bcad 07-Aug-2014 Zoltan Szatmary-Ban <szatmz@google.com> Merge "Update Trusted Credentials screen in settings" into lmp-dev
11a6ddbb6e8bdab1f6c0a4f8b3779e30e6be78f2 06-Aug-2014 Adam Powell <adamp@google.com> Merge "Fall-through for ActionModes with ToolbarActionBar" into lmp-dev
1dcedbac347a363f77bc7d4818a7da6aefd4d9f4 06-Aug-2014 Adam Powell <adamp@google.com> Fall-through for ActionModes with ToolbarActionBar

When using ToolbarActionBar simply fall through to the default window
decor behavior for showing action modes.

Bug 16660506

Change-Id: Ib90282287b2af48f39f9d9ace296581565431eed
nternal/app/ToolbarActionBar.java
cdcd487abad10f728f0542accc42a31d1f7fedac 06-Aug-2014 Winson Chung <winsonc@google.com> Fixing issue where home was triggered on top of other activities being launched. (Bug 16823617)

- Also fixes issue with the Recents hide message being clobbered
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
976e8bd2017d0263216c62111454438cc0f130e3 17-Jul-2014 Svetoslav <svetoslavganov@google.com> Allow adding widgets from user profiles.

The goal of this change is to enable support for appwidget from
user profiles to the user main profile. A user profile is a user
which is associated as a child of the main user profile. For example,
a user may have a personal (parent) and corporate (child) profile.
The device policy should be able to control whether adding a widget
from a child profile and given packages is allowed. This change
assumes that all packages from managed profiles are white listed.
Another change will add the device policy changes.

Change-Id: I267260b55d74c48b112a29979a9f59eef7a8194e
nternal/appwidget/IAppWidgetHost.aidl
nternal/appwidget/IAppWidgetService.aidl
1c8eb5e3d03ab492ae5cc69f1d179e9dc244930d 05-Aug-2014 Craig Mautner <cmautner@google.com> Use actual number of packages rather than getCount()

The ResolverActivity method getCount() returns the number of
entries below the default entry, not the total number of entries.
But the onCreate() method expected the getCount() method to
return the total number of entries. This change provides the total
to onCreate().

Fixes bug 16800358.

Change-Id: I3915c3d5ad642e31d7248226fc91bd4047f16b2d
nternal/app/ResolverActivity.java
cb566aab57cafb69c628809fc0a0ffa2151c7d6e 04-Aug-2014 John Spurlock <jspurlock@google.com> Doze: Follow the notification light.

- Send the notification light info up to SystemUI from NoMan.
- Doze mode will now periodically pulse the display (once)
if the notification light is active.
- Change "tease" terminology to "pulse", which is the singular.
Maintain the multi-pulse on buzz-beep-blink for now as extra
emphasis.
- Scrim controller now always takes number of pulses as an arg,
to support a single pulse (used for notification light, and
eventually pickup once available).
- Dial down the display brightness when pulsing.

Bug:15863249
Change-Id: Ifb208a27e82b66cff1d0c04e5b7f758098ea29cf
nternal/statusbar/IStatusBar.aidl
1386627335a79dd02fb34db344e63ca3abfce013 15-Jul-2014 Zoltan Szatmary-Ban <szatmz@google.com> Update Trusted Credentials screen in settings

Trusted credentials for both the primary user and its managed profiles are shown
on the Trusted Credentials fragment. All functionalities (e.g. disabling/enabling
of certificates) remain available.

Bug: 16029580

Change-Id: Ia92ae02d8c572bf4a3be172f6c255726cefc0fa1
nternal/util/ParcelableString.java
8e554924c527183962fc908c5f916f390f806c74 01-Aug-2014 Chris Craik <ccraik@google.com> Merge "Add outline alpha" into lmp-dev
77b5cad3efedd20f2b7cc14d87ccce1b0261960a 31-Jul-2014 Chris Craik <ccraik@google.com> Add outline alpha

bug:16140822
bug:16566746

This allows background drawables to alter the opacity of a shadow
being cast with their own alpha values.

Change-Id: I49698cc7c1bf4b2b55ffe2f82899543ca62bc61c
nternal/widget/ActionBarContainer.java
1cb2d0d4bba387665128c62c342e59103ea4be26 31-Jul-2014 Jeff Sharkey <jsharkey@android.com> Persist install sessions, more lifecycle.

To resume install sessions across device boots, persist session
details and read at boot. Drop sessions older than 3 days, since
they're probably buggy installers.

Add session callback lifecycle around open/close to give home apps
details about active installs. Also give them a well-known intent
to show session details.

Extend Session to list staged APKs and open them read-only, giving
installers a mechanism to verify delivered bits, for example using
MessageDigest, before committing.

Switch to generating random session IDs instead of sequential.

Defensively resize app icons if too large. Reject runaway
installers when they have too many active sessions.

Bug: 16514389
Change-Id: I66c2266cb82fc72b1eb980a615566773f4290498
nternal/util/XmlUtils.java
ce673ffd228234bdcb986bc44ecd40a201283571 29-Jul-2014 Nicolas Prevot <nprevot@google.com> Using the selector to check if an intent can be forwarded.

In IntentFowarderActivity, if the selector of an intent is defined,
use it to check if the intent can be forwarded.

Change-Id: Ic77f70bca5596e0a5fb0fec9b7a693afaa649089
nternal/app/IntentForwarderActivity.java
78403d79739605511ea88b653564d81d7bf4bbba 28-Jul-2014 Chris Wren <cwren@android.com> Add a log and statistics for notification expansion.

Bug: 16618854
Change-Id: I501f396fa495e1e55a27d7d0b65aac66495418c1
nternal/statusbar/IStatusBarService.aidl
6c9eee87476411faebcfa68c82abaae86344ef91 17-Jul-2014 Sander Alewijnse <salewijnse@google.com> Add warning in the disambig for specific launchers.

For launcher that do not support managed profiles.
Also, ignore the intent after click on those launchers.

Change-Id: I3d5691952a9409755b7cde68a3caba98a3772665
nternal/app/ResolverActivity.java
9679410db578e179c7559e7a52bb21c8082e9631 28-Jul-2014 Christopher Tate <ctate@google.com> Add data-management intent + label to BackupTransport API

Bug 16346320

Change-Id: Id9e855a1d3cebbf801c27a21e1edc3ffcccfd2e9
nternal/backup/IBackupTransport.aidl
nternal/backup/LocalTransport.java
42065ac64cba166dc0fe602957ea8fe80bf406e2 27-Jul-2014 Sreeram Ramachandran <sreeram@google.com> Prohibit address families by default unless a VPN explicitly allows them.

Bug: 15972465
Change-Id: I3278d94536fefacc86390c1ba4231680f7be8589
nternal/net/VpnConfig.java
c4272f32aec68ae2377141a2d6d4e6059fb36714 26-Jul-2014 Vinit Deshpande <vinitd@google.com> Enable RTT End-to-end

This change includes various fixes to first RTT implementation and
enables RTT APIs end-to-end. Fixes include proper marshalling of
objects across API and service and JNI fixes.

Change-Id: Ie4ba1ffc6c5b42593e931438b3f03e201ff6be71
nternal/util/Protocol.java
ea4f01070a9c8f5147eb228c413a84de78d98973 28-Jul-2014 Julia Reynolds <juliacr@google.com> Merge "Remove the profile/device owner user restriction bypass." into lmp-dev
401de1785eccc946ed6c35e9b7fccab92b2022af 25-Jul-2014 Julia Reynolds <juliacr@google.com> Remove the profile/device owner user restriction bypass.

Bug: 16566096

Change-Id: I4a56046df44d36d82edc64fc727e8cad5dc75382
nternal/app/IAppOpsService.aidl
452a642430e3f8abfa053e48893dd0edfb12799b 25-Jul-2014 Sandeep Siddhartha <sansid@google.com> Fix various bugs with model management

- Tie the sound model and keyphrase for simplicity
We won't support multiple keyphrases in a single model out of the box.
The db schema will need to be changed by the OEM wishing to add multiple hotwords.
This is because we currently have no way to test the flow and make sure that things work well with multiple keyphrases
and also the framework only reads the metadata for one keyphrase.

- Make the delete/update operations atomic

- Make the flow of data from Enrollment -> VIMS; the large sound model doesn't cross the process boundary any other time.
This is achieved by passing they key around, instead of the model themselves.

- Add a specific delete operation in DatabaseHelper rather than relying on emptying the keyphrases to delete.

Bug: 16555803
Bug: 16516353
Change-Id: I1e0cce137517502a669e431ca7e9f9f755598328
nternal/app/IVoiceInteractionManagerService.aidl
8cd33ed84e94036a5e1201485af7603dc6fb0d9b 24-Jul-2014 Sreeram Ramachandran <sreeram@google.com> Implement support for bypassable VPNs.

Bypassable VPNs grab all traffic by default (just like secure VPNs), but:
+ They allow all apps to choose other networks using the multinetwork APIs.
If these other networks are insecure ("untrusted"), they will enforce that the
app holds the necessary permissions, such as CHANGE_NETWORK_STATE.
+ They support consistent routing. If an app has an existing connection over
some other network when the bypassable VPN comes up, it's not interrupted.

Bug: 15347374
Change-Id: Iaee9c6f6fa8103215738570d2b65d3fcf10343f3
nternal/net/VpnConfig.java
78b7211507eefdf48a23050284195e39bced9313 25-Jul-2014 Alan Viverette <alanv@google.com> Merge "Remove duplicate Toolbar method for setting content description" into lmp-dev
e88700a2ad69e9b99824f2de3d8ba3d44054b24c 25-Jul-2014 Alan Viverette <alanv@google.com> Remove duplicate Toolbar method for setting content description

Also moves the setNavigationIcon(int) method closer to the one that
takes a Drawable.

BUG: 16491458
Change-Id: Ia02f05e6270c9d420f61f7ab34117b4c7e6548ec
nternal/app/ToolbarActionBar.java
d1c99b1fe85ed03261a77a14ae52e7fa3a6e523a 04-Jul-2014 Nicolas Prevot <nprevot@google.com> Migrate extras to ClipData for image/video capture intents.

The intents ACTION_IMAGE_CAPTURE, ACTION_IMAGE_CAPTURE_SECURE and ACTION_VIDEO_CAPTURE are now handled in a way
similar to ACTION_SEND and ACTION_SEND_MULTIPLE.
Migrate the uri in the EXTRA_OUTPUT extra to clipData, and add the flag GRANT_WRITE_URI_PERMISSION.

The userIds are now added to extra uris in the process receiving the intent, (not in the system process), because the
system process may not be able to parcel/unparcel the extras.

BUG: 15534203

Change-Id: I8f79666b726bc6d7745bf777ad3c7518945c5cc3
nternal/app/IntentForwarderActivity.java
48e28ad06cb2cb30d3c327b0215c15dd4843fb6f 25-Jul-2014 Yohei Yukawa <yukawa@google.com> Merge "Stop assuming language part in locale string is up to 2-letter" into lmp-dev
71cf0a32d0d9a45653704a671154f26a8bc3132b 24-Jul-2014 Yohei Yukawa <yukawa@google.com> Stop assuming language part in locale string is up to 2-letter

With this CL, InputMethodSubtypeSwitchingController stop
assuming that language part in locale string is up to 2-letter.

this CL is not so risky because
InputMethodSubtypeSwitchingController have used language part for
nothing but sorting subtypes to determine the initial rotation
order of IME switching.

BUG: 16502987
Change-Id: Ib159ece0b7aa04f8fd7abc96c9a6e0832a4b7cd2
nternal/inputmethod/InputMethodSubtypeSwitchingController.java
91838ded36131525312739c0929913b215519c2a 17-Jul-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Fix LEGACY mode timestamps.

Bug: 15116722

- Add CaptureCollector class to accumulate buffer timestamps
and manage lifecycle callbacks for each request.
- Set correct timestamps for buffers, results, and callbacks.

Change-Id: I75fa1049cf100d9d14c5ba8992be93ba1048df19
nternal/util/Preconditions.java
cad5768e22e5132efb2e5179f4988a763c7a8d9e 26-Jul-2014 John Spurlock <jspurlock@google.com> Doze: Update tease signal to buzz-beep-blink from NoMan.

Inform SystemUI when NoMan buzzes, beeps or blinks. Use that
as the notification signal when dozing instead of trying to figure
out interesting panel content updates.

At some point, we should move the entire calculation up into SystemUI
itself, but that's too large of a refactoring to perform now.

Bug:15863249
Change-Id: I40e92334977e0676a1363774c2cbbf91d72ec8e5
nternal/statusbar/IStatusBar.aidl
4f994eb2ddbe68b0eada89dcaae34c079df55c7e 23-Jul-2014 Adrian Roos <roosa@google.com> Disable trust agents after wrong credential is entered

Bug: 16498202
Change-Id: I36f2e80aec8c04bcb6e6d9f1b0e2ebb8fc49998e
nternal/widget/LockPatternUtils.java
3ea4310a2245763de1ba29b8ce0a21e99a702746 24-Jul-2014 Robin Lee <rgl@google.com> Show disclosure when an intent switches profiles

If an activity in one profile starts an activity in another profile
without any user interaction - such as operating the chooser - a toast
appears, saying something like 'you are using this app in your work
space'.

@bug 14375080

Change-Id: Id2dc5973a9b68ee29d0227947c19b78f021fb6ac
nternal/app/IntentForwarderActivity.java
987672d2621fa5278dbf48cbef46c50d3fafe4c1 18-Jul-2014 Geoffrey Borggaard <geoffreyb@google.com> Fixes setting password through DevicePolicyManager

LockPatternUtils wasn't taking the userId into account when
looking up the salt.
Bug: 16204999

Change-Id: I0626b5a0a55c244122c24fb4446f270918f3187c
nternal/widget/LockPatternUtils.java
6bbf39cf6b81222f32d2b66b8fa85d562e0ad71c 23-Jul-2014 Jeff Davidson <jpd@google.com> Implement VpnService.setBlocking().

Bug: 12879610
Change-Id: I3a0ad9eae5f7dd9c01f75b9da71810bad38f9fec
nternal/net/VpnConfig.java
10eaa8574bb220e7dddf9a78057f83dc64ee5687 23-Jul-2014 Dianne Hackborn <hackbod@google.com> Fix issue #16467284: Make noteStartVideo and noteStartAudio nesting

Also add new methods to clear these states, so we can avoid any
nesting issues from getting the tracking state stuck.

Change-Id: Iba0eaba2a9a186355c24d392f16118982c5331ed
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
37197df4791da690d18aefb1f24c54748515b6a0 14-Jul-2014 Narayan Kamath <narayan@google.com> Add an internal API to get all asset locales.

This will allow us to not copy paste this code verbatim into
bundled apps.

bug: 10090157

(cherry picked from commit 9e6d9d4c812d01ac07180c5d6ab64c36fb9b2aa7)

Change-Id: I34690a2b6dad51f1592f37d3c2a8c81345632c2f
nternal/app/LocalePicker.java
ed8e09b66467d6a27ff30cf5248a0f0b3650eead 23-Jul-2014 Alan Viverette <alanv@google.com> Remove dialog icons

BUG: 16493564
Change-Id: Ica59abb70a924cccd705172d323a535ef9b75cf1
nternal/app/ExternalMediaFormatActivity.java
nternal/app/NetInitiatedActivity.java
f3d00e4e0a313fc76790a2b2d3f6569911b4094d 22-Jul-2014 Chong Zhang <chz@google.com> update battery stats for audio/video

Bug: 12979595

Change-Id: I581376cb88a2d14dc4bad77d454b9bba73d0eb9b
nternal/app/IBatteryStats.aidl
22a117d1b60869ed36d125796396f190b4b002fb 22-Jul-2014 Alan Viverette <alanv@google.com> Add popupTheme attr, propagate from ActionBar to ToolBar

BUG: 16347549
Change-Id: I934ec2469f8c136f750e2e2cf9b333e229393ac3
nternal/widget/ToolbarWidgetWrapper.java
33a234b3b001bc2a11efcad9e800f7a15682cb6d 21-Jul-2014 Adam Powell <adamp@google.com> Merge "Sort ResolverActivity items based on UsageStats" into lmp-dev
09a65601b24b77b7e5b3d2d4c7c30eded1ba1040 21-Jul-2014 Adam Powell <adamp@google.com> Sort ResolverActivity items based on UsageStats

Sort targets by the total amount of time the user has spent with their
containing package in the foreground.

Bug 15694906

Change-Id: I63c956424f78eb22911517674dfefd96901d19f8
nternal/app/ResolverActivity.java
edad7b24c17fa501f59af3c159e94e7b590e4145 13-Jul-2014 Adrian Roos <roosa@google.com> Update LockPatternUtils to new alarm API

Change-Id: Idc6c2865b86e467e1e254452326f327f145177b0
nternal/widget/LockPatternUtils.java
13420f2311757554c314f620c83cb55153b67612 19-Jul-2014 Dianne Hackborn <hackbod@google.com> Fix issue #16400873: Apps that show ads as new tasks stay in recents...

...even when I hit back or close the activity in UI

Change the semantics of NEW_DOCUMENT to have the recents entry be
removed by default when its activity is finished, with various ways
to explicitly turn off this behavior.

Change-Id: Idc717706d27de80f28b53ad76f9e375d85118d71
nternal/app/ChooserActivity.java
055897208d659e9734a82def88be4a806ff55448 18-Jul-2014 Sandeep Siddhartha <sansid@google.com> Move sound trigger calls to VoiceInteractionManagerService

- This ensures that any data being loaded on the DSP comes from the framework

Change-Id: Ie15f0994850ba8f298ca07c49fe0b89e066d9e2b
nternal/app/IVoiceInteractionManagerService.aidl
2aa09a94dd540650d3ebad7363e4fb3aab2ebc95 20-Jul-2014 Adam Powell <adamp@google.com> Don't apply the ActionBar style to a Toolbar as a result of setActionBar

While this is a convenient idea, it effectively means that any styling
directly applied to a Toolbar in a layout gets stomped by the
theme-global ActionBar style. Obey the more local, specific styling
from the Toolbar instead.

Change-Id: Ief6a7cb90052bdced87f1dc0925c1dfbc0df4792
nternal/app/ToolbarActionBar.java
nternal/widget/ToolbarWidgetWrapper.java
7b41467704f941b11af6aace3e40993afc7f6c6f 18-Jul-2014 John Spurlock <jspurlock@google.com> Zen mode filtering should use new usage constants.

Refactor stream-based calls to usage-based calls.

Bug:15279516
Change-Id: I3f7757d8123c14670e2ad5f8e6aa4e9803efe7ec
nternal/app/IAppOpsService.aidl
nternal/widget/RotarySelector.java
nternal/widget/SlidingTab.java
nternal/widget/WaveView.java
nternal/widget/multiwaveview/GlowPadView.java
ff328ae7438a9c5c2fe49c286833a30e25015e63 17-Jul-2014 Yohei Yukawa <yukawa@google.com> Add FLAG_CURSOR_ANCHOR_INFO_IMMEDIATE support in TextView

This CL adds an initial support of
CursorAnchorInfoRequest#FLAG_CURSOR_ANCHOR_INFO_IMMEDIATE for
TextView.

This implementation is not highly optimized yet, but it just
works as it should.

BUG: 16379288
Change-Id: Iecb32b4c4dcd7db14d8b2a0d929e1d64e161bc58
nternal/widget/EditableInputConnection.java
6eed108eeb66d123c47e7066d23738ca8dd8bdd4 19-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Revert "Fix LocalePicker background"

This reverts commit 6bbea8cf4252839d0c6f2a3152f506a7b2b2d753.

Change-Id: I430c725c8e5987fb643528594ef3a9a83827e7be
nternal/app/LocalePicker.java
e49d9393783f2789239f8da536abda9533ffadf0 18-Jul-2014 Adam Powell <adamp@google.com> Add EXTRA_REPLACEMENT_EXTRAS for ACTION_CHOOSER

This allows the calling app to supply a set of alternative extras to
be sent along with the target intent if the user chooses specific
items from the full set available on the device. When replacement
extras have the same key as extras in the initial intent, the
replacement extras dominate.

Change-Id: I5d64c80447386f22402b71291bb289a74015d619
nternal/app/ChooserActivity.java
nternal/app/ResolverActivity.java
0debc9aff4c0cbc28e083a948081d91b0f171319 17-Jul-2014 Adam Lesinski <adamlesinski@google.com> First iteration of a public UsageStats API

UsageStats API that allows apps to get a list of packages that have been
recently used, along with basic stats like how long they have been in
the foreground and the most recent time they were running.

Bug: 15165667

Change-Id: I2a2d1ff69bd0b5703ac3d9de1780df42ad90d439
nternal/app/IUsageStats.aidl
89101f7fe89134a609459e80f779c1a5114e562a 18-Jul-2014 Christopher Tate <ctate@google.com> Tear down agents properly at EOD in full restore

The restore engine wasn't tearing down the bound agent after reaching
the end of data for the app, and furthermore was allowing the restore
operation to resume running the queue before all data had been delivered
to the current target.

Also make LocalTransport deliver data in 2K chunks rather than 32K,
as a first step towards making its timing characteristics more like
we'll see in networked situations.

Finally, added a bunch of MORE_DEBUG output for finding odd bugs
like this.

Change-Id: Icdbe6a070af6cc7c708a938ad044108d40ebce9a
nternal/backup/LocalTransport.java
08cfaf672604422dd355d6703aec78f3aa5ee74e 08-May-2014 Torne (Richard Coles) <torne@google.com> Use the WebView's loader library to load the real library.

Load libwebviewchromiumloader and use it to load the real WebView
library, to enable sharing of the relro segment between different
application processes without requiring that the library be preloaded in
the zygote. A system service is added to track whether the relro segment
file has been prepared, and block loading of the library until it has
been.

Bug: 13005501
Change-Id: I846b37c7b8e2a4eb8a39e4fd455bccbb2048c173
nternal/os/ZygoteInit.java
fee756ff91ab4d8f0e09ddb050d22d88ebb66ae7 17-Jul-2014 Dianne Hackborn <hackbod@google.com> Implement issue #16330060: Inform ActivityManager about WebView...

...state changes.

Add a new API to tell the activity manager about a new dependency
one process has on another package. Start using it already for
when apps is Context.createPackageContext() to load code from another
app.

Also do some work on getting the monitoring of proc/uid states
in shape so it can be used by unundled code, along with an
AppImportanceMonitor class for doing so.

Some small fixes and additions to VoiceInteractionService.

Improve handling of unaccounted/overcounted battery use so that
they aren't shown to the user unless they are significant.

Change-Id: I22dd79a73f4e70103d3f8964494aebc8a31f971c
nternal/os/BatterySipper.java
nternal/os/BatteryStatsHelper.java
20ceb903731bc732eb063b1bbee3bac806a5d5ef 17-Jul-2014 Lorenzo Colitti <lorenzo@google.com> Disable logging in NetlinkTracker.

This logging can get quite spammy in GoogleGuest, and there's
currently no reason to think it's necessary. Much of the same
information is available via "adb shell ndc monitor".

Bug: 16328180
Change-Id: I15a8348e261d6b69a4ef8bdaf8a2a431b1c2bc0d
erver/net/NetlinkTracker.java
a0ee004abf1e8988ece2d19ff5a3bef333763c9b 16-Jul-2014 Brian Colonna <bcolonna@google.com> Bug 16152902: Disabling FUL in keyguard and screen lock settings

This is the framework change needed to switch from Face Unlock as
a standard unlock mechanism to Face Unlock as a trustlet. This
forces isBiometricWeakInstalled() to return false such that neither
keyguard nor Screen Lock Settings thinks it exists. This means FUL
is no longer a screen lock option.

If Face Unlock was already enabled and someone updates to this build,
the screen lock automatically switches to the backup lock. That
functionality was already built-in so everything would continue to
work if Face Unlock decided to disappear from someone's device.

Change-Id: I407f6e1d75bfe40c7142c2508c2d68867e02d858
nternal/widget/LockPatternUtils.java
4c23cb1aca259573bb945461c23988c4282c7660 17-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix LocalePicker background

- use the background defined by the Theme

See bug: #13140648 Settings needs to support the new Quantum Paper theme

Change-Id: I30f1146fbcb57088a62c999dce349d1f85510427
nternal/app/LocalePicker.java
da96e137bcc8191c584ada7b5de31eaae92f244f 15-Jul-2014 Jeff Sharkey <jsharkey@android.com> Parse more split APK manifest details.

Allow split APKs to define activities, services, receivers,
providers, and metadata. However, support for many manifest items
are explicitly omitted.

Only dexopt split APKs that include code.

Bug: 14975160
Change-Id: I2fbf99e2a62328aa2185e5924755af33060282fc
nternal/util/ArrayUtils.java
fdb1956ff71ff57fcdaafaaeb7f42c19de3d7c2f 12-Jul-2014 Dianne Hackborn <hackbod@google.com> Fix issue #15681802: Missing RESET:TIME in complete battery histories

But wait, there's more!

- Keep track of sync durations in the aggregated stats.
- Add events for users that are running and in the foreground.
- Rework the activity manager's tracking of stuff using
battery in the background to be based on proc stats, which
allows it to be better about determing when it should reset
its tracking of background work.
- Also add tracking of scheduled job execution, like we are
doing for syncs.
- And once I started hooking battery stats in to
JobSchedulerService, I found a few things I couldn't stop myself
from changing: (1) make it very explicit that it doesn't start
scheduling jobs until we have reached the point in system boot
where third party apps are allowed to run, and (2) adjust
the various for loops to not use iterators.

Change-Id: I69d812e27bcfee9e58a614f0f6b1c7545d7530b1
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
bd9152f6ee156ee473f05f6f05f238605996fca4 01-Oct-2013 Fabrice Di Meglio <fdimeglio@google.com> Update DatePicker widget and its related dialog

- the old DatePicker widget is still there for obvious layout compatibility reasons
- add a new delegate implementation for having a new UI
- use the new delegate only for the DatePickerDialog (which does not need to be
the same)
- added support for Theming and light/dark Themes
- added support for RTL
- added support for Accessibility
- verified support for Keyboard
- verified that CTS tests for DatePicker are passing (for both the legacy and the
new widgets)

Also added a new HapticFeedbackConstants.CALENDAR_DATE and its related code for
enabling day selection vibration

Change-Id: I256bd7c21edd8f3b910413ca15ce26d3a5ef7d9c
nternal/widget/AccessibleDateAnimator.java
nternal/widget/ExploreByTouchHelper.java
a50cd8d4264ca98e19b858596de3a223ba6bf42e 15-Jul-2014 Ed Heyl <edheyl@google.com> reconcile aosp (f908b61abf0882ce97d6d5076ee1c84393ed1ecd) after branching. Please do not merge.

Change-Id: Icd3f2c31aca8c9888c81da27eaeaffed07ec9820
nternal/backup/LocalTransport.java
278902c982443b3c196aa4642dcf3e0fffe4b23d 13-Jul-2014 Adam Powell <adamp@google.com> Updated "with-default" layout added for ResolverActivity

Add a layout that promotes the last chosen activity to the top for
ResolverActivity. Alter ResolverActivity behavior as appropriate: Only
the last selected activity can be set as default. Different activity
selections take effect immediately. You can only set a default if it
was the last-used target of the intent.

Also add some default strings for invoking common intents to make the
no-title invocations a bit more user-friendly than just, "complete
action using."

Bug 15694906

Change-Id: I8c75d2f812926805c949cc76bab48aa4094e002f
nternal/app/ChooserActivity.java
nternal/app/ResolverActivity.java
77cbcb6637e3733e9b80a93d37745f27ec4d4561 12-Jul-2014 Tadashi G. Takaoka <takaoka@google.com> Make InputMethodUtils.getLanguageFromLocaleString public

Change-Id: I3e26eded21e59106a3b0edcf9ad05afbe9a30670
nternal/inputmethod/InputMethodUtils.java
b40484bb30838e2769857f30f439cd0fc5e8223e 12-Jul-2014 Adam Powell <adamp@google.com> Correctly set the window callback for ToolbarActionBar

Bug 16134781

Change-Id: I88ec0c2b5dc23767ab0f198ab26601fd46b95628
nternal/app/ToolbarActionBar.java
d3fdb8bed8e836786253f9cd5ab640c7c5ed8501 07-Jul-2014 Barnaby James <bjames@google.com> Add VoiceInteraction request type for successful actions.

Add CompleteVoiceRequest to VoiceInteractor to allow apps to indicate when a voice interaction was successfully completed.

Change-Id: I1481cfe96e9e2495d88a7a4fb62263bdd1e03c54
nternal/app/IVoiceInteractor.aidl
nternal/app/IVoiceInteractorCallback.aidl
4d8c132609c9a87d8e05cba65bf6832b38afd1ff 11-Jul-2014 Narayan Kamath <narayan@google.com> Allow 3 letter language codes in InputMethodUtils.

Replace locale.substring(0, 2) with a function that always
returns the first component of the locale (assumed to be the
language).

bug: 10090157
Change-Id: Ibb9eb9f65323795d139b16d76b7e7e36a4e0568c
nternal/inputmethod/InputMethodUtils.java
7c940e94c97ce3c86f2d54ad567127fc11cc8074 11-Jul-2014 Yohei Yukawa <yukawa@google.com> Merge "Polish new IME API for L part 2: CursorAnchorInfo"
c3b07a0c9ce9b1a2af644112e678f3963226fad2 01-Jul-2014 Zoltan Szatmary-Ban <szatmz@google.com> BatteryStatsHelper.refreshStats for multiple users

Battery usage list is now populated for apps belonging to a list of users or profiles.

Change-Id: Ie899af74a4b3a0f3cd6ae3c93394f01f4f54a5c7
nternal/os/BatteryStatsHelper.java
0023d0e0c4f5339b299d1eacbd4e7181c2fd271f 10-Jul-2014 Yohei Yukawa <yukawa@google.com> Polish new IME API for L part 2: CursorAnchorInfo

This CL addresses feedbacks from internal customers for new
input method APIs that are mainly used for physical keyboard
support in L.

For performance reasons, #onUpdateCursorAnchorInfo is not called
back by default and each input method has to enable this
event notification explicitly whenever fine-grained character
locations are needed.

In L-preview, InputMethodSession#setCursorAnchorMonitorMode was
introduced for this purpose. However, we got several feedbacks
to be addressed.
- The effect of #setCursorAnchorMonitorMode is not preserved
during focus change. IMEs need to call
#setCursorAnchorMonitorMode every time when #onStartInput is
called. This is tricky and hard to understand.
- As #onUpdateCursorAnchorInfo is a new API, not all
applications/text editors have supported it. Therefore IMEs
can't always rely on it. However, there is no way to query
if the attached target is supporting this new API or not.
It would helpful for IME authors if we can provide a
reliable way to query if the attached input target is
supporting the new API or not.

In order to address these issues, the triggering method has
moved from InputMethodSession to InputConnection in this CL,
as an analogy of existing InputConnection#getExtractedText API,
which has provided similar functionality including optional
reactive event callbacks from the application to the IME.

BUG: 15812658
BUG: 16118603
Change-Id: I3c6b69bd9d79b199afe68d838f25effa6048e5cc
nternal/view/IInputConnectionWrapper.java
nternal/view/IInputContext.aidl
nternal/view/IInputContextCallback.aidl
nternal/view/IInputMethodClient.aidl
nternal/view/IInputMethodManager.aidl
nternal/view/InputConnectionWrapper.java
nternal/widget/EditableInputConnection.java
d7018200312e4e4dc3f67cf33dc90bf7ce585844 11-Jul-2014 Sandeep <sansid@google.com> Always on hotword changes

Add model management API skeleton to VoiceInteractionManagerService
Add an "interactor" for all always-on APIs

- The VoiceInteractionService will get an interactor for the given
keyphrase and locale.
- It can then check the availability and call methods to start and
stop recognition on this interactor.

- Add a common class to deal with SoundTrigger APIs

- Cleanup the keyphrase representation:
We now have separate representations for the keyphrase metadata and
a keyphrase being used for recognition.
This'll also help us to handle custom keyphrases in the
future easily.
This also ensures that for use within the framework,
we rely on the ID of the KeyphraseInfo rather than comparing the
text everytime.

Add a callback for the AlwaysOnHotwordDetector

This callback should be passed in by the VoiceInteractionService and is used to notify it
of recognition events.

Change-Id: I26252298773024f53a10cdd2af4404a4e6d74aae
nternal/app/IVoiceInteractionManagerService.aidl
8e77c47d7c534b22c7f6a819791300ca5e30b9cc 11-Jul-2014 Adam Powell <adamp@google.com> Merge "Elevation for action bars"
14d1fa4ba753d3480abf031525da0aa23d8e5abe 11-Jul-2014 Adam Powell <adamp@google.com> Elevation for action bars

Expose theme attributes and API for ActionBar to adjust elevation of
the bar.

Remove the windowContentOverlay fake shadow from material themes and
use elevation instead.

Mmm, realtime shadows.

Bug 16207490

Change-Id: I254567a13422b6d2f657b9991608398885f45204
nternal/app/ToolbarActionBar.java
nternal/app/WindowDecorActionBar.java
3d0f21dab8d891b9aebdd5277348d549eeb843e6 11-Jul-2014 Alan Viverette <alanv@google.com> API for inflating action bar menus against a different theme

BUG: 16162344
Change-Id: I5bf9f133de56a1830028bca6326cc2c50888a052
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuPopupHelper.java
nternal/view/menu/MenuPresenter.java
nternal/widget/AbsActionBarView.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
ff110bd61a69f7ed8602ae14b27f7befec76b2e7 04-Jul-2014 Narayan Kamath <narayan@google.com> Multi-arch application installs.

Each application now has two ABIs, the primary
and the secondary. The app is always launched with
the primary, but the secondary might be used by other apps
that load the given applications code. This implies we
must:

- dex2oat the app both ways.
- extract shared libraries for both abis.

The former is relatively straightforward but the latter
requires us to change the layout for shared libs that we
unpack from applications. The bulk of this change deals
with the latter.

This change continues to fill in nativeLibraryPath during
scans for backwards compatibility. This will be removed in
a future patch.

Change-Id: Ia943dd11ef815c5cbfc60f17929eaa2a652a385a
nternal/content/NativeLibraryHelper.java
4f6c2050a847f4089330b4b0aa4d1deb173e5bd0 08-Jul-2014 Adam Powell <adamp@google.com> ResolverDrawerLayout for ResolverActivity

Internal widget to allow nested scrolling of the grid of intent filter
targets. Initial logic complete.

Bug 15694906

Change-Id: Ib19723146bf1722db6bdd68f95cc6e623462d0f0
nternal/app/ResolverActivity.java
nternal/widget/ResolverDrawerLayout.java
61659e5daaea80104d4d0fd567e78b5f757b5df4 10-Jul-2014 Dianne Hackborn <hackbod@google.com> Add tracking of uid process states in battery stats.

We now keep track of how long each uid had processes in
various states: foreground, active, running. This is based
on a collapse of the various activity manager process states
into these three bins.

You'll see these in a checkin like this:

8,10013,l,st,61504,61504,83109

Also fix issue #16021555: App showing up as on "top" even
when the screen is off. This is "fixed" by just saying we
always report the current app at the top of the activity stack,
regardless of the state of the screen.

Change-Id: I1204904225101243eb00b43425d9806bffdd2ab9
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsHelper.java
nternal/os/BatteryStatsImpl.java
85516d028b2dcc7ebc09f4a68085836aa26191d5 01-Feb-2014 Jim Miller <jaggies@google.com> Add new "pin complex" type to supported keyguard PINs

This adds a feature to allow DevicePolicyAdmins to prevent using
simple PINs, which are defined as those containing more than 3
repeated values. Examples include '1234', '2468', '1111', '9876', etc.

Bug 12081139

Change-Id: I4ebe1c76a48087dcd7c878e9bd79a4e3ee2a27fe
nternal/widget/LockPatternUtils.java
ec55ef0934b8e0d1bb705434947de817f7be57f1 08-Jul-2014 Jeff Sharkey <jsharkey@android.com> Extend pm to support sessions and split APKs.

Separate commands to create an install session, stream files into the
staging area, and then commit the install. Streaming can accept data
from stdin across adb, avoiding extra copy from push.

Extend FileBridge to support blocking close(). Always destroy
session regardless of result.

Bug: 14975160
Change-Id: Ic3f462e7d1901079b785e210228950cdfa676466
nternal/util/SizedInputStream.java
0bae09fdde0905e24f6c3079d9e01c669d046289 07-Jul-2014 Santos Cordon <santoscordon@google.com> Move showCallScreen & isInAPhoneCall to PhoneManager.

Change-Id: I852da78ae80eba120932fb7acb1e5c3db2a8f18a
nternal/widget/LockPatternUtils.java
4ec2023349f19b2fd2461aa3c9b208eb799a662e 09-Jul-2014 Jeff Sharkey <jsharkey@android.com> Merge "Derive library path for upgraded system apps."
8d479b0c2ddb150182bcf510876a240cb869661b 08-Jul-2014 Jeff Sharkey <jsharkey@android.com> Derive library path for upgraded system apps.

Bug: 16156270
Change-Id: I368433063ff33d15129c8076ddc6f1e2a0963e54
nternal/content/NativeLibraryHelper.java
8ffc231d8c2dcdd85a568a3215133df9539c3d43 08-Jul-2014 Jeff Sharkey <jsharkey@android.com> Gracefully handle apps without native libraries.

Bug: 16148014
Change-Id: Ida23545046387b567744ee520baa4713e8403f30
nternal/content/NativeLibraryHelper.java
ba45bcb36437aefa5fe2a3e72388a01debb90813 03-Jul-2014 Paul Lawrence <paullawrence@google.com> Fix DeviceManagerAdmin with empty password

Checked for null, but need to check for "" as well

Bug: 15832986
Change-Id: I3dc5d61717180180229f2395eef1dbe54d812d54
nternal/widget/LockPatternUtils.java
df972232c7caaf662052fadcde58ca41163d49d7 06-Jul-2014 Jeff Sharkey <jsharkey@android.com> Merge "Teach DCS about cluster packages."
be520fba1e45c77ca20eb66005a0cf19e10939a1 05-Jul-2014 Jeff Sharkey <jsharkey@android.com> Teach DCS about cluster packages.

For the time being, DCS is going to still be doing heavy lifting for
some install tasks, so it need to know how to handle both monolithic
and cluster packages. This change is mostly plumbing work to
eventually handle any various splits APKs that we may encounter.

Bug: 14975160
Change-Id: I39848d5666f9083cb4eca493e5cdaa868f3f99fb
nternal/app/IMediaContainerService.aidl
nternal/content/NativeLibraryHelper.java
nternal/content/PackageHelper.java
nternal/os/IParcelFileDescriptorFactory.aidl
0c54798aac8a86fed24b14a66f09797d58ad0399 06-Jul-2014 Jeff Sharkey <jsharkey@android.com> Start removing ContainerEncryptionParams.

The new PackageInstallerSession APIs will allow installers to deliver
bits directly into system protected storage, so we no longer need
encrypted containers.

Change-Id: I8b598cb149b7dfd1d41e6626c1359610a573edf1
nternal/app/IMediaContainerService.aidl
73767b9d607d99b3a027619b5c6b7f1a09b7673d 05-Jul-2014 Jeff Sharkey <jsharkey@android.com> Extract native code from split APKs.

In the new split APK world, multiple APKs work together to define a
single package. This means that native code may be split among those
APKs. To handle this, extend NativeLibraryHelper to examine all
APKs in a package ordered by splitName.

A package has valid native code as long as one matching ABI is found
inside. The "best" ABI found across all APKs is picked for the
entire package. No attempt is made to ensure that every native
library defined is available for the picked ABI; that's the
responsibility of the installer.

Re-introduce PackageLite to represent a lightweight parsing of an
entire package, which may be a single monolithic APK or a cluster
of one or more APKs.

Remove native code extraction from InstallerSession, since it'll be
handled inside PMS for this release.

Bug: 14975160
Change-Id: I4f4db0f82e88a46101c7777499ebc0a11fd911f9
nternal/content/NativeLibraryHelper.java
3f2cfb2d6738b164b09b717e340e7f324fccf80c 06-Jul-2014 Adam Powell <adamp@google.com> Merge "ResolverActivity revisions, phase 1"
e9414d922d1ccc0a7834c1863db418dc8be83ab0 06-Jul-2014 Adam Powell <adamp@google.com> ResolverActivity revisions, phase 1

* Switch to grid formatting for items to choose from.

* Format the grid at the bottom of the screen instead of in a formal
dialog.

* Move to newer theming.

Change-Id: Ie1b23800b3a521570f9f62e4cdef620d3fb491d8
nternal/app/ResolverActivity.java
1359908de6e5296aea17f85dacaa70a01a9aab62 04-Jul-2014 Narayan Kamath <narayan@google.com> am 0cf2e65d: am 5ae312fb: am 759e0d6a: Merge "Fix LocalePicker locale filtering."

* commit '0cf2e65dc00e12c5a5e0d01fe9fd93b6712f366f':
Fix LocalePicker locale filtering.
0cf2e65dc00e12c5a5e0d01fe9fd93b6712f366f 04-Jul-2014 Narayan Kamath <narayan@google.com> am 5ae312fb: am 759e0d6a: Merge "Fix LocalePicker locale filtering."

* commit '5ae312fb5b601d2c60e197f94c6a292700776140':
Fix LocalePicker locale filtering.
759e0d6a7a258dbc34a38a7db320827eb9144487 04-Jul-2014 Narayan Kamath <narayan@google.com> Merge "Fix LocalePicker locale filtering."
80b574199c5d06132acbcf640ec81f45f0d76ce3 03-Jul-2014 Narayan Kamath <narayan@google.com> Fix LocalePicker locale filtering.

This was broken by commit b27c137087ee92674 which
removed a badly phrased check. Prior to that commit,
there was a check that excluded locales whose toString()
length was not 5.

This change reinstates that check in a less roundabout
way, by excluding BCP-47 tags that don't have a country
subtag.

bug: 16038949

Change-Id: Ic24b1df87b2e2ce47d9ae04c7759088721f27b4f
nternal/app/LocalePicker.java
57dcf5b177b56195421535938544f32d8b591b42 19-Jun-2014 Jeff Sharkey <jsharkey@android.com> Slow progress towards APK clusters.

Differentiate between "split APKs" and "cluster packages". A cluster
package is a directory containing zero or more APKs (base+splits),
and a monolithic package is a single APK (base).

PackageSetting will use the directory name as its codePath, so track
the baseCodePath separately. Clarify documentation in several
places.

Require that all installers provide file:// URIs through existing
hidden APIs; PackageInstaller hasn't been able to read content://
URIs for a long time.

Bug: 14975160
Change-Id: I1c6fed1b55205c2474b09871161a98a26669d22e
nternal/app/IMediaContainerService.aidl
nternal/util/ArrayUtils.java
dbbc070670c1160b15b92a5928e8b9b5bf008b3f 02-Jul-2014 Narayan Kamath <narayan@google.com> am e2840977: am 6e84f8c1: Merge "Fix native crashes when APKs can\'t be opened."

* commit 'e2840977d37e4d19425d448b54895536e43a2989':
Fix native crashes when APKs can't be opened.
4161316f256c9cc047405a902bcfc17b3738b659 02-Jul-2014 Narayan Kamath <narayan@google.com> am 94171212: am 104da1e4: Merge "Fix broken assumptions in LocalePicker."

* commit '94171212431a45346e40fd97bbe72422e71f04be':
Fix broken assumptions in LocalePicker.
6e84f8c1b9c72ab6e1eb189358292237dbe1efe8 02-Jul-2014 Narayan Kamath <narayan@google.com> Merge "Fix native crashes when APKs can't be opened."
fa10423fa00f3495e451016acba9b6848eb995c9 21-Jun-2014 Adrian Roos <roosa@google.com> Add stable insets for stable system windows

Adds a new kind of inset that only accounts for stable system
windows like the system or navigation bar.

Bug: 15457292
Change-Id: I681b711f6f40a94c25b7acd3a44eb3539486afab
nternal/view/BaseIWindow.java
f29131f7013dc0d6994556b95e74db608c89beb8 02-Jul-2014 Narayan Kamath <narayan@google.com> Merge "Fix native crashes when APKs can't be opened."
cef0b39b9211882f59b6bfe1148e2cd247056693 12-Jun-2014 Narayan Kamath <narayan@google.com> Fix native crashes when APKs can't be opened.

There was lax / incomplete error checking around the
construction of Apk handles. This change changes the ApkHandle
API and makes it throw IOException if the zipfile couldn't
be opened.

Additionally :
- Fix a resource leak in DefaultContainerService
- Report errors correctly during package moves.

bug: 15563874
(cherry picked from commit ec4516470d7ce6e47769591d678c838bd3f6f388)

Change-Id: Ia35b464355467d0d36faf34fae85acbbab3f2896
nternal/content/NativeLibraryHelper.java
4fe15b23dcc2a5b0c9496490053fdb6f86e6fc11 02-Jul-2014 Narayan Kamath <narayan@google.com> am 4161316f: am 94171212: am 104da1e4: Merge "Fix broken assumptions in LocalePicker."

* commit '4161316f256c9cc047405a902bcfc17b3738b659':
Fix broken assumptions in LocalePicker.
b6efe90b387e8b7bb5bf88257619e043f66e7f11 30-Jun-2014 Brian Attwell <brianattwell@google.com> Allow ToolbarWidgetWrapper insetStart = 0

Change-Id: I8564cfe07b082e6edb3dc1569b3020f88d286d61
nternal/widget/ToolbarWidgetWrapper.java
abc7c499133fe640d6ece2b28d43b52e66cdaa9a 01-Jul-2014 Dianne Hackborn <hackbod@google.com> Issue #15986092: Add power tracking of flashlight.

Not yet hooked up.

Change-Id: Id95e44ecc365e9f38169c0a629b0a48ddb29aa06
nternal/app/IBatteryStats.aidl
nternal/os/BatterySipper.java
nternal/os/BatteryStatsHelper.java
nternal/os/BatteryStatsImpl.java
nternal/os/PowerProfile.java
b27c137087ee926746b43b1abd08fb360ede671b 01-Jul-2014 Narayan Kamath <narayan@google.com> Fix broken assumptions in LocalePicker.

This code assumed that the locale is always 5 chars in
length and was of the form xx-YY. This is not necessarily
true. The language can be 3 letters in length and the locale
might have a script and variant.

Also cleans up several nasty pieces of code and eliminates
unnecessary array copies and improves readability by using
idiomatic java.

bug: 15873165
bug: 10090157

Change-Id: Iab1cfd7b78e5772b1245654f2153caf63a96033d
nternal/app/LocalePicker.java
ec4516470d7ce6e47769591d678c838bd3f6f388 12-Jun-2014 Narayan Kamath <narayan@google.com> Fix native crashes when APKs can't be opened.

There was lax / incomplete error checking around the
construction of Apk handles. This change changes the ApkHandle
API and makes it throw IOException if the zipfile couldn't
be opened.

Additionally :
- Fix a resource leak in DefaultContainerService
- Report errors correctly during package moves.

bug: 15563874
Change-Id: Ic71a10709eb82b8f53405bbfb2320e80aa96b771
nternal/content/NativeLibraryHelper.java
cb923d99e9ec2f7b6b40a7c89c83a6caaa03b016 01-Jul-2014 Chet Haase <chet@google.com> null-check before derefing title in MenuItemImpl

The toString() method in MenuItemImpl returns mTitle.toString(),
which crashes when the title is null (which it can be, since there
is no requirement that a title be non-null, and you can get one
by simply not assigning a title to begin with or by setting it
to null).

Issue #13420311 MenuItemImpl can't handle a null title

Change-Id: I701d1d565f1d254ffdd41ca64c1abaf2906edb79
nternal/view/menu/MenuItemImpl.java
51fea57e06fcb1dab1d239a5fff6e75ba2b7cee7 24-Jun-2014 Christopher Tate <ctate@google.com> Refactor restore to deal with heterogeneous datasets

Transport-based restore now handles both key/value and full-data
(stream) data delivery.

Also: PMBA now holds metadata for *all* apps, not just those with
backup agents. Since we need to consult this for every restore-
at-install operation we cache this locally now, tagged per transport
and per remote dataset, to avoid having to re-download it as part
of every future restore operation.

Also fixed a bug in LocalTransport that was preventing restore of
key/value datasets, i.e. all of them that were nominally available
prior to this change.

NOTE: at present there is no automatic full-data backup; if for
testing purposes you need to create some to then use for restore,
you still need to use 'bmgr fullbackup ...' to push them.

NOTE: at present the unified transport restore uses a refactored
"engine" implementation to handle stream data that encapsulates
the existing "adb restore" implementation. However, the adb
restore code path has not yet been refactored to wrap the newly-
extracted engine version; it still contains its own copy of all
the relevant logic. This will change in a future CL, at which
point offline/USB archive restore will simply wrap the same
shared stream-restore engine implementation.

Bug 15330073
Bug 15989617

Change-Id: Ieedb18fd7836ad31ba24656ec9feaaf69e164af8
nternal/backup/LocalTransport.java
f56ed2db007f8ca8c385d16d4662f13b9a1adabc 01-Jul-2014 Alan Viverette <alanv@google.com> Fix Material-themed alert dialog sizing

Also cleans up line width and final usage in AlertController.

BUG: 14904438
Change-Id: Idffa7a1c6edcf4a709ff6322d4bf95ce22d281ea
nternal/app/AlertController.java
93e6d9db7848a6efe823def6f480c8f4ea74ba85 23-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Initial RDNSS tracking implementation.

Add a DnsServerRepository to NetlinkTracker that keeps track of
IPv6 DNS servers received via RDNSS. It supports expiring
existing DNS servers when their lifetimes go below zero and
keeping track of more than just the 2 or 3 DNS servers that are
currently in use, so that if they all expire DNS will continue to
work.

It does not yet expire DNS servers using timers, only when a new
update comes in.

Bug: 9180552
Change-Id: I455699076198f43570a3b0b8ec7e5967514d6086
erver/net/NetlinkTracker.java
2c12cfa1d53b586ae8a8d6aca64a4de771dc85b0 25-Jun-2014 Adrian Roos <roosa@google.com> Trust Agents: Add facility to request credential entry

Bug: 15871777
Change-Id: I43c80151f6403ff62961aeb3dc7aafe049e18a62
nternal/widget/LockPatternUtils.java
755c919ba2a94ab9d088a9f5e133f45c276643e6 25-Jun-2014 Adam Powell <adamp@google.com> Merge "Set the default content description for Toolbars acting as action bars"
7901b2a54981b769bf27852c41ce612871a8e019 25-Jun-2014 Adam Powell <adamp@google.com> Set the default content description for Toolbars acting as action bars

Bug 15814044

Change-Id: I07c20de1349cb07f21eaf0db718da94c0ba7043d
nternal/widget/ToolbarWidgetWrapper.java
04d480e1c338a921a8659e165d74f8437785acc1 25-Jun-2014 Dianne Hackborn <hackbod@google.com> Merge "Fix some problems with proc stats collection."
306af678a5f1938629e1182b46cc43f2da6e7774 25-Jun-2014 Dianne Hackborn <hackbod@google.com> Fix some problems with proc stats collection.

Also start debugging why we aren't being able to open
/proc files.

Change-Id: I4655904691ac22108c29858cbd01153a251ccbf5
nternal/os/ProcessCpuTracker.java
9e58b3c61c119c884b62c16b3e1a99b991a1d1bf 24-Jun-2014 Christoph Studer <chstuder@google.com> Merge "Remove notification APIs from StatusBar service"
e71fefcc8b382947f6f6a8bf816b3889fb368fed 24-Jun-2014 Christoph Studer <chstuder@google.com> Remove notification APIs from StatusBar service

Bug: 15324972
Bug: 15436573
Change-Id: I838370a23fb07cb876e08c41ef11653f2658719e
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
5044988c4742f2a79d9425ac594ef69a63b22802 23-Jun-2014 Nicolas Prevot <nprevot@google.com> Disable "Always" option for intents targetting non-current user.

In ResolverActivity, if a ResolveInfo is for another user:
disabling the "always" button.

Change-Id: Ib6a1a49e86e3e3546d8aaa70bfd2e8fe148281d6
nternal/app/ResolverActivity.java
3251b9075246841a7b1ddecf10859b1abd858f33 20-Jun-2014 Dianne Hackborn <hackbod@google.com> Add some wifi tracking to battery stats.

Now track supplicant state and wifi signal strength.
Output looks like this:

+12m45s235ms (1) 095 +wifi_full_lock +wifi_running wifi_signal_strength=3 wifi_suppl=scanning
+12m46s095ms (1) 095 -wifi_full_lock wifi_suppl=associated
+12m46s469ms (2) 095 wifi_suppl=completed +proc=u0a74:"com.google.android.videos"
+12m52s103ms (1) 095 +wifi_full_lock wifi_suppl=disconn

Also modify history dump so that when we hit a RESET or START
command, we clear our previous history data, so the next event
will include new data. This means if you are scanning through
the output, you must at this point clear any binary stats you
have like "running" or "wake_lock" or else you will continue to
think they are on until whatever point later they get turned on
and then back off.

And a small bug fix in proc stats that would cause the system
process to crash.

Change-Id: Ibec416a1ef786d428bd0d1d86e6e3296c41f7648
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
7deaf7c5304aed9ca2ed6dc0e6c5e853127e6020 18-Jun-2014 Mark Renouf <mrenouf@google.com> am f2dcb390: Merge "Limit swipe dismiss progress to positive values" into klp-modular-dev

* commit 'f2dcb390444ffb42cf8637c99f53d821917554e6':
Limit swipe dismiss progress to positive values
d9b6d546c34d547c1e21ca6afb5d67f882f9b03d 20-Jun-2014 Christopher Tate <ctate@google.com> Merge "Adjust full restore API"
5a009f9008d1f18b156c142b69e173109f5e218b 19-Jun-2014 Christopher Tate <ctate@google.com> Adjust full restore API

Introduces a new constant, BackupTransport.NO_MORE_DATA, defined to
be -1. The transport returns this constant when asked for the next
chunk of streaming full restore data to indicate that it has reached
EOF on the current restore target's archive stream.

If the transport returns TRANSPORT_PACKAGE_REJECTED from that same
method, then the OS will abort the current target's restore operation
and move on to the next package in the overall restore dataset (by
calling nextRestorePackage() on the transport).

If the transport returns zero when asked for the next chunk of
restore stream data, this will be interpreted as meaning that no data
is currently deliverable but the restore download is still running
properly; the caller will then retry until either data is delivered
or the transport reports NO_MORE_DATA (or an error).

Also sketched in the implementation of this latest API in the
test LocalTransport.

Bug 15330073

Change-Id: I81621cb322f831460133b7dced5bb88d2a4124e1
nternal/backup/LocalTransport.java
f329d050b8e72ba6daf67edc1b1b64b0035a6050 20-Jun-2014 Dianne Hackborn <hackbod@google.com> Merge "Add kernel and native memory data to procstats."
f7097a5b697fedb6976774e55a51471405a23c0e 13-May-2014 Dianne Hackborn <hackbod@google.com> Add kernel and native memory data to procstats.

We now collect memory use data in the kernel and native
application for aggregation in procstats. This should
allows us to do aggregated summaries of how memory use
is distributed across the system -- how much is free vs.
how much is in use.

Fix a bug in how we were tracking per-app version codes:
apps that used a shared user id to have multiple packages
run in the same process could get their version codes
cross-wired. Now we keep track of version codes in the
list of packages associated with a process.

Bumped the checkin version code to 5, so that we can
distinguish checkins that have this corrected data.

Also fix a bug in battery stats monitoring radio state.

Change-Id: I1c849f2df442df679a34ad7b0ca0c5870bfac8df
nternal/app/ProcessStats.java
nternal/os/BatteryStatsImpl.java
adb11e0732ceeb883b9817548df017ed340d99cb 19-Jun-2014 Adam Powell <adamp@google.com> Merge "Fix ActionBar#isShowing when called before first layout"
f65bfb700b19dbd2b0936d583c1493477e6d8a25 19-Jun-2014 Adam Powell <adamp@google.com> Fix ActionBar#isShowing when called before first layout

Fix a regression introduced by the new hide offset API addition where
an action bar height of 0 (not yet measured) would cause the bar to be
considered hidden.

Bug 14574446

Change-Id: Ic8e22923ab59df6078136daa336e074c4b7adaf5
nternal/app/WindowDecorActionBar.java
d1e01b7631665b9e41b13968dac1e2fa5964bb00 18-Jun-2014 Mark Renouf <mrenouf@google.com> am 7deaf7c5: am f2dcb390: Merge "Limit swipe dismiss progress to positive values" into klp-modular-dev

* commit '7deaf7c5304aed9ca2ed6dc0e6c5e853127e6020':
Limit swipe dismiss progress to positive values
6c5c48a8b05e7668de551c3bf37aa3f33c7f0920 18-Jun-2014 Mark Renouf <mrenouf@google.com> Limit swipe dismiss progress to positive values

BUG: 15716749

Change-Id: Ibd6daa1a515611e5c9b8a02c6df75130aa8c093b
nternal/widget/SwipeDismissLayout.java
a420a330a969e3655da98185461aa9fa1634abe6 18-Jun-2014 Brian Colonna <bcolonna@google.com> Merge "Added startWithoutUi() call to Face Unlock AIDL interface."
2c43c339de5aaf4fef58aa9b5ac3af48609263a8 13-Jun-2014 Jeff Brown <jeffbrown@google.com> Resolve boot time dependencies related to the power manager.

This change fixes a bug where native daemons may try to communicate
with the power manager before it was fully initialized due to a race
between publishing the binder service and completing init().

The solution was to simplify the dependencies related to the power
manager. It turns out that most services that were passed in
init are not actually needed until systemReady. What remained
was a dependency on the activity manager to check permissions for
incoming calls. So now we start activity manager first.
However, the activity manager also depends on power manager for
wakelocks. To break the cycle, we now defer initializing the activity
manager's wakelocks until after the power manager has been started.

Cleaned up a bunch of boot-time service dependencies so that we
can have better confidence that they are correctly maintained.

Bug: 13884219
Change-Id: If08e2d7ccd44e7026a72441bb6bd5afd7bb9fffe
erver/SystemServiceManager.java
564054146e7286b0d046591c0bd3195b0e4a6cf3 17-Jun-2014 Christopher Tate <ctate@google.com> Merge "Tweak restore API"
6a49dd087f29cfca82d55dfabeb97439ef84b508 17-Jun-2014 Christopher Tate <ctate@google.com> Tweak restore API

We need the transport to tell the system not only what package it's going
to deliver data for next, but also what format that data is in.

Change-Id: I989cf78febf923a4208acb33ed80ccc7869356f5
nternal/backup/IBackupTransport.aidl
nternal/backup/LocalTransport.java
1fbaca86b7ff178d589aee700da21e3a6fdef63a 17-Jun-2014 Brian Colonna <bcolonna@google.com> Added startWithoutUi() call to Face Unlock AIDL interface.

This is being done in support of preview-less Face Unlock (b/14433919). Nothing
is calling this function yet, but it will be called from a trustlet to tell Face
Unlock to authenticate in the background.

If this is committed before the corresponding Face Unlock change, Face Unlock
will not build because it would not be implementing this function, and it must
implement all functions in the interface in order to build.

Change-Id: I4aaea78d58cc5f1f7e13cb981fb9a217cd901496
nternal/policy/IFaceLockInterface.aidl
c18cbfdf8d40e7a526a088225cb32341e1ea0920 13-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Notify network observers of route changes.

Bug: 9180552
Change-Id: If8432bc74335676320b815784b21f404d3479c35
erver/net/BaseNetworkObserver.java
erver/net/NetlinkTracker.java
10accbb46e82b3178ff26124041f3ab7d6c1802d 04-Mar-2014 Lorenzo Colitti <lorenzo@google.com> Move netlink updates to a new NetlinkTracker class.

This will allow us to use this logic on other link types such as
Ethernet, and will also avoid increasing the complexity of
WifiStateMachine as we get more information such as routes and
DNS servers from netlink.

Bug: 9180552
Change-Id: I79034827cb0c5f24d783d7243e04b69e12aa3cc6
erver/net/NetlinkTracker.java
61eb51b8f5fb9d747ce5e06c0799f81ff8ddac16 14-Jun-2014 Vinod Krishnan <vinodkrishnan@google.com> am 1e6048e0: Merge "DO NOT MERGE Cherry picking 3 CLs to fix CTS testFitSystemWindows" into klp-modular-dev

* commit '1e6048e0158310ee31e0310661bed06a41ac7dd7':
DO NOT MERGE Cherry picking 3 CLs to fix CTS testFitSystemWindows
11335f14b9a3fd0a672a0fa0206e1f58b688dd36 12-Jun-2014 Adam Powell <adamp@google.com> DO NOT MERGE Cherry picking 3 CLs to fix CTS testFitSystemWindows

----
Explicitly track consumed state for WindowInsets

Treating 0-insets as fully consumed is incorrect since it means that
you can't dispatch empty insets down the view hierarchy - traversal
terminates immediately. Track consumed state independent of actual
values. Replacing a given set of insets with all zeroes will mark it
consumed.
----
Fix incorrect dispatch of empty WindowInsets from ActionBarOverlayLayout

Fix a bug where ActionBarOverlayLayout was using a private constructor
of WindowInsets to return empty insets that should have been marked
fully consumed. This caused dispatch to further child views not to
stop appropriately, corrupting application layout in some cases.
---
Fix CTS regression in fitSystemWindows

Don't attempt to apply null insets from a call to fitSystemWindows.
Immediately return false since null insets cannot be applied.
----

Bug: 15452706
Change-Id: I34276a90305b141b4653aef0048f70350c69d02a
nternal/widget/ActionBarOverlayLayout.java
2110ca327a14fd5f52cdbbd5f0e1a6c7a3eca6a5 16-Jun-2014 Christopher Tate <ctate@google.com> Merge "Implement full data backup through transport"
9ff53a7100b1a40f5d2df3eb19a2f3f2fff39a46 04-Jun-2014 Christopher Tate <ctate@google.com> Implement full data backup through transport

Currently no timed/scheduled full-data backup operations are
performed by the OS, but the plumbing is now in place and can
be tested using 'adb shell bmgr fullbackup pkg [pkg2 pkg3 ...]'.

The LocalTransport test transport implementation has been augmented
to support the new full-data backup API as well.

In addition, 'adb backup' now takes the -compress/-nocompress
command line options to control whether the resulting archive is
compressed before leaving the device. Previously the archive was
always compressed. (The default is still to compress, as it will
usually reduce the archive size considerably.)

Internally, the core implementation of gathering the full backup
data stream from the target application has been refactored into
an "engine" component that is shared by both 'adb backup' and the
transport-oriented full backup task. The archive file header
generation, encryption, and compression logic are now factored out
of the engine itself instead of being hardwired into the data
handling.

Bug 15329632

Change-Id: I4a044faa4070d684ef457bd3e11771198cdf557c
nternal/backup/IBackupTransport.aidl
nternal/backup/LocalTransport.java
85c262772de33a12a20bbcc11eb8349738e550d7 13-Jun-2014 Adam Powell <adamp@google.com> am d3b9bac6: Merge "Fix incorrect dispatch of empty WindowInsets from ActionBarOverlayLayout" into lmp-preview-dev

* commit 'd3b9bac6a96a065cd4058429569e0ed6ec4df032':
Fix incorrect dispatch of empty WindowInsets from ActionBarOverlayLayout
04b8e270f28895038739302db5f16c5c7e67f473 12-Jun-2014 Alan Viverette <alanv@google.com> Merge "Make overlapAnchor public, make ActionBar spinner overlap"
e178c93ff5457962cc694f44729dfa633de53f9b 12-Jun-2014 Alan Viverette <alanv@google.com> Make overlapAnchor public, make ActionBar spinner overlap

BUG: 15566102
Change-Id: I23885c2d66ce0749e4c131491205bb8eb2612923
nternal/widget/ToolbarWidgetWrapper.java
61c585756c43462af9d1de7275eae0dac3177e3b 12-Jun-2014 Adam Powell <adamp@google.com> am 13cfcacf: Allow action bar navigation icon resource id of 0

* commit '13cfcacf2a39b742ed9b0fea25924fc828e8c107':
Allow action bar navigation icon resource id of 0
c78f2f7feae7ec4e0439759332af4f195ba87115 12-Jun-2014 Adam Powell <adamp@google.com> am 22e41e9a: Merge "Enable collapsing empty Toolbar-based ActionBars above tabs" into lmp-preview-dev

* commit '22e41e9add1aeb0c8a79741f587c270752a50d16':
Enable collapsing empty Toolbar-based ActionBars above tabs
6bb10554ba3a0b6127402951a477412d961d1072 12-Jun-2014 Adam Powell <adamp@google.com> Allow action bar navigation icon resource id of 0

Fix a bug preventing this from being treated properly.

Bug 15458868

Change-Id: Ib1a7def482755757e524dfddd1eb6a02522c5d6b
nternal/widget/ToolbarWidgetWrapper.java
360c1d89227570510de7bb11195c986300488464 12-Jun-2014 Adam Powell <adamp@google.com> Enable collapsing empty Toolbar-based ActionBars above tabs

Fixes a regression where Toolbar ActionBars would hold empty space
when previous platform versions would collapse to tabs-only.

Bug 15573337

Change-Id: I6da379d2ed58e8ba8cadcd727606c7fc160ecf91
nternal/widget/ToolbarWidgetWrapper.java
720924b6a9770f03355999102a11d98c5954407c 12-Jun-2014 Adam Powell <adamp@google.com> Fix incorrect dispatch of empty WindowInsets from ActionBarOverlayLayout

Fix a bug where ActionBarOverlayLayout was using a private constructor
of WindowInsets to return empty insets that should have been marked
fully consumed. This caused dispatch to further child views not to
stop appropriately, corrupting application layout in some cases.

Bug 15588587

Change-Id: I97fcefa4755addf2385a7e7b0ffbf6d3e91adc5c
nternal/widget/ActionBarOverlayLayout.java
8c90ff3b8a31cd3ef0c740b5442abfd0b2881729 10-Jun-2014 Jeff Brown <jeffbrown@google.com> Merge "Delete stale commented out declarations."
e2708d98ce9d05fe798f93d1c1188fe15009bdc3 10-Jun-2014 Jeff Brown <jeffbrown@google.com> Delete stale commented out declarations.

Most of these methods have now been implememented earlier
in the class.

Change-Id: Id9ef2fa09c64ada788f1b9d95b14836f98498843
erver/SystemService.java
0fcedfd8ea4a613a6669bbe02cb0434c67bdbe01 09-Jun-2014 Yohei Yukawa <yukawa@google.com> Merge "Introduce a sequence number to avoid redundant IPCs"
3d1e8129ebd69db49d80e5d598f608c59b884cdf 06-Jun-2014 Yohei Yukawa <yukawa@google.com> Introduce a sequence number to avoid redundant IPCs

This CL introduces a sequence number to avoid redundant IPCs
between IMM and IMMS. The basic concept is that:
1. IMMS maintains a sequence number for #notifyUserAction.
2. IMMS increases the sequence number whenever the current
IME/subtype is changed.
3. IMMS notifies the new sequence number to IMM.
4. IMM maintains the last sent sequence number and the next
sequence number. IMM should call #notifyUserAction only
once per particular sequence number.
5. IMMS ignores #notifyUserAction if the specified sequence
number is not the expected one.

BUG: 7043015
Change-Id: I19ad8542659bc092b92ee13eb9f1d68ddd4b815a
nternal/view/IInputMethodClient.aidl
nternal/view/IInputMethodManager.aidl
nternal/view/InputBindResult.java
830960cce032a1b0dc0cf54bcc44ffa339388c21 07-Jun-2014 Alan Viverette <alanv@google.com> Material theme

BUG: 15467097
Change-Id: I15191362e104a902895418fc615892c21db64c35
nternal/util/NotificationColorUtil.java
nternal/widget/LockPatternView.java
3cb07a462be293634e6a83ea6c82f3647cd17dad 06-Jun-2014 Alan Viverette <alanv@google.com> DO NOT MERGE Material theme

BUG: 15467097
Change-Id: I15191362e104a902895418fc615892c21db64c35
nternal/util/NotificationColorUtil.java
nternal/widget/LockPatternView.java
a798c0a984f29f7180883a61839f68d2cbf0c6ce 15-May-2014 Svetoslav <svetoslavganov@google.com> Refactor printing

Change-Id: I19850154ef2798afff511e4490a268ce38e8cbae
nternal/os/SomeArgs.java
067351f876e45c7c319af2eb188fc0c3225e7656 06-Jun-2014 Vinod Krishnan <vinodkrishnan@google.com> resolved conflicts for merge of a3d5d3b8 to master

Change-Id: If0fe0cb541adb0eb74f13cf557ee264aa76c650c
a3d5d3b8af8eaacaf7b733ee5cccf4c36deac852 06-Jun-2014 Vinod Krishnan <vinodkrishnan@google.com> am 90e96db0: Merge "Adding a way to stub Vpn ConfirmDialog" into klp-modular-dev

* commit '90e96db0b5a200f528f1ca6a66d5aeaa5c915ca2':
Adding a way to stub Vpn ConfirmDialog
b0e5bbb657c59584c37a489c93a3a12d13ca56b7 05-Jun-2014 Vinod Krishnan <vinodkrishnan@google.com> Adding a way to stub Vpn ConfirmDialog

- This is needed to pass CTS tests on the wear devices
- Related CL: http://ar/479486

Bug: 15087985

Change-Id: I56673ff6085618a03ec61031e3af0f6631cb3425
nternal/net/VpnConfig.java
c954e61cd73875e74115c778cb5e35eab9695a59 05-Jun-2014 Alan Viverette <alanv@google.com> am 3966c960: Merge "Add defaults for caption colors and edge type" into lmp-preview-dev

* commit '3966c9604e55c9183a6d1ba8b3540add3be4434f':
Add defaults for caption colors and edge type
4586b0da631758e2753c3f0936f410ff3a6c3bda 05-Jun-2014 Alan Viverette <alanv@google.com> Merge "Add defaults for caption colors and edge type" into lmp-preview-dev
bd1205615443d7daa1498ae4e09e4cd22163e5c4 05-Jun-2014 Yohei Yukawa <yukawa@google.com> Merge "Trivial method renaming for notifyTextCommitted"
0297051162193ef2b7d906409868e404f77e4c31 05-Jun-2014 Yohei Yukawa <yukawa@google.com> Trivial method renaming for notifyTextCommitted

This CL does not change existing behavior but only renames
notifyTextCommitted with notifyUserAction so that we can use
not only text commit but also other actions such as just typing
a character will be used as a trigger to update the IME
rotation order for better IME switching experience.

BUG: 7043015
Change-Id: I7f3e13a7226ef0dceee82b67e8a0d8536f7e9807
nternal/inputmethod/InputMethodSubtypeSwitchingController.java
nternal/view/IInputMethodManager.aidl
63c8b6c3257219c97abdbd0bdea0b71030091c06 05-Jun-2014 Selim Cinek <cinek@google.com> am 71ea5814: Merge "Changed the LockPatternView assets to quantum" into lmp-preview-dev

* commit '71ea5814716a191b3ab2bc9045007865cbad3e34':
Changed the LockPatternView assets to quantum
35066c385f43aa9a6b90827584863bec21f8872f 05-Jun-2014 Selim Cinek <cinek@google.com> Merge "Changed the LockPatternView assets to quantum" into lmp-preview-dev
2cb687e7b9d0cbb1af5ba753453a9a05350a100e 04-Jun-2014 Selim Cinek <cinek@google.com> Changed the LockPatternView assets to quantum

Bug: 13735707
Change-Id: Id999adbd8a4aeb3ca91fcb9957ec38ec75ff91b0
nternal/widget/LockPatternView.java
e88aee8ad85b01229b12dbc0c3cc2f0b8b490192 05-Jun-2014 Alan Viverette <alanv@google.com> Add defaults for caption colors and edge type

BUG: 8151470
Change-Id: I4d7b75bf647aeded77b4000cdcd37e9ace46a374
nternal/widget/SubtitleView.java
eab8f9d330155c4931f3710043e7c0822c9a7050 05-Jun-2014 Adam Powell <adamp@google.com> am f0e4ca1b: Merge "Fix list navigation callbacks for ActionBarView" into lmp-preview-dev

* commit 'f0e4ca1b0398a9709d1516434e6d926f477acd70':
Fix list navigation callbacks for ActionBarView
2a7b35e80b922a6c8722090c99cf2c4da898247b 05-Jun-2014 Adam Powell <adamp@google.com> Merge "Fix list navigation callbacks for ActionBarView" into lmp-preview-dev
c9102d743f5ad2e4ce97ca347da15410ff6413ba 05-Jun-2014 Adam Powell <adamp@google.com> Fix list navigation callbacks for ActionBarView

Fix a regression from a previous refactoring where the call ordering
between setNavigationMode and setListNavigationCallbacks could result
in the item selection listener being ignored.

Bug 15395053

Change-Id: I5330f2c684a21448c64c6b62eec10b96405758f7
nternal/widget/ActionBarView.java
a0c808bb755228f288ca035166ee681a5e9fdc2f 05-Jun-2014 Craig Mautner <cmautner@google.com> am d842513c: Merge "Launch document sharing into unique activities" into lmp-preview-dev

* commit 'd842513c3df5fd3e46a70ab6798b4d3d20c4ef0b':
Launch document sharing into unique activities
4c6debb7678794401e9732cad4475e28ab91a496 04-Jun-2014 Craig Mautner <cmautner@google.com> Merge "Launch document sharing into unique activities" into lmp-preview-dev
a649e8def9eaee4866dff5a7d50a99250eb21312 04-Jun-2014 Adam Powell <adamp@google.com> am 5519852e: Merge "Implement action bar tab mode for Toolbar-based decor action bars" into lmp-preview-dev

* commit '5519852e01a646af65efeee30f5b8e80c2cd87e7':
Implement action bar tab mode for Toolbar-based decor action bars
3decd141a51849fa7f84cb4e5a28fa047ff9be37 04-Jun-2014 Adam Powell <adamp@google.com> am ab9906c0: Merge "Support list navigation mode for toolbar action bars" into lmp-preview-dev

* commit 'ab9906c0735fb22017f3d673207897347edeba92':
Support list navigation mode for toolbar action bars
2c60de3f6d849a581cca89ece7149c3836b3b6e4 04-Jun-2014 Craig Mautner <cmautner@google.com> Launch document sharing into unique activities

If the same item is shared twice (or more) a new activity for
sharing will be launched each time. Previously the first sharing
activity would be reused.

Fixes bug 14903271.

Change-Id: Ib9e618f3d42079836529e86c138a6c999350cac5
nternal/app/ChooserActivity.java
e002c2fb39f9df1db38a7412832882ae622660d4 04-Jun-2014 Adam Powell <adamp@google.com> Implement action bar tab mode for Toolbar-based decor action bars

Coordinate between the stacked row, etc. Also fix a silly bug in
Toolbar child views with Gravity.BOTTOM.

Bug 15332084

Change-Id: Ie91b7d5255c63d9befcc65d7939c1523e018809f
nternal/app/ToolbarActionBar.java
nternal/widget/ActionBarView.java
nternal/widget/DecorToolbar.java
nternal/widget/ToolbarWidgetWrapper.java
6790b0502b0ab6375ab9f750a5faf6a9b1748a4c 02-Jun-2014 Adam Powell <adamp@google.com> Support list navigation mode for toolbar action bars

Add support for the list(spinner) navigation mode for ToolbarActionBar
and WindowDecorActionBar when a Toolbar is substituting for an
ActionBarView.

Bug 15332084

Change-Id: Ic618686f7767c4a14410ae359435d7c1b244e4fa
nternal/app/NavItemSelectedListener.java
nternal/app/ToolbarActionBar.java
nternal/app/WindowDecorActionBar.java
nternal/widget/ToolbarWidgetWrapper.java
bcaffd05862b18a13d3aac5cbfc9114adf9ba595 03-Jun-2014 Dianne Hackborn <hackbod@google.com> am da4a186f: Merge "Some battery stats history fixes." into lmp-preview-dev

* commit 'da4a186f8bf49d8ea06d5ad6d402d9b073ee3841':
Some battery stats history fixes.
c32a244e907719e03d0fae42b20401dcd2c595fc 03-Jun-2014 Narayan Kamath <narayan@google.com> am dd2e9d33: am 7cb13f8a: Merge "Scan for renderscript files before deciding ABIs."

* commit 'dd2e9d3386d2d74f99f79bcad951ff5cdefa6fab':
Scan for renderscript files before deciding ABIs.
dd2e9d3386d2d74f99f79bcad951ff5cdefa6fab 03-Jun-2014 Narayan Kamath <narayan@google.com> am 7cb13f8a: Merge "Scan for renderscript files before deciding ABIs."

* commit '7cb13f8a0a40f3d971a953b330f38bfcfb001c5e':
Scan for renderscript files before deciding ABIs.
797b109c60bda8e122075b0c2101d3f2a0b67c07 03-Jun-2014 Narayan Kamath <narayan@google.com> am 7ed98c43: Merge "Add an --abi argument to "pm install""

* commit '7ed98c43f8cbcfbb4862205a72455ab39359a011':
Add an --abi argument to "pm install"
dad8f819a710510be28e9fdeee84f9b5b2ddacbf 03-Jun-2014 Narayan Kamath <narayan@google.com> Merge "Add an --abi argument to "pm install""
d47e38b6342fea93b007319431634a4bcfee452c 16-May-2014 Narayan Kamath <narayan@google.com> Scan for renderscript files before deciding ABIs.

The presence of ".bc" files in an APK implies
incompatibility with any of the 64 bit ABIs.

bug: 14900093

Change-Id: I66ca339a9a149cb3b7e7b349033d80acdeb4140a
nternal/content/NativeLibraryHelper.java
116bdbd823b607d860b039ec334a1f985eed7a7f 29-May-2014 Narayan Kamath <narayan@google.com> Add an --abi argument to "pm install"

This allows callers to force an install to a particular
ABI. This is intended only for testing (and CTS) and is
not meant for usage by the installer package.

bug: 14453227

(cherry picked from commit 6431d11cd420536aaa9d93ae510a3151ccc4df1d)

Change-Id: I85d4f8785deea02a6a4d3cb0b05e6ef8bf64826b
nternal/app/IMediaContainerService.aidl
6431d11cd420536aaa9d93ae510a3151ccc4df1d 29-May-2014 Narayan Kamath <narayan@google.com> Add an --abi argument to "pm install"

This allows callers to force an install to a particular
ABI. This is intended only for testing (and CTS) and is
not meant for usage by the installer package.

Change-Id: Icb1528c0cd35b1aa9323386cb35ff4aaba374fcb
nternal/app/IMediaContainerService.aidl
c777185688d1de4f1c989b3f7630e7715fd71be3 03-Jun-2014 Christopher Tate <ctate@google.com> Finish migration of backup transport constants

...and make sure to fix a couple of lingering Javadoc references.

Bug 15329632

Change-Id: I1de7b53a58940834cd2dae2301fd5f65dbb48ba6
nternal/backup/BackupConstants.java
bfb131317b51931569b4d375f1dc652a17d0b954 03-Jun-2014 Christopher Tate <ctate@google.com> Merge "Add full-backup stream API to BackupTransport"
4dd2635bf501ad1a1adc22a6ceb4c66cd61a1a23 03-Jun-2014 Christopher Tate <ctate@google.com> Add full-backup stream API to BackupTransport

Also started migrating the definition of transport success/failure constants
into BackupTransport to make them permanent.

The new methods are not yet plumbed in; this is just to allow forward
progress against a proposed stable API.

Bug 15329632

Change-Id: I27472e09b831350c140b9fa548ebda3af334eb1a
nternal/backup/LocalTransport.java
55691b8cc725297e0d36799e234cba3c8c3410f6 27-May-2014 Robert Greenwalt <rgreenwalt@google.com> Refactor NetworkFactory.

Make NetworkFactory a concrete class and divide responsibilites between it and NetworkAgent.
Factory will track requests and by default give a single connect/disconnect api for ease
of use. Then NetworkAgent is created and destroyed as needed with very simple logic.

Change-Id: I401c14a6e5466f2fc63b04219b97ff85bb9af291
(cherry picked from commit 9a17b9c5a256cb4bb14821c5ee89b03b99c045e8)
nternal/util/Protocol.java
9e32be5d2625daa5efdfe04e983f33b825bb0d9b 03-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Refactor NetworkFactory."
083a3e61519b211d021fe97f08f0bacc18224104 03-Jun-2014 Yohei Yukawa <yukawa@google.com> Merge "Reenable DynamicRotationList for language-switching-aware IMEs"
3192dec32180f56733e631c2d9ec62fa1359283d 27-May-2014 Robert Greenwalt <rgreenwalt@google.com> Refactor NetworkFactory.

Make NetworkFactory a concrete class and divide responsibilites between it and NetworkAgent.
Factory will track requests and by default give a single connect/disconnect api for ease
of use. Then NetworkAgent is created and destroyed as needed with very simple logic.

Change-Id: I401c14a6e5466f2fc63b04219b97ff85bb9af291
nternal/util/Protocol.java
0bec638839b0a07502ff27c9dcf4419b3c47a0d2 03-Jun-2014 Dianne Hackborn <hackbod@google.com> Merge "Some battery stats history fixes." into lmp-preview-dev
fc0641340ff927d9c35d5613723d25858f751118 02-Jun-2014 Dianne Hackborn <hackbod@google.com> Some battery stats history fixes.

- Now the full wake history uses the history tag if it can.
Hopefully this will still result in a consistent history,
since that isn't really want the tag is for... but the
current implementation in places will probably make this work.

- Possibly fix a bug with inconsistent state between partial
history snapshots: after a snapshot is printed, don't allow
any more batching into the most recent history entry, so the
next snapshot will not miss anything that might get placed
into it soon after.

Also rework command line arguments for enable/disable to make these
commands instead of options.

Change-Id: Ia33445cad1538bf8df549cef284f1e736efbc079
nternal/os/BatteryStatsImpl.java
559321abbfd2e66763accc172f3596e4cf7f9172 02-Jun-2014 dcashman <dcashman@google.com> Merge "Add ArrayUtils methods and tests for consumption by KeySet code."
874d0d4032dc940327a81359f144d38d3cb580a3 30-May-2014 dcashman <dcashman@google.com> Add ArrayUtils methods and tests for consumption by KeySet code.

Adds methods for dealing specifically with long data types. Used by
PackageKeySetData as part of the KeySet work. Add appropriate test methods
to MoreAsserts as well.

Bug: 6967056
Change-Id: I1e263301b353e0cd1b45126be6ef5ec310f311a8
nternal/util/ArrayUtils.java
07bd732034fbf4ce0e51b99c7199edf20dff1565 02-Jun-2014 Yohei Yukawa <yukawa@google.com> Reenable DynamicRotationList for language-switching-aware IMEs

In order to reenable DynamicRotationList for
language-switching-aware IMEs, this CL reverts
I84291fd4a7d6192b3bd0c366c49 with fixing a bug that the dynamic
rotation state is reset even when the list of input methods is
not changed.

With this CL, the dynamic rotation state is preserved when the
enabled input methods is not changed actually.

BUG: 7043015
Change-Id: I506828c7a363e79f1c767eeb28f0d3746ff1cb0d
nternal/inputmethod/InputMethodSubtypeSwitchingController.java
535499204be8d6af83435317524983f06d49e858 02-Jun-2014 Adam Powell <adamp@google.com> am 16b0baa4: Merge "Further implementation for ToolbarActionBar" into lmp-preview-dev

* commit '16b0baa45bd68bb05863d3a6e92b7e8e0b452cb2':
Further implementation for ToolbarActionBar
07a74548ae5c1e064508cb1c79ac34de1142b240 31-May-2014 Adam Powell <adamp@google.com> Further implementation for ToolbarActionBar

Integrate activity options menu and inline Toolbars. Fix a series of
small associated bugs.

Activities now (privately) offer several menu-related events directly
to the associated ActionBar. In the future this should help us
untangle some of the menu-based pasta in PhoneWindow.

Bug 15344598

Change-Id: I76211ad17d2bcbb58cf1d88914e855416d084ded
nternal/app/ToolbarActionBar.java
nternal/widget/ToolbarWidgetWrapper.java
8cdef8293f75b3bf3ba4f57d4bb58dae2bad1a64 31-May-2014 Jorim Jaggi <jjaggi@google.com> am 698c8194: Merge "Fade scrim in unlock animation." into lmp-preview-dev

* commit '698c81948ed277253d567aa4c34996d2d0477992':
Fade scrim in unlock animation.
d48d7a6d506a72cc519e05fc4c124087b0db221b 31-May-2014 Jorim Jaggi <jjaggi@google.com> Merge "Fade scrim in unlock animation." into lmp-preview-dev
e29b2dbc762bfa66093d76f5a65f55328d8753c9 30-May-2014 Jorim Jaggi <jjaggi@google.com> Fade scrim in unlock animation.

This also introduces a startTime which gets sent from window manager
to SystemUI, which tells when the animation should start, to allow
for a more synchronized animation with fading out the scrim and
fading in the activity behind.

Bug: 15163546
Change-Id: I16212b1ef9eb76f1f98734da1d14fc5b7e626937
nternal/policy/IKeyguardService.aidl
00fcdc1236a8730d4c69c779a92b2c20cdb54be6 31-May-2014 Dianne Hackborn <hackbod@google.com> am d6f7d9b7: Merge "Clean up voice API." into lmp-preview-dev

* commit 'd6f7d9b75931d031086a744cfd18994b2673f311':
Clean up voice API.
725010a83f1798e5ba6edb93ca2656a96c29fcae 31-May-2014 Dianne Hackborn <hackbod@google.com> Merge "Clean up voice API." into lmp-preview-dev
a2c076d54048258cf88ab14551ce5fdf5a09c6e8 31-May-2014 Dianne Hackborn <hackbod@google.com> Clean up voice API.

Add various java docs.

Switch to CharSequence where appropriate.

Add new request for canceling voice interaction.

Also update test app to follow API changes and be more better.

Change-Id: If27eeba53cf6444660adb7d37ea2ce0557c6c91f
nternal/app/IVoiceInteractor.aidl
nternal/app/IVoiceInteractorCallback.aidl
92bcf31f541ceb4e5af031d249370c32c5cd4713 31-May-2014 Adam Powell <adamp@google.com> am 338382de: Merge "Fix action bar title TextAppearance usage for Toolbar decor" into lmp-preview-dev

* commit '338382de18d9df699c15eb9adbaaa50d8a6664fd':
Fix action bar title TextAppearance usage for Toolbar decor
ae706066e1a9aa25c7d57619c0bf8ba24815d3d8 31-May-2014 Adam Powell <adamp@google.com> Merge "Fix action bar title TextAppearance usage for Toolbar decor" into lmp-preview-dev
ebba5d4edd763b19124b715a0f084d2f00c84a47 31-May-2014 Adam Powell <adamp@google.com> Fix action bar title TextAppearance usage for Toolbar decor

Pass through the appropriate action bar styles for title/subtitle
TextAppearance.

Bug 15345937

Change-Id: I93c648cf60b4a63498d127dbd6eac2c1fae33aa7
nternal/widget/ToolbarWidgetWrapper.java
ee36492fac16169f622c8f554385b602593b7e71 30-May-2014 Yin-Chia Yeh <yinchiayeh@google.com> am 7ebaa1ef: Merge "Camera2: update the range of metering weight" into lmp-preview-dev

* commit '7ebaa1ef18fd20500efb87f75e933b9e35fb5470':
Camera2: update the range of metering weight
f41799e7f7d29ce479372f31d5570b99859692c3 30-May-2014 Yin-Chia Yeh <yinchiayeh@google.com> Merge "Camera2: update the range of metering weight" into lmp-preview-dev
c6b6154ac1eb4e839f363115aef3649c967bcfdd 30-May-2014 John Reck <jreck@google.com> am ea5af639: Merge "Re-jigger layers" into lmp-preview-dev

* commit 'ea5af63965bf323580aa1e2854efb2f8cc3dc396':
Re-jigger layers
b69f1bddfe39c93f1e120e13a835768f68451e36 30-May-2014 Santos Cordon <santoscordon@google.com> am 6d052adc: Merge "Update showCallScreen to use Telecomm (1/6)" into lmp-preview-dev

* commit '6d052adc910bf2d2775881528cef3e41fe2cd14b':
Update showCallScreen to use Telecomm (1/6)
2157b9dcef00eac182b557b4d78cb66c31eba1bd 30-May-2014 Adam Powell <adamp@google.com> am a082f3a0: Merge "Fix bad casts in action bars" into lmp-preview-dev

* commit 'a082f3a05ede6ae5fa4ab64b30a77de18579264c':
Fix bad casts in action bars
ca8eb243d1268e8f89ecd02063960667aca3374b 30-May-2014 John Reck <jreck@google.com> Merge "Re-jigger layers" into lmp-preview-dev
d72e0a339b54af0c4e731513bbad120dff694723 30-May-2014 John Reck <jreck@google.com> Re-jigger layers

Bug: 15185239
Bug: 15238382

Make DeferredLayerUpdater ref counted so that
HardwareLayer:finalizer() works non-crashily on
leaked layers
Give DeferredLayerUpdater the ability to have a layer destroyer
set so that leaked layers can still be recycled on the
RenderThread
Order layer updates based off of pushLayerUpdate() calls to fix
issue with nested layers

Change-Id: I4449cee607f7e5126e02fed7464cf48038e3dfdf
nternal/util/VirtualRefBasePtr.java
97f1c854993a65b2c700426a1e3a83b23ea65337 29-May-2014 Yin-Chia Yeh <yinchiayeh@google.com> Camera2: update the range of metering weight

Limit the range of metering weight to 0-1000.

Bug: 15315352
Change-Id: Iceb13b72508cb3c9f758bdcb1b69b6b11ec5aaf8
nternal/util/Preconditions.java
3534ede5722b98c5be1526ba0bc2cd8acfbe0e55 29-May-2014 Santos Cordon <santoscordon@google.com> Update showCallScreen to use Telecomm (1/6)

- Add API methods to InCallService and ITelecommService.
- Remove old methods from ITelephony.
- Route the TelephonyManager methods through ITelecommService instead of
ITelephony.
- Update Lock screen to use TelephonyManager instead of ITelephony.

Bug: 15008165
Change-Id: Ib674e2e48efaa1cc97d1513dc2c2b27fdb343657
nternal/widget/LockPatternUtils.java
76d1466dfcdfbeb80dac64b9ec210c61b0b08574 30-May-2014 Adam Powell <adamp@google.com> Fix bad casts in action bars

Not all DecorToolbars are themselves views. Use the interface
passthrough instead.

Bug 15335176

Change-Id: I88f1701822406d4204d344aef855a4a707e4c7ab
nternal/app/WindowDecorActionBar.java
8b466c19d6306c508aeaa2ad349f8c3225f62f0e 30-May-2014 Dianne Hackborn <hackbod@google.com> am f6550f0a: Merge "More work on voice interaction visuals." into lmp-preview-dev

* commit 'f6550f0ab2fb1abae6f9d694c87ccba9bede57f4':
More work on voice interaction visuals.
2d2e30eeac5b6799808c23b944f29d68ed0c205d 30-May-2014 Dianne Hackborn <hackbod@google.com> Merge "More work on voice interaction visuals." into lmp-preview-dev
20d94749043d0851f1da10c7749fd7eb13a35081 30-May-2014 Dianne Hackborn <hackbod@google.com> More work on voice interaction visuals.

There is now a special theme for voice interaction activities
to use, so they can be a panel that is better intergrated with
the rest of the voice interaction experience. This is still
not completely working, I have some hacks in the demo app to
get it right; I'll fix that in a future change.

Also improve VoiceInteractor to be retained across activity
instances, for things like rotation.

And bump up the number of concurrent broadcasts that are allowed
on non-svelte devices, since they can handle more and this makes
the boot experience better when dispatching BOOT_COMPLETED.

Change-Id: Ie86b5fd09b928da20d645ec2200577dee3e6889d
nternal/os/HandlerCaller.java
4b44b7adb81a20c1f0cb6ad5c8c0a6260895bdb8 30-May-2014 Selim Cinek <cinek@google.com> am bdb5b5d1: Merge "Implemented the appear animation for the pattern security." into lmp-preview-dev

* commit 'bdb5b5d1cc1b248003b0e86a2fe2793230fe5bf3':
Implemented the appear animation for the pattern security.
79525b2f024940c9391e79d52972e0d82450589b 30-May-2014 Selim Cinek <cinek@google.com> Merge "Implemented the appear animation for the pattern security." into lmp-preview-dev
3018197cf0dff5a9061f6065a8ecc108a0866dab 30-May-2014 Selim Cinek <cinek@google.com> Implemented the appear animation for the pattern security.

Also refactored AppearAnimationUtils slightly to support this.

Bug: 15163546
Change-Id: I411fad20c410875dcf7bc465ea545ed90aac187e
nternal/widget/LockPatternView.java
55cef957a370de208374c36ba4a27a69652f0965 30-May-2014 Jorim Jaggi <jjaggi@google.com> am 151f3c15: Merge "Cache whether a password/pattern is set." into lmp-preview-dev

* commit '151f3c15cb909058a7d77faec44520439a2db4ca':
Cache whether a password/pattern is set.
5c0727ff2debd2ce0b92bf264524480009a36935 30-May-2014 Jorim Jaggi <jjaggi@google.com> Merge "Cache whether a password/pattern is set." into lmp-preview-dev
74318c98a0f67e042815798f85c75eb7f14390e1 16-May-2014 Christopher Tate <ctate@google.com> Provide stable concrete wrapper for backup transport API

This initial version is a simple pass-through of the existing
IBackupTransport AIDL definition.

Change-Id: I0f6c9ffc7101f82127ab61ba6cba9f5003af6a0c
nternal/backup/IBackupTransport.aidl
nternal/backup/LocalTransport.java
nternal/backup/LocalTransportService.java
7a184985590e25c9b4a5b534953924d0abef5ef1 29-May-2014 Craig Mautner <cmautner@google.com> am b5b37c2b: Merge "Add methods to coordinate unlock animation." into lmp-preview-dev

* commit 'b5b37c2babe744acb002ed9b8556a9d9cd2202fc':
Add methods to coordinate unlock animation.
219d7a50fb7a269fe54dd9d70587c269d217336f 29-May-2014 Craig Mautner <cmautner@google.com> Merge "Add methods to coordinate unlock animation." into lmp-preview-dev
1811efdcc20a2ae307fdfa441e72e0423b4052bc 29-May-2014 Dan Sandler <dsandler@android.com> am afad5df6: Merge "Use DecorToolbar.getViewGroup() to get the view properly." into lmp-preview-dev

* commit 'afad5df6425c2e6682b203e3e075e70ef56df9d0':
Use DecorToolbar.getViewGroup() to get the view properly.
6fdeeb34ae1be8ef7579456b443befd7e9b92ac0 29-May-2014 Dan Sandler <dsandler@android.com> Use DecorToolbar.getViewGroup() to get the view properly.

Bug: 15320825
Change-Id: Ib7e162c816fadf2b5c83af1326e7158f6bd69c8e
nternal/app/WindowDecorActionBar.java
77b170cedca2828d8c40ca33b820f5911a558326 29-May-2014 Brian Carlstrom <bdc@google.com> resolved conflicts for merge of 452c5921 to klp-modular-dev-plus-aosp

Change-Id: I6044604b431eed0319579a1a3b9213c9a0aaf678
88e719fd3e7f998f77124fa3c969790409916060 29-May-2014 Adam Powell <adamp@google.com> am 49a4961e: Merge "Toolbar factoring and ActionBar functionality integration" into lmp-preview-dev

* commit '49a4961efde042f4921393f59cff86c2b7889c71':
Toolbar factoring and ActionBar functionality integration
452c592191a147ae1175db775bc3e7e8e0311855 29-May-2014 Brian Carlstrom <bdc@google.com> am 197565e0: Merge "Move to dalvik.vm.lib.2 to force default to libart"

* commit '197565e0e800be3c731e679914f40afa1aab98fd':
Move to dalvik.vm.lib.2 to force default to libart
5bc93866b089faa2feddf7b113afe915401d992f 28-May-2014 Brian Carlstrom <bdc@google.com> Move to dalvik.vm.lib.2 to force default to libart

Bug: 14298175

(cherry-picked from commit 2ef5abb8d534f016582d6023054cbe69d8114b6b)

Change-Id: Icd91982c09076e87092906106cbff4a81589e8de
nternal/app/ProcessStats.java
245b8f054b8125ef3a98b4bc2c9bbcf992390a2b 28-May-2014 Brian Carlstrom <bdc@google.com> am a2260c26: Merge "Move to dalvik.vm.lib.2 to force default to libart" into lmp-preview-dev

* commit 'a2260c26fc2499e1338a25f6f787a8d48ae48ddf':
Move to dalvik.vm.lib.2 to force default to libart
6addcea6ae4e8a99fdae7b0f5933ae20aff4bca4 28-May-2014 Adam Powell <adamp@google.com> Merge "Toolbar factoring and ActionBar functionality integration" into lmp-preview-dev
3c1ff826e0abdffdd76129bf974abb96444dade8 28-May-2014 Brian Carlstrom <bdc@google.com> Move to dalvik.vm.lib.2 to force default to libart

Bug: 14298175
Change-Id: I8afa91bddfb6fec6b61c39286a16594eb947830e
nternal/app/ProcessStats.java
e021e6ed8931a0a8296af182fc9b0c76b64fb0c4 24-May-2014 Adam Powell <adamp@google.com> Toolbar factoring and ActionBar functionality integration

Toolbars now can act in the role of ActionBar with the exception of
navigation modes. Expandable action views are now supported as well as
populating menu items from a host window.

Change-Id: If477db9c7ad9f95723f28cf73cbf03a07ce9d6ad
nternal/app/WindowDecorActionBar.java
nternal/widget/AbsActionBarView.java
nternal/widget/ActionBarContainer.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarOverlayLayout.java
nternal/widget/ActionBarView.java
nternal/widget/DecorToolbar.java
nternal/widget/ToolbarWidgetWrapper.java
232b1bf55018e1c519cc795cddf9fa4c39370885 28-May-2014 Jorim Jaggi <jjaggi@google.com> Cache whether a password/pattern is set.

Bug: 15163546
Change-Id: I15df5111942f0609872a18bd75846900759e49b1
nternal/widget/LockPatternUtilsCache.java
0d674623facfbd3e9c520d2be4ed98977b92a1a2 21-May-2014 Jorim Jaggi <jjaggi@google.com> Add methods to coordinate unlock animation.

Introduce IWindowManager.keyguardGoingAway to notify that Keyguard
wants to dismiss it self. This method starts the state machine in
WindowAnimator which animates in the activity behind the keyguard.
Animating out the keyguard is done by the StatusBar/Keyguard
software when it receives the startKeyguardExitAnimation() callback.

Bug: 14118756

Change-Id: Id3b8f41189410bad808b4892fbec74245e59efce
nternal/policy/IKeyguardService.aidl
c997ca0b68d19ec9a74051be536b02bd3e6d2adc 27-May-2014 Yohei Yukawa <yukawa@google.com> Merge "Switch back to StaticRotationList from DynamicRotationList"
529001f06761205bcaae1570d81556be397f56fb 27-May-2014 Yohei Yukawa <yukawa@google.com> Switch back to StaticRotationList from DynamicRotationList

Ic005b94379f9d847ea, which introduced DynamicRotationList for
smarter input method rotation, is suspected to be causing a
strange behavior that InputMethodManager#switchToNextInputMethod
is choosing unexected/disabled IME/subtype.

With this CL, we switch back to StaticRotationList until the root
cause is addressed.

BUG: 7043015
Change-Id: I95fc8b28536cea6d09ea325e0caee14007cfc0a7
nternal/inputmethod/InputMethodSubtypeSwitchingController.java
e282c97e21197d0fdf2c814fbe5716cb9630152e 27-May-2014 Nicolas Prevot <nprevot@google.com> Merge "Rename code related to cross-profile intents."
a9bda774276f1c5a1fc6fd67a7782a06e696be8f 23-May-2014 Yohei Yukawa <yukawa@google.com> Implement dynamic IME rotation based on user action

With this CL, the IME rotation order will be updated dynamically
based on user actions on IMEs. Currently only onCommitText is
took into considered.

Imagine that we have the following rotation order.
[A, B, C, D, E]
If a user action for C is observed, the rotation order will be
updated as follows:
[C, A, B, D, E]
Then another user action for D updates the rotation order as
follows:
[D, C, A, B, E]

BUG: 7043015
Change-Id: Ic005b94379f9d847ea87046473ed77d8018d930e
nternal/inputmethod/InputMethodSubtypeSwitchingController.java
0833d2bc87823c71851bd68bb7aeb1fb01d13d96 25-May-2014 Craig Mautner <cmautner@google.com> Merge "Add code for persisting tasks and activities to disk DO NOT MERGE" into lmp-preview-dev
21d24a21ea4aaadd78e73de54168e8a8a8973e4d 23-Apr-2014 Craig Mautner <cmautner@google.com> Add code for persisting tasks and activities to disk DO NOT MERGE

Recent tasks that have the persistable flag set are
saved to /data/system/recent_tasks/ on shutdown and in the
background. Their thumbnails are saved to
/data/system/recent_images/.

Change-Id: Ifb820a01c412fe1f8c0f6e41aa655fafd89eaa8d
nternal/util/XmlUtils.java
b861179fcad905cc25315a429d3593dce4c05fd3 24-May-2014 Dianne Hackborn <hackbod@google.com> am b7a1d1e4: Merge "Fix issue #15195464: battery history says wakelock held when it\'s not" into lmp-preview-dev

* commit 'b7a1d1e4ed6ea26512d1e1f34fa264a639c91819':
Fix issue #15195464: battery history says wakelock held when it's not
a82c9be2f71c7fdd1aba2cc8ccb3e404886f8561 24-May-2014 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #15195464: battery history says wakelock held when it's not" into lmp-preview-dev
536456f2d4c0d93bb55950ce5edc24e9bb9547eb 24-May-2014 Dianne Hackborn <hackbod@google.com> Fix issue #15195464: battery history says wakelock held when it's not

Simplify full wake lock logging, so wake_lock_in is a completely
separate event from wake_lock and provides the full real raw log
of wake lock events.

Also attempt to address issue #15018750 (Incorrect wakelock reporting)
by no longer being complicated and rolling up previous state in to a
new history slice.

Bug: 15195464
Bug: 15018750
Change-Id: I32154bdfc2f07113be969f9db5503b2f2807a427
nternal/os/BatteryStatsImpl.java
deec695253aa5856135be3ffdcd35eaafed9e526 24-May-2014 Craig Mautner <cmautner@google.com> Merge "Add code for persisting tasks and activities to disk"
60d9d1f19fdfaf586432557f3115b8ea811507f2 23-May-2014 Christopher Tate <ctate@android.com> am 8c0660c2: am d6d7587a: am a0166b58: Merge "Activity chooser "Always" button is not working"

* commit '8c0660c257d4cab61c37a03a64b7081f3095b9b5':
Activity chooser "Always" button is not working
de220369c60264c6bc637e1a65486f6c79f15309 23-May-2014 Alan Viverette <alanv@google.com> am e11794a2: Merge "Update switch, checkbox, radio button, button, and toggle button" into lmp-preview-dev

* commit 'e11794a2c1af70a265b6476ce3f3587814e9f0b3':
Update switch, checkbox, radio button, button, and toggle button
048aad39ba54eab3c8753fc90245406e61cc92c7 23-May-2014 Alan Viverette <alanv@google.com> Merge "Update switch, checkbox, radio button, button, and toggle button" into lmp-preview-dev
f176e3be88ffeaf806acc6e95b131789018bcaf5 23-May-2014 Adrian Roos <roosa@google.com> am fe3a59cf: Merge "Add a cache to LockPatternUtils" into lmp-preview-dev

* commit 'fe3a59cfa476fd22006f585b1c5ae8624d5191df':
Add a cache to LockPatternUtils
98157e8dbb29bef0d10899d88e87a5c1f8dcd3dc 23-May-2014 Adrian Roos <roosa@google.com> Merge "Add a cache to LockPatternUtils" into lmp-preview-dev
4f7884542ce8fba5bfed01ed834a32e6d3e2dea5 22-May-2014 Adrian Roos <roosa@google.com> Add a cache to LockPatternUtils

Caches responses from LockSettingsService in the client process.

Bug: 15088101
Change-Id: If77c5ec45f52a02c800d50cb8550bfcb180f301d
nternal/widget/ILockSettings.aidl
nternal/widget/ILockSettingsObserver.aidl
nternal/widget/LockPatternUtils.java
nternal/widget/LockPatternUtilsCache.java
8194899071e0a84c95ef10614bd1b9485b48f589 16-May-2014 Nicolas Prevot <nprevot@google.com> Rename code related to cross-profile intents.

For example, replace ForwardingIntentFilter by CrossProfileIntentFilter

Bug: 15023443

Change-Id: Iee8cdf578817ef9956bcdece803a49b0d07b67f7
nternal/app/IntentForwarderActivity.java
0cc609606ae8d3b643fed41fe136b6ce7bb83a1b 23-May-2014 Christoph Studer <chstuder@google.com> Merge "SysUI: Use SBN keys instead of IBinder keys DO NOT MERGE" into lmp-preview-dev
6c8ca8473aeff569922ad4eebb07296ce62d9a8e 23-May-2014 Yohei Yukawa <yukawa@google.com> Merge "Consolidate the language-switching logic"
9b29d04565e1faf0a49054f538ed1881cb24fe12 22-May-2014 Yohei Yukawa <yukawa@google.com> Consolidate the language-switching logic

This CL does not change the existing behavior.
In I84291fd4a7d6192b, the IME rotation group is logically
devided into two groups, one is for IMEs that are declared as
supportsSwitchingToNextInputMethod == true, and the other is
IMEs that are not declared so. The problem is that the logic
was implemented with a single ime/subtype list where these two
kinds of IMEs are completely mixed. This makes the code
unnecessarily complex.
With this CL, these two rotation groups are actually managed
as two different collections separately. This allows us to
simplify the rotation logic as well as its test cases.
This CL is also a groundwork to implement smarter
language-switching logic that is applied to
language-switching-aware IMEs only.

BUG: 7043015
Change-Id: I7f08ec299ec41d614e2cd3912320687db1576e80
nternal/inputmethod/InputMethodSubtypeSwitchingController.java
ef73ee1dd98acfc4a19561367cfc3e4d8bbe06ea 23-Apr-2014 Craig Mautner <cmautner@google.com> Add code for persisting tasks and activities to disk

Recent tasks that have the persistable flag set are
saved to /data/system/recent_tasks/ on shutdown and in the
background. Their thumbnails are saved to
/data/system/recent_images/.

Change-Id: Ifb820a01c412fe1f8c0f6e41aa655fafd89eaa8d
nternal/util/XmlUtils.java
2356c5e69b0911e6334ebf6374217898371be5ac 23-May-2014 Alan Viverette <alanv@google.com> Update switch, checkbox, radio button, button, and toggle button

Add optical inset support to BitmapDrawable with gravity. Fix optical
inset support in DrawableContainer. Fix visibility change support in
AnimatedStateListDrawable. Adds a whole bunch of missing drawable
support to CheckedTextView.

BUG: 15127013
BUG: 15126976
BUG: 15125529
BUG: 15025806
BUG: 14597955
BUG: 14594498
BUG: 15152746
Change-Id: Id2d99e10838d25b6f927ca1e49996c8da8e78ab1
nternal/app/AlertController.java
8c0660c257d4cab61c37a03a64b7081f3095b9b5 23-May-2014 Christopher Tate <ctate@android.com> am d6d7587a: am a0166b58: Merge "Activity chooser "Always" button is not working"

* commit 'd6d7587ab09e4a0eae9252e11ab59ad27af68823':
Activity chooser "Always" button is not working
d6d7587ab09e4a0eae9252e11ab59ad27af68823 23-May-2014 Christopher Tate <ctate@android.com> am a0166b58: Merge "Activity chooser "Always" button is not working"

* commit 'a0166b58de38e0d2d67f9d847d307cf3ce7bf633':
Activity chooser "Always" button is not working
293251318168ad2dbfeb3d18176936fe2cc16325 22-May-2014 Dianne Hackborn <hackbod@google.com> (DO NOT MERGE) Battery monitoring fixes:

- Improve monitoring of level changes to not be confused
when it goes up while draining or down while charging.
- Put back in connectivity service code to tell battery
stats about the interfaces.
- Turn back on reporting of mobile radio active state
from the RIL.
- Fix bug in marshalling/unmarshalling that would cause
the UI to show bad data.

Change-Id: I733ef52702894cca81a0813eccdfc1023e546fce
nternal/os/BatteryStatsImpl.java
71f18fd1b64071e486bafff237b1f87a56d4aead 20-May-2014 Christoph Studer <chstuder@google.com> SysUI: Use SBN keys instead of IBinder keys DO NOT MERGE

In preparation of migrating to NotificationListenerService,
remove dependence on IBinder keys for notifications and switch
to SBN.getKey() instead.

Bug: 15131411
Change-Id: Ic272e4a05fde6481c734144c5b34c49b2f021649
(cherry picked from commit 7c96ae873d9a54ebaeb5b7ef21b48224dc42d094)
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
02a217fad03a695522b2c4d4872f69e3e083059e 22-May-2014 Dianne Hackborn <hackbod@google.com> Merge "Battery monitoring fixes:"
2d4b4ed681efcfb64c4d2b4d2a2d236aae1dc7ee 22-May-2014 Dianne Hackborn <hackbod@google.com> Battery monitoring fixes:

- Improve monitoring of level changes to not be confused
when it goes up while draining or down while charging.
- Put back in connectivity service code to tell battery
stats about the interfaces.
- Turn back on reporting of mobile radio active state
from the RIL.
- Fix bug in marshalling/unmarshalling that would cause
the UI to show bad data.

Change-Id: I733ef52702894cca81a0813eccdfc1023e546fce
nternal/os/BatteryStatsImpl.java
540b01e024c040dfb1ee50cfcdc96a401adfcf25 20-May-2014 Christoph Studer <chstuder@google.com> SysUI: Use SBN keys instead of IBinder keys

In preparation of migrating to NotificationListenerService,
remove dependence on IBinder keys for notifications and switch
to SBN.getKey() instead.

Bug: 15131411
Change-Id: Ic272e4a05fde6481c734144c5b34c49b2f021649
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
4fae8e165b3e10d8365ab9c08b13704d57e119c7 22-May-2014 Yohei Yukawa <yukawa@google.com> Merge "Remove unnecessary internal lock"
e88b042d1d859ec754ed5a5f366bb560b30f67ec 10-Apr-2014 Xiong Li <xiong.li@sonymobile.com> Activity chooser "Always" button is not working

When ResolverActivity is created with a custom list of matching
applications (rList) as in NFC case, and the alwaysUseOption is
set to true, the prferredActivity is not saved even if the user
presses the "always" button.

When a list is provided the variable mBaseResolveList will be
!= null. This will set mOrigResolveList = null.

When an activity is choosen and one of the buttons are pressed
onIntentSelected is called. The first thing this method does
is to check mAdapter.mOrigResolveList != null, however in this
case mOrigResolveList is always null, and the value is not
saved as PreferredActivity.

This problem was introduced in
6d8dfbd8149942f25f2b9643a12f1fb38f3be834.

Change-Id: I9eac41b7861b5e68ad3978af0dc0285f2a34eb88
nternal/app/ResolverActivity.java
5a647b69be8ac8d40c33ed9abe63e41514699e5b 21-May-2014 Yohei Yukawa <yukawa@google.com> Remove unnecessary internal lock

Previously, InputMethodSubtypeSwitchingController has relied on
its own internal lock for #getNextInputMethod and
class has to be invalidated whenever
InputMethodManagerService#mMethodMap is updated, any method of
InputMethodSubtypeSwitchingController should be called under
the global lock of InputMethodManagerService#mMethodMap.

As a consequence, we can conclude that
InputMethodSubtypeSwitchingController does not need its own
internal lock.

This CL also adds additional synchronization blocks into
the constructor of InputMethodManagerService to address the
existing inconsistency that methods with *Locked suffix are
called without the lock actually.

BUG: 7043015
Change-Id: I9d4d3d7232c984432185c10c13fb726a6158cac8
nternal/inputmethod/InputMethodSubtypeSwitchingController.java
350c73fb404268ca0c3c57dc98c53d5353f08ff6 22-May-2014 Yohei Yukawa <yukawa@google.com> Merge "Overrides ImeSubtypeListItem#toString"
1c63079b55cbb161ec6bed731a751943e6ac5736 22-May-2014 Yohei Yukawa <yukawa@google.com> Overrides ImeSubtypeListItem#toString

This makes it easy to debug.

BUG: 7043015
Change-Id: Ic389fc20d417c01196e06046f5259ad56a7aca6c
nternal/inputmethod/InputMethodSubtypeSwitchingController.java
af488b1b8b1eb8ad8bf1492522308d28b7c28511 22-May-2014 Mindy Pereira <mindyp@google.com> am 246f907b: am a718943d: Merge "Make a smaller cliff for dismissing cards" into klp-modular-dev

* commit '246f907b546af98d93b6eb2549aaf891cefe2aed':
Make a smaller cliff for dismissing cards
246f907b546af98d93b6eb2549aaf891cefe2aed 22-May-2014 Mindy Pereira <mindyp@google.com> am a718943d: Merge "Make a smaller cliff for dismissing cards" into klp-modular-dev

* commit 'a718943d422876488f8723bfe6f35f352ffcb586':
Make a smaller cliff for dismissing cards
4013940b62ae2227c9b30d8761d7533ee6190a9f 21-May-2014 Yohei Yukawa <yukawa@google.com> Style fix and dead code removal

This CL does not change the existing behavior.
Smarter language switching will be coverted by subsequent CLs.

BUG: 7043015
Change-Id: I281a33191d44be448492c2b74760cb8680719124
nternal/inputmethod/InputMethodSubtypeSwitchingController.java
56e533a5f69e930608f6caf478d4fa5afc7c5eec 20-May-2014 Mindy Pereira <mindyp@google.com> Make a smaller cliff for dismissing cards

Fixes b/14997474 swipe to dismiss cliff guard may be too big

Change-Id: I3e681f1c6dc3eaac37a0e840b36f4c7041e86e62
nternal/widget/SwipeDismissLayout.java
1fcc3b18969815ab1a386823fa246f483465dd04 20-May-2014 John Reck <jreck@google.com> Merge "Baby steps"
918988c1ce5af002d41c7ac37f3fa490558b0c90 19-May-2014 John Reck <jreck@google.com> Baby steps

Run ViewPropertyAnimators with no listeners on the RenderThread

Change-Id: I7ff5300db96c7f4b59b09e3fff8a0df173f132dd
nternal/view/animation/FallbackLUTInterpolator.java
6cb485fd2e2f8ace05e1ff281ab0fc824d3652cb 19-May-2014 Winson Chung <winsonc@google.com> Fixing regression in dismissing Recents.

- Restoring app info functionality when developer options are enabled and you long-press on the app icon.

Change-Id: I8a20ff5f595eefa20db5528c0d5b1a1f0b110834
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
958e559b98bd7c3ab6dd20bf530bf58f56f20b63 19-May-2014 Winson Chung <winsonc@google.com> Merge "Initial changes to enable keyboard support with alternate Recents. (Bug 14067913)"
236bcc3ad146c0e5584dfdaef1e9fa1b59a6fe7e 18-May-2014 Adam Powell <adamp@google.com> Merge "Action bar refactoring, round 1"
a4864472313208e4f1de02f45d3eadad237c54af 10-Apr-2014 Yuhao Zheng <yuhaozheng@google.com> Hotspot 2.0 framework APIs -- initial implementation

Cherry-picked from klp-wireless-dev-mirror
SHA1: e73969fac45aaca72528226dc8c0c5e54fb2cdd4

Bug: 5485670
Change-Id: If3250a2fae181a3774d3158e341220006ad6ebe5
nternal/util/Protocol.java
4369e7d0b087d777e5012e2706acc5be9be47de7 17-May-2014 Adam Powell <adamp@google.com> Action bar refactoring, round 1

Decouple PhoneWindow and ActionBarView to allow for using Toolbar in
some circumstances later.

Change-Id: I907743e06c3a1203e21cfd84860a1884c66f3527
nternal/app/WindowDecorActionBar.java
nternal/widget/ActionBarOverlayLayout.java
nternal/widget/DecorContentParent.java
1e8d71b605b4872e93200706a80a88a3ff25498c 17-May-2014 Winson Chung <winsonc@google.com> Initial changes to enable keyboard support with alternate Recents. (Bug 14067913)

Change-Id: Icc5d2a784ed3c3c27143eb04cbb4305549ee223a
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
62cb534edb2cef23bdc71254294bd63fa03b38b3 16-May-2014 Alan Viverette <alanv@google.com> Merge "Update ripple behavior, use render thread animation"
ad2f8e334f3ef22d3e412b0660a2e1f996f94116 16-May-2014 Alan Viverette <alanv@google.com> Update ripple behavior, use render thread animation

Change-Id: Ib6bc1e08b05d29606f452961963d58b8fc866746
nternal/view/animation/FallbackLUTInterpolator.java
3fce73a866e58232b484ca26b58b1394b0121b6a 16-May-2014 Dianne Hackborn <hackbod@google.com> Merge "Fix recording of wake_lock_in."
9a7554300637902bbb25991ffba41a9b8f682eff 16-May-2014 Dianne Hackborn <hackbod@google.com> Fix recording of wake_lock_in.

There was a bug that would allow the nesting count
to get off. Also better documentation of times in
HistoryItem, and new option to disable resetting of
the stats when unplugging.

Change-Id: If1b39a02475c5b620c67b700a323a6d0462d5c61
nternal/os/BatteryStatsImpl.java
8974f2490992b2921b636c0b65ebeb5b19dda89b 16-May-2014 Jason Monk <jmonk@google.com> Merge "Notify AppOpsService of UserRestrictions and Owners"
62062996dd256df8b575b2ba1f0bf97109c4e0ba 06-May-2014 Jason Monk <jmonk@google.com> Notify AppOpsService of UserRestrictions and Owners

This makes the DevicePolicyManagerService and UserManagerService
push the DeviceOwner/ProfileOwners and user restrictions on boot
as well as on any change.

This also adds a list of restrictions that allow any op to connected with
a user restriction such that it will return MODE_IGNORED when the user
restriction is present (except for the device/profile owner).

Change-Id: Id8a9591d8f04fe5ecebd95750d9010afc0cd786c
nternal/app/IAppOpsService.aidl
76d8f968059d27ef8500cabf7690c18552c22d5a 15-May-2014 Adam Powell <adamp@google.com> Add content insets to Toolbar

Content insets allow a Toolbar to define horizontal gridlines for the
start/end or left/right edges of major content (not counting the
navigation button or menu). This allows apps to align their layout
content above or below a Toolbar with the title and other contents of
the bar by using app-defined measurements.

Change-Id: Ibd7e0810bf81070eb5f59a42ad3257f35bc0156a
nternal/app/WindowDecorActionBar.java
0a3103e755218c1ee48c7d078892eb6b42cc2081 15-May-2014 Dianne Hackborn <hackbod@google.com> Merge "Battery stats more wake history, power save mode."
1dfa9d98bee6326fe53240dbe7e1b05a75aba109 15-May-2014 Alan Viverette <alanv@google.com> Merge "Simplify attribute extraction for themed Drawables"
cbefd8dd2befcb768f911a63becc427ec4c13250 14-May-2014 Dianne Hackborn <hackbod@google.com> Battery stats more wake history, power save mode.

Add new option for battery stats to record the full wake
lock history, and recording the current power save mode.

Also add in some additional error constants when generating
Binder error exceptions.

And fix issue #14974572: Avoid repeating wakeup_reason at
the beginning of history

Change-Id: I7c1a2ab9569de216634f63d8ad69f1294ef1d235
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
27a964b54d10bbc2793bb06557f69fef47177ebd 15-May-2014 Narayan Kamath <narayan@google.com> am 35b884f8: am be3dc575: am 402120a2: Merge "Wait for secondary zygote before bringing up the system_server."

* commit '35b884f88e39c97056e71f329e73812a142103b5':
Wait for secondary zygote before bringing up the system_server.
35b884f88e39c97056e71f329e73812a142103b5 15-May-2014 Narayan Kamath <narayan@google.com> am be3dc575: am 402120a2: Merge "Wait for secondary zygote before bringing up the system_server."

* commit 'be3dc5754fd081f54a86df9894763c0da915eed3':
Wait for secondary zygote before bringing up the system_server.
be3dc5754fd081f54a86df9894763c0da915eed3 15-May-2014 Narayan Kamath <narayan@google.com> am 402120a2: Merge "Wait for secondary zygote before bringing up the system_server."

* commit '402120a2236b294dff9a51461cb22400a6ef67f6':
Wait for secondary zygote before bringing up the system_server.
3a44f3f1b446315ef894e01d2ab9b5388c2bd8c4 29-Apr-2014 Jeff Sharkey <jsharkey@android.com> Initial support for split APKs, PackageInstaller.

Defines a new PackageInstaller class that will be used for installing
and upgrading packages. An application desiring to install an
application creates a session, stages one or more package files in
that session, and then kicks off the install.

Previously, PackageManager would always make its own copy of a package
before inspecting it, to ensure the data could be trusted. This new
session concept allows the installer to write package data directly to
its final resting place on disk, reducing disk I/O and footprint
requirements. Writes are directed through an intermediate pipe
to ensure we can prevent mutations once an install has been initiated.
Also uses fallocate() internally to support optimal ext4 block
allocation using extents to reduce fragmentation.

Sessions are also the way we support installing multiple "split" APKs
in a single atomic operation. For a set of packages to form a valid
application, they must have exactly the same package name, version
code, and certificates. A session can also be used to add a small
handful of splits to an application by inheriting existing packages
when not performing a full install.

Add PackageParser support for extracting split names and certificates.

Bug: 14975160
Change-Id: I23d1bf4fbeb9f99a8c83be0c458900a0f0d1bccc
nternal/util/ArrayUtils.java
0cfb877f5a0a1bff82d9c3ee969195bf7812c0b5 15-May-2014 Alan Viverette <alanv@google.com> Simplify attribute extraction for themed Drawables

Also fixes a bug in GlowPadView that randomly popped up.

Change-Id: Id20508a44ea02b4a14c8f794de36e13a2c06587c
nternal/widget/multiwaveview/GlowPadView.java
162043076b201483eaeef5c7c3da0619f26f1b11 14-May-2014 Craig Stout <cstout@google.com> Merge "AlertDialog and AppError themes for TV."
9258c64bef1a01fe89bc7c1fa402c44c0e6a1255 27-Mar-2014 Robert Greenwalt <rgreenwalt@google.com> Add Multinetwork API

Change-Id: I3a9cef0d416db96d05098dd989ee3fef3b1e9274
(cherry picked from commit cc5e6afa1ba0bef099bcb21a64a36bc2bf7951db)
nternal/util/Protocol.java
ca8f16ad14819ba17f5ff3d2e2bf6fbc9bbaa9f7 09-May-2014 Paul Jensen <pauljensen@google.com> Add NetworkMonitor.
At present the network evaluation / captive portal detection
is disabled pending addition of API to bind socket to network.

Change-Id: I5d1f5dc86d4dd9481d52dd45d6da0732054c8315
nternal/util/Protocol.java
7b81602f3c18df8a4ca0342c514af8f7e394c0d7 19-Apr-2014 Robert Greenwalt <rgreenwalt@google.com> Enabling internal msg apis

NetworkFactory and NetworkAgent. First trying with wifi and
getting rid of WifiStateTracker.

Conflicts:
api/current.txt
services/core/java/com/android/server/ConnectivityService.java

Change-Id: I7f0ec13d7d8988b32f3c6dc71f72012f3349fe02
nternal/util/Protocol.java
e049c23980409be6576da3d30538a6cdc43854dd 12-Apr-2014 Robert Greenwalt <rgreenwalt@google.com> Add NetworkFactory support.

This is a protocol allowing transports to dynamically register with CS for
Handler to Handler communications.

bug:13885501
Change-Id: Ic7275e3724a15efc7e5f80981560c4cb3106007b
nternal/util/Protocol.java
4c0cb8a526eec87fdba6dc371e21abfa4e993ea0 04-Apr-2014 Craig Stout <cstout@google.com> AlertDialog and AppError themes for TV.

Leanback themes override AlertDialog styles from other themes.
Makes system alert dialogs, and alert dialogs from games running on ATV,
have a style more appropriate to television.

Final visuals pending.

Side button layout fixes DatePickerDialog and TimePickerDialog with
dpad navigation.

TODO: consider using side button layout for other AlertDialog cases
(long messages and lists).

Change-Id: I74e4e04d16d6854377580be95a87684a0385b04b
nternal/app/AlertController.java
202259785972be771075dce8d3e43c29b8d8f1f1 13-May-2014 Nicolas Prevot <nprevot@google.com> Merge "Resolving resources across users."
515396a6b5ee3eab57fed87ee0f4aa63783e2e61 13-May-2014 John Reck <jreck@google.com> Merge "More native interpolators"
64cd907af99ce9702e8975a657ee437c2626f8b5 13-May-2014 Narayan Kamath <narayan@google.com> Wait for secondary zygote before bringing up the system_server.

The zygote that's responsible for starting up the system server
now checks if there's another zygote on the system, and waits
for it to start up. Also, a few minor clean ups :

- Address a long standing TODO about zygote retries.
- Have functions throw IOException where appropriate and
wrap them in ZygoteStartFailedEx with a filled in cause.

bug: 14869939

Change-Id: I9e514659b79b3d2c98a4c5f93c0c376843f6c881
nternal/os/ZygoteInit.java
d85fc72fb810858f7502e7e7f1bad53e1bf03edd 16-Apr-2014 Nicolas Prevot <nprevot@google.com> Resolving resources across users.

When an intent is sent to another profile:
For content uris contained in this intent:
The userId of the source user is added to the userInfo part.
The ActivityManagerService has been modified to resolve resources in the user specified by the uri.
The user id to which the uri belongs to is stored in the UriPermission.

Change-Id: I43dc76895aba692bf148d276253aeaf9c75fce34
nternal/app/IntentForwarderActivity.java
nternal/util/XmlUtils.java
c8ac775659fd252ce2cc9a61837c170ff70f0a1a 13-May-2014 John Reck <jreck@google.com> More native interpolators

Gotta collect 'em all

Change-Id: I3ccc2b5c842b27b906c8a0470fbedc2bf285bc38
nternal/view/animation/NativeInterpolatorFactoryHelper.java
cae6873161fd0794a794ef487c40074ee7e815aa 13-May-2014 John Reck <jreck@google.com> Merge "Add TimeInterpolator support to RNA"
315c329544d7c593d1072b071cbb92d9afe74021 10-May-2014 John Reck <jreck@google.com> Add TimeInterpolator support to RNA

Bug: 14678626

Change-Id: I6554e7fcd42c49fac3618ca792083bb68e358f55
nternal/view/animation/FallbackLUTInterpolator.java
nternal/view/animation/HasNativeInterpolator.java
nternal/view/animation/NativeInterpolatorFactory.java
nternal/view/animation/NativeInterpolatorFactoryHelper.java
9bbc0ca0ab5e381be8a05ee457f2b93a3f0d63bc 12-May-2014 Chris Wren <cwren@android.com> Merge "notification ranking infrastructure"
b7fbb9b691f2c8dfe23a327943bd6b05f1a3503e 08-May-2014 Robert Greenwalt <rgreenwalt@google.com> Support multiple calls to AsyncChannel.disconnect

prior to this you'd get a crash if you called it twice.

Change-Id: Ie066b1e00970e17b2ebab5c51a57a9a3459aee26
nternal/util/AsyncChannel.java
c42bfb95c6b7166b7916057af9df6e20d8c4c8ef 10-May-2014 John Reck <jreck@google.com> Merge "Refactor VirtualLightRefBase & JNI"
a90f9e435fce8c448744b2e8ac2db125aa22162c 10-May-2014 Dianne Hackborn <hackbod@google.com> Merge "Battery stats tweaks."
9fa4071c4768c63902c6a74a4b480b51a8b95d43 10-May-2014 John Reck <jreck@google.com> Refactor VirtualLightRefBase & JNI

Change-Id: I8e244e7109e59d5be96871b23bb9b1201c7f9eaa
nternal/util/VirtualRefBasePtr.java
049803a00ed6b35072c3970c382d45b013798250 09-May-2014 Selim Gurun <sgurun@google.com> Merge "Cleanup remainings of old webview."
37de0989359be9c31b91d3608d2cfe63546c38ea 09-May-2014 Dianne Hackborn <hackbod@google.com> Battery stats tweaks.

- Generate currently active events when a partial
history is requested.
- Tag wake lock release with the wake lock name if it is
different than the one that was acquired.
- New RESET mark for the start of the history.

Change-Id: Ic105656649c46f52855946ed0ad7f98f1d24dedc
nternal/os/BatteryStatsImpl.java
4a3735d0810d641ef0fab3f3c0705a8a861f26a9 09-May-2014 Vinod Krishnan <vinodkrishnan@google.com> resolved conflicts for merge of 88aa8aab to master

Change-Id: I6d3a9885f8cf3b632267b5722e59d4968efe17f7
f953664dc17dca23bd724bd64f89189c16c83263 17-Apr-2014 Chris Wren <cwren@android.com> notification ranking infrastructure

Added an ordered list of notifications (n.b. a complete ordering).
Added a mechanism for ranking to be updated asynchronously
Added onNotificationRankingUpdate to NotificationListeners
Added an opaque order update object and a convenience comparator that
uses it to sort notifications for listeners

Repurpose scorers to be ranking preprocessors. The preprocessors will
perform heavy-weight validation of the notification object and memoize
the results to improve efficiency of the ranking comparator.

Current internal comparator implements status quo ordering, except
that notes with a valid contact sort to the top of their priority
bucket.

Change-Id: I7244c65944a9657df41fb313b3cb5a52e149709d
nternal/notification/DemoContactNotificationScorer.java
nternal/notification/NotificationScorer.java
nternal/notification/PeopleNotificationScorer.java
88aa8aab3d8830b936fdc7feee2fa05a561d0d80 09-May-2014 Vinod Krishnan <vinodkrishnan@google.com> am c4ebd014: Merge "Adding a margin for the AlertDialog to work on circular UI." into klp-modular-dev

* commit 'c4ebd014cec31a2d5a18c2339681ca71bd1f5d0e':
Adding a margin for the AlertDialog to work on circular UI.
119ba2c72dfb50d41177722da01d2750437fb165 05-May-2014 Vinod Krishnan <vinodkrishnan@google.com> Adding a margin for the AlertDialog to work on circular UI.

- also removing the background completely for sdk >= 20

Change-Id: I239c8d066bb7ed0d1ab852a4d162475948b8a0d5
nternal/app/AlertController.java
2ac997917924161ed2eed5f4387246beb58c456e 09-May-2014 Yohei Yukawa <yukawa@google.com> Merge "Introduce new API for floating window support"
c2ddd6023688db5ecf6c586e05f55e262b4a802e 06-May-2014 Yohei Yukawa <yukawa@google.com> Introduce new API for floating window support

This CL introduces a new API IMM#updateCursorAnchorInfo for
floating window support.

BUG: 14579622
Change-Id: I61dec2f8fa671ba891da1d4af08975750e3acb04
nternal/view/IInputMethodSession.aidl
2bfd9839aa04265e3c170b1743c08001a2d9313b 09-May-2014 Selim Gurun <sgurun@google.com> Cleanup remainings of old webview.

Cleanup some code that remained from old webview.

Change-Id: I7b654a40284ff88a0a42c7407ad0b2499000f77d
nternal/app/ProcessStats.java
e22b3b143240f0f18e3d6d3c06686ad3c23b131b 08-May-2014 Dianne Hackborn <hackbod@google.com> Usage stats!

Start reworking the usage stats service to be able
to have an API we can publish.

The basic information it keeps is still the same, though
that will be changing in the future. The one big addition
here is that we are also now collecting configuration usage
stats.

Also introduce the start of an access model for usage stats,
using app ops. There is an new app op that gives an application
access to usage stats even if it normally wouldn't have it,
disabled by default.

Change-Id: I6ead28e18a7f08eafd057d6ff37dd9cb216358f4
nternal/app/IUsageStats.aidl
nternal/os/PkgUsageStats.aidl
nternal/os/PkgUsageStats.java
7486ae202f02d3d58063d39e6163e0bc9609db11 08-May-2014 Craig Mautner <cmautner@google.com> Merge "Make ChooserActivity intents doccentric and transitory"
411d2aed2bb51ea0ba258fc45c8f8029c409e881 08-May-2014 Craig Mautner <cmautner@google.com> Make ChooserActivity intents doccentric and transitory

Activities launched from the chooser activity will now appear in
their own tasks which will be automatically removed from recents
when they are finished.

Also qualified application of new flags with null check and
Action check. Must be either ACTION_SEND or ACTION_SEND_MULTIPLE.

Fixes bug 14463859.
Fixes bug 14633773.

Change-Id: I8832462163958f6a43bc4c6a020f78948ce70ac3
nternal/app/ChooserActivity.java
a3ef079aaf618e2eca72b54ba11ad04526d469ec 08-May-2014 Mindy Pereira <mindyp@google.com> am 101e3793: am 07763e30: Merge "Make distance count when dismissing swipedismisslayout" into klp-modular-dev

* commit '101e379318a3869f64ea897a3f95a89243408c94':
Make distance count when dismissing swipedismisslayout
b325c80d3da0c14107597a4c5423dba938e1a633 08-May-2014 Dan Sandler <dsandler@android.com> Merge "Quantum notification improvements."
b788d4eb019194ddcc63228ecee7b90e773af9e8 08-May-2014 Vinit Deshapnde <vinitd@google.com> Merge "Initial implementation of WifiScanner"
26e81cf14bf32585742cbb75ac14045acaab2692 06-May-2014 Dan Sandler <dsandler@android.com> Quantum notification improvements.

New API introduced here: Notification.color (and
Builder.setColor()), allowing apps to specify an accent
color to be used by the template. The Quantum templates
(which are now the only kind we support) use this when
creating a circular background to draw behind the smallIcon
in the expanded form.

Additionally, the quantum and legacy templates are no longer
in superposition; all apps using Builder will get quantum.

Change-Id: Iac5e2645cc5c2346ed458763f2280ae9c6368b62
nternal/util/LegacyNotificationUtil.java
nternal/util/NotificationColorUtil.java
c89deae0a7bed0b54e3152df3a52bca6f8dd0cd4 06-May-2014 Dan Sandler <dsandler@android.com> L: WIP.

Change-Id: I9e2656c9df95a2e0ed236291419bbc4635ec97d7
nternal/app/PlatLogoActivity.java
011e1b35a64180d6f0234af8a3c2b70777eb9f39 08-May-2014 Vinit Deshapnde <vinitd@google.com> Initial implementation of WifiScanner

This change implements basic functionality of WifiScanner. Following
functionality is enabled

1. Scanning - specify a list of channels to scan
2. Significant change detection
3. AP hotlist

Change-Id: Ieef75b96bdbbd3c7d9b9e698bd16e64d3b465254
nternal/util/Protocol.java
101e379318a3869f64ea897a3f95a89243408c94 08-May-2014 Mindy Pereira <mindyp@google.com> am 07763e30: Merge "Make distance count when dismissing swipedismisslayout" into klp-modular-dev

* commit '07763e305404bce16df500e1a65493d2f2b7d0c9':
Make distance count when dismissing swipedismisslayout
072c6033fd48900f9f522aad1c984055e38d8380 07-May-2014 Mindy Pereira <mindyp@google.com> Make distance count when dismissing swipedismisslayout

verify the user's gesture took up at least 40% of the screen
before dismissing
Part of b/14319825 Cliff guard against accidental card dismissals

Works in conjunction with GridViewPager change:
https://googleplex-android-review.git.corp.google.com/#/c/461036/
Change-Id: Id8ff02d0a2d727b54c9950ad14ddef7a110f4eef
nternal/widget/SwipeDismissLayout.java
10a38c06df42f0231a71a78ec341609648035b9d 07-May-2014 Jason Monk <jmonk@google.com> Merge "Only show IME in navigation bar when it should"
b605fecd9e4282823af754b3968b21205d64554a 02-May-2014 Jason Monk <jmonk@google.com> Only show IME in navigation bar when it should

Add a flag to indicate that the IME should be shown. This follows
the continuous ime notification boolean, and if there are multiple
input methods to choose from enabled. This way the notification
and navigation button show up under the same circumstances (but
not on the same devices).

Change-Id: Ia6a2253061f1876f4bcc511de48c1078e9d96be5
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
a93369a819c9d4cfd4fe7ce3dd519f1c974bce4d 06-May-2014 Jeff Brown <jeffbrown@google.com> am 84aaf124: Merge "Plumb display state and interactive information to BatteryStats. (DO NOT MERGE)" into klp-modular-dev

* commit '84aaf124b762b9eeb0957aaea9df8424a429b148':
Plumb display state and interactive information to BatteryStats. (DO NOT MERGE)
996e269d93d09615e242edcbd7a6218e065aeb7b 06-May-2014 Jeff Brown <jeffbrown@google.com> Merge "Plumb display state and interactive information to BatteryStats."
e95c3cd89591ba586aa8a0f7a17660c6fb8770bc 03-May-2014 Jeff Brown <jeffbrown@google.com> Plumb display state and interactive information to BatteryStats.

Fixes an issue where dozing was treated the same as the screen
being fully on. Now dozing is treated the same as the screen
being fully off which is slightly better. The decision of how
to represent this state is now internal to the battery stats
so it can be improved later.

Removed noteInputEvent() since it is unused.

Bug: 14480844
Change-Id: Iee8cf8dce1a1f91c62678bb6d3d9fe567ad6db42
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
01ee6f6cf7de9fb98fc3a88509b43416caa71040 03-May-2014 Jeff Brown <jeffbrown@google.com> Plumb display state and interactive information to BatteryStats. (DO NOT MERGE)

Fixes an issue where dozing was treated the same as the screen
being fully on. Now dozing is treated the same as the screen
being fully off which is slightly better. The decision of how
to represent this state is now internal to the battery stats
so it can be improved later.

Removed noteInputEvent() since it is unused.

Bug: 14480844
Change-Id: Iee8cf8dce1a1f91c62678bb6d3d9fe567ad6db42
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
5095ed699db20f738983e017d9725c87452bfb19 06-May-2014 Yohei Yukawa <yukawa@google.com> Merge "Take supportsSwitchingToNextInputMethod into considertaion"
560f17098f90b15c8894cce127f2fed85f7aeb6b 05-May-2014 Alan Viverette <alanv@google.com> Add support for popups overlapping anchors

BUG: 14471731
Change-Id: I16e8d76caedfebd0c38b8c0b22cd9619d70877c8
nternal/view/menu/MenuPopupHelper.java
983ce97a5dd82688966e783a2c26f34550cfafa5 05-May-2014 Christoph Studer <chstuder@google.com> Merge changes Iffd15e95,Id2db95ec

* changes:
Log notification clicks
Add userId to StatusBarNotification key
c03c9167c2d9a1e22fb2b176b00a0524177fb037 02-May-2014 Dianne Hackborn <hackbod@google.com> Further work on voice interaction services.

This makes VoiceInteractionSession a more first-class
concept. Now the flow is that a VoiceInteractionService
calls startSession() when it wants to begin a session.
This will result in a new VoiceInteractionSession via the
VoiceInteractionSessionService containing it, and the
session at that point an decide what to do. It can now
show UI, and it is what has access to the startVoiceActivity
API.

Change-Id: Ie2b85b3020ef1206d3f44b335b128d064e8f9935
nternal/app/IVoiceInteractionManagerService.aidl
b3a78b2ca9655396e2d73950221d187b7e5bb3ba 17-Apr-2014 Igor Murashkin <iam@google.com> camera2: Add re-usable data types for camera metadata key/values

Adds new types to public API:
* ColorSpaceTransform
* Range<T>
* SizeF (android.util)
* MeteringRectangle

Minor changes to:
* Size (docs and move to android.util)
* Preconditions (@hide)

Adds helper class:
* HashCodeHelpers

Change-Id: Ied6749a19234f3af9da838f365f8d68d90251aaf
nternal/util/Preconditions.java
9529d8f26fc635ed8742ed212a967f069c8e47c7 02-May-2014 Adam Powell <adamp@google.com> Merge "Fix a bug in querying showing state for action bars"
c4b416f18d83100a386ab81e934e572cd471c4b3 02-May-2014 Adam Powell <adamp@google.com> Fix a bug in querying showing state for action bars

Bug 14492418

Change-Id: I8d24fd90a8d4004ace186f5ce84ba68fc8419307
nternal/widget/ActionBarOverlayLayout.java
698a7ab344fc9ad88ea06599c957100df30abac2 02-May-2014 Mark Renouf <mrenouf@google.com> am 63f72806: am 11b14691: Implement cliff guard for swipeDismiss gesture

* commit '63f728065a7584e3a51bb7b0b58ce8cf0c25390e':
Implement cliff guard for swipeDismiss gesture
63f728065a7584e3a51bb7b0b58ce8cf0c25390e 02-May-2014 Mark Renouf <mrenouf@google.com> am 11b14691: Implement cliff guard for swipeDismiss gesture

* commit '11b1469144d73ad0280ef9d0c2e478d180f17074':
Implement cliff guard for swipeDismiss gesture
11b1469144d73ad0280ef9d0c2e478d180f17074 01-May-2014 Mark Renouf <mrenouf@google.com> Implement cliff guard for swipeDismiss gesture

BUG: 14319825

Change-Id: I6a80c91b4a6ee2eaf49a8c0c69065d4b97d7f8f2
nternal/widget/SwipeDismissLayout.java
b36e4f944fe28ce68182f9ec91e5341866b49084 01-May-2014 Adam Powell <adamp@google.com> Add support for hiding action bars on scroll.

Also tweak the nested scrolling API around nested flings and fix a bug
where recursive nested scrolling would stop prematurely.

Change-Id: I561226db878b2493970440a6af3e2332c56a1913
nternal/app/WindowDecorActionBar.java
nternal/widget/ActionBarOverlayLayout.java
a1223cfe6f2e04da1ab6e0ad781068687446ee56 01-May-2014 Yohei Yukawa <yukawa@google.com> Take supportsSwitchingToNextInputMethod into considertaion

With this CL, InputMethodManager#switchToNextInputMethod starts
behaving as if there are two rotation groups: one is for the new
input methods that are declared with
supportsSwitchingToNextInputMethod set to true to indicate they
have some language switching UI, and the other is for the other
input methods to preserve the existing behavior.

In addition to the above change, this CL also fixes the behavior
of InputMethodManager#shouldOfferSwitchingToNextInputMethod()
so as to return true if and only if the former rotation group
consists of two or more input methods, as originally designed.

BUG: 12981505
Change-Id: I84291fd4a7d6192b3bd0c366c49586e79135584f
nternal/inputmethod/InputMethodSubtypeSwitchingController.java
8596f6998eddb0caa35532eb386ac6d00f81551d 01-May-2014 Yohei Yukawa <yukawa@google.com> Merge "Add unit tests for InputMethodSubtypeSwitchingController"
d1da11529813f6d3f51518b5fe028e0b8084f5cc 01-May-2014 Yohei Yukawa <yukawa@google.com> Add unit tests for InputMethodSubtypeSwitchingController

This CL adds unit tests for InputMethodSubtypeSwitchingController
as a ground work to make it aware of
supportsSwitchingToNextInputMethod in a subsequent CL.

This CL never changes existing behavior.

BUG: 12981505
Change-Id: I3b2c46c47c7686b811fa248ad549f20875367425
nternal/inputmethod/InputMethodSubtypeSwitchingController.java
10fa67c77e11699391e27975fc2d276a0b8c7cbb 24-Mar-2014 Nicolas Prevot <nprevot@google.com> Introduce forwarding intents across profiles.

The package manager service maintains, for some user ids, a list of forwarding intent filters.
A forwarding intent filter is an intent filter with a destination (a user id).
If an intent matches the forwarding intent filter, then activities in the destination can also respond to the intent.

When the package manager service is asked for components that resolve an intent:
If the intent matches the forwarding intent filter, and at least one activity in the destination user can respond to the intent:
The package manager service also returns the IntentForwarderActivity.
This activity will forward the intent to the destination.

Change-Id: Id8957de3e4a4fdbc1e0dea073eadb45e04ef985a
nternal/app/IntentForwarderActivity.java
03b87a2f40c26948b7b0c9409c33ad44857218cf 30-Apr-2014 Christoph Studer <chstuder@google.com> Log notification clicks

Emit notification_clicked log events when a notification
is clicked from SystemUI.

Also refactor the onNotificationClicked method to work with
a key instead of individual notification params.

Change-Id: Iffd15e95d46371b2ae7bfd00b2c348d9f4cf5d14
nternal/statusbar/IStatusBarService.aidl
d21082ca0c116ba737e6e93c2917d0b557cc48fc 30-Apr-2014 Bill Yi <byi@google.com> am 9a76e9ba: Fix build error

* commit '9a76e9ba1adbdf7cc431b1e6fe454cf0c5d900de':
Fix build error
9a76e9ba1adbdf7cc431b1e6fe454cf0c5d900de 30-Apr-2014 Bill Yi <byi@google.com> Fix build error

Change-Id: I6f52954a780b747f1ad2a4e429ef192d58c40e76
nternal/os/ZygoteInit.java
293513a59d36cd96a3e474dde5981380d372d8c9 30-Apr-2014 Bill Yi <byi@google.com> Merge commit '0b62467b142b61ee1e449ba958ba37dfd961ef56' into HEAD
ab5c0ea43cf457b20ab4267a14b224f39e0511bf 29-Apr-2014 Dianne Hackborn <hackbod@google.com> Add IBatteryStats API to retrieve current charge times.

Also include charge/discharge information in dumpsys.

Change-Id: Ica1b333ad334dc698d4a67da391b378757662f41
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
1de6b101e5a6e5c539cca5d9d044f1a28094fae4 29-Apr-2014 Dianne Hackborn <hackbod@google.com> Merge "Implement better computing of battery drain time, actual charge time."
260c5020ae65ddd14668b8ae496c169082aa13f6 29-Apr-2014 Dianne Hackborn <hackbod@google.com> Implement better computing of battery drain time, actual charge time.

Also move time formatter in to framework for use elsewhere.

Change-Id: I42b6a44414b68754af65c522bef5591da5643909
nternal/os/BatteryStatsImpl.java
45641ecd2c4be60390319614f519d2313dbd547d 29-Apr-2014 Elliott Hughes <enh@google.com> am 7af8f5ba: am 10d57c4b: Merge "Fix two zygote imports."

* commit '7af8f5ba9cc7801fabe70bcf13e602aaa73dc428':
Fix two zygote imports.
a9569ff70f51a93e134e4d45558884d196b869c3 29-Apr-2014 Elliott Hughes <enh@google.com> Fix two zygote imports.

Change-Id: I5eea2d9f48479c33e1594aaa259274e5e787a1df
nternal/os/ZygoteInit.java
c1858228df18528aabe1ff223335f613be2b99d8 29-Apr-2014 Elliott Hughes <enh@google.com> Fix a few more stray libcore.io references.

Change-Id: Id328544bd3a382fec16507d0ae5b699fef44ebd7
nternal/os/ZygoteInit.java
33ee1e779d20fba8f8379296641c12cd6982506e 29-Apr-2014 Elliott Hughes <enh@google.com> Fix build.

Change-Id: I9e1a5280d3356e8814e505915bbc74200bc58b40
nternal/os/ZygoteInit.java
20cfa1b36cbb6a6ed40a51799683c7b5d02415f6 29-Apr-2014 Elliott Hughes <enh@google.com> am 3e792ef7: am fff28619: am f4a7ac00: Merge "Move the Zygote off libcore.os and onto android.system."

* commit '3e792ef78fbad1df75e97da9a32a5826371b2da9':
Move the Zygote off libcore.os and onto android.system.
3e792ef78fbad1df75e97da9a32a5826371b2da9 29-Apr-2014 Elliott Hughes <enh@google.com> am fff28619: am f4a7ac00: Merge "Move the Zygote off libcore.os and onto android.system."

* commit 'fff28619d8f3b2fa7577c3e101d3fcd45f26f3a4':
Move the Zygote off libcore.os and onto android.system.
860c5911a2437ab2543614e138c98553d0d4ebf7 29-Apr-2014 Elliott Hughes <enh@google.com> Move the Zygote off libcore.os and onto android.system.

Change-Id: Iaa20e50b05fad355bdf15bcfdc58efc9941c400c
nternal/os/Zygote.java
nternal/os/ZygoteConnection.java
nternal/os/ZygoteInit.java
b6093740db9992357b239bc4596616971ac92fca 29-Apr-2014 Alan Viverette <alanv@google.com> Merge "Fix alert dialog icon"
f97c63350abcc6715ba9fdc21fd3405d0f7ba716 29-Apr-2014 Elliott Hughes <enh@google.com> Move internal libcore.os users over to android.system.

Change-Id: I84e1ace19ba3b4e58d7bb24f3ecda1bdf5dc75a5
nternal/backup/LocalTransport.java
a1a680480e3d5534c2cd4f8b706ad10725993c2a 28-Apr-2014 Alan Viverette <alanv@google.com> Fix alert dialog icon

Previously, failing to call setIcon() would result in a blank icon
rather than hiding the icon. Also, calling setIcon(icon) followed by
setIcon(null) could be a no-op depending on whether the alert had
already been constructed.

Change-Id: I65a96a4e89b9eac1123cbbf5d57e7e366e7b4d4e
nternal/app/AlertController.java
18f0d357f9693fe787a3e3777d8fdf01357a6e3f 26-Apr-2014 Dianne Hackborn <hackbod@google.com> Rework some of the voice interaction APIs.

On the app side, requests are now composed by subclassing
from various types of Request objects.

On the service side, starting a voice interaction session
involves starting another service that will then manage the
session. This leads the service design much more to what
we want, where the long-running main service is very tiny
and all the heavy-weight transient session work is elsewhere
in another process.

Change-Id: I46c074c6fe27b6c1cf2583c6d216aed1de2f1143
nternal/app/IVoiceInteractionManagerService.aidl
nternal/app/IVoiceInteractorCallback.aidl
91097de49b0f683b00e26a75dbc0ac6082344137 05-Apr-2014 Dianne Hackborn <hackbod@google.com> Initial implementation of new voice interaction API.

This gives a basic working implementation of a persist
running service that can start a voice interaction when
it wants, with the target activity(s) able to go through
the protocol to interact with it. It may even work when
the screen is off by putting the activity manager in the
correct state to act like the screen is on.

Includes a sample app that is a voice interation service
and also has an activity it can launch.

Now that I have this initial implementation, I think I
want to rework some aspects of the API.

Change-Id: I7646d0af8fb4ac768c63a18fe3de43f8091f60e9
nternal/app/IVoiceInteractionManagerService.aidl
nternal/app/IVoiceInteractor.aidl
nternal/app/IVoiceInteractorCallback.aidl
nternal/app/IVoiceInteractorRequest.aidl
nternal/os/HandlerCaller.java
nternal/os/SomeArgs.java
erver/SystemService.java
erver/SystemServiceManager.java
2ffa11e4b71c545e34533ef827bdc1a07fbe8246 22-Apr-2014 Dianne Hackborn <hackbod@google.com> Start collecting mobile radio activity from the radio.

Hook in to the new radio API to find out when the radio
is active and use that to track its state in batter stats.
We also still have the data being tracked from the kernel's
emulation, and continue to use that if we don't get data from
the radio.

Currently this monitoring is turned off until some issues
in the radio can be fixed that are providing bad data.

Also add a new API to get estimated drain and charge times.

Change-Id: Ifc4900fabb8f848f9cda361dce698664ea75f175
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsHelper.java
nternal/os/BatteryStatsImpl.java
49cbafad9beb6041aaee773f75473fdb5022888e 20-Dec-2013 Daniel Leung <daniel.leung@intel.com> Zygote: enable CAP_BLOCK_SUSPEND capability for system server

Starting from kernel 3.6, it requires processes to have the capability
CAP_BLOCK_SUSPEND to set/unset wake locks. Adds CAP_BLOCK_SUSPEND
to the list of capabilities for system server, so that PowerManager
can set wake locks.

Change-Id: I3246e6f6e6cb8f0bedb1c0417ed07085ee1f3aaa
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
nternal/os/ZygoteInit.java
5dee1a093abc4d6fd197ba2c3be012c9536ba1c5 24-Apr-2014 Deepanshu Gupta <deepanshu@google.com> am e17ed922: am 126f4057: am 5ba2f230: Add view cookies for action bar menus. [DO NOT MERGE]

* commit 'e17ed922001cf70c48969eb7b10ee2e2557b41f9':
Add view cookies for action bar menus. [DO NOT MERGE]
e17ed922001cf70c48969eb7b10ee2e2557b41f9 24-Apr-2014 Deepanshu Gupta <deepanshu@google.com> am 126f4057: am 5ba2f230: Add view cookies for action bar menus. [DO NOT MERGE]

* commit '126f4057a06756fbb1c194b5d9d40f9f922d14ee':
Add view cookies for action bar menus. [DO NOT MERGE]
5ba2f230faa355eb9bc1e90f6c48eeeb437f390c 18-Apr-2014 Deepanshu Gupta <deepanshu@google.com> Add view cookies for action bar menus. [DO NOT MERGE]

The change adds the view cookies for the menus rendered in the action
bar. This enables the IDE to map the menu to the relevant XML Tag in the
menu xml and show the highlighting accordingly.

The change also contains a bugfix where a method wasn't renamed
properly.

Change-Id: Idcfc263a8ebe0a4f25afa3a1eb085fa628fd03ca
(cherry-picked from commit 1001961f904bac5294aaf73a47c2497aa764bf7f)
nternal/view/menu/MenuBuilder.java
1001961f904bac5294aaf73a47c2497aa764bf7f 18-Apr-2014 Deepanshu Gupta <deepanshu@google.com> Add view cookies for action bar menus.

The change adds the view cookies for the menus rendered in the action
bar. This enables the IDE to map the menu to the relevant XML Tag in the
menu xml and show the highlighting accordingly.

Change-Id: Idcfc263a8ebe0a4f25afa3a1eb085fa628fd03ca
nternal/view/menu/MenuBuilder.java
99009ea7dcc196cd97756d70ed69499025229bd9 19-Apr-2014 Dianne Hackborn <hackbod@google.com> Try to always print time stamp in battery history.

Also fix printing of string pool to quote the strings
and escape characters, and change history time stamps
to print starting at 0 and going up.

Change-Id: I2d0c080f2b5de7b27b20a7357c2c0cf481c82d8c
nternal/os/BatteryStatsImpl.java
c726f6b537c5913600bc35ff866f1fb32800b9be 18-Apr-2014 Mark Salyzyn <salyzyn@google.com> am b90e504e: am 649da9b5: am 5a47a9f6: Merge "Native Runtime: Add LOG_ID_CRASH"

* commit 'b90e504ec17a7f509521c21f2b937a2ebefaf6ab':
Native Runtime: Add LOG_ID_CRASH
b90e504ec17a7f509521c21f2b937a2ebefaf6ab 18-Apr-2014 Mark Salyzyn <salyzyn@google.com> am 649da9b5: am 5a47a9f6: Merge "Native Runtime: Add LOG_ID_CRASH"

* commit '649da9b505498ff87d75da56d376d46c22e50782':
Native Runtime: Add LOG_ID_CRASH
31a217290cf376d0573fc36e21c8940987485019 25-Mar-2014 George Mount <mount@google.com> Split Activity Transitions out of PhoneWindow.

Bug 13622834
Made it possible to use shared elements without making
Views invisible.

Change-Id: I1e85c6bc19e634a9af225ad7f0309b4f003ea462
nternal/app/ToolbarActionBar.java
nternal/app/WindowDecorActionBar.java
f2d085e867dd59aa2aaff74f6e5b265b1bffbaba 16-Apr-2014 Deepanshu Gupta <deepanshu@google.com> am d023360a: am 484c88c3: am 4ccc4bd5: Action bar rendering in layoutlib [DO NOT MERGE]

* commit 'd023360aa03db1a7831a5697d49faa2575e4a9c3':
Action bar rendering in layoutlib [DO NOT MERGE]
d023360aa03db1a7831a5697d49faa2575e4a9c3 16-Apr-2014 Deepanshu Gupta <deepanshu@google.com> am 484c88c3: am 4ccc4bd5: Action bar rendering in layoutlib [DO NOT MERGE]

* commit '484c88c3655991759dc64276404d0cf7e33b455f':
Action bar rendering in layoutlib [DO NOT MERGE]
92b389da2a60ac51e804031494fea177fc1c47be 01-Apr-2014 Christoph Studer <chstuder@google.com> Write eventlog entries for notification visibility

Keep track of notifications shown in the notification panel
and log them via eventlog.

Added the following eventlog tag:
* notification_visibility_changed

Bug: 13442201
Change-Id: Ifb74ec2492967dc787b4de86db7d7f00be6c7f74
nternal/statusbar/IStatusBarService.aidl
4ccc4bd54f85d86818f61d728c6361d2003ddd8e 12-Dec-2013 Deepanshu Gupta <deepanshu@google.com> Action bar rendering in layoutlib [DO NOT MERGE]

This also makes a couple of changes to the framework:
1. ShareActionProvider - Use edit mode to execute activity chooser code.
2. ActionBarImpl - add a new constructor for use by layoutlib.

This also relies on some changes to the plugin to pass the correct params.

Change-Id: Ia30fef816afd91ec1e439734d56b59b1323bfee2
(cherry-picked from 14bf0cef7eeed572a67c29a328581afac4decc20)
nternal/app/ActionBarImpl.java
4c4fc3e172f7ba1a3d3c04145472d2b6607e0608 16-Apr-2014 Jim Miller <jaggies@google.com> Merge "Default to PASSWORD_QUALITY_UNSPECIFIED"
69eb6f57e34fb78050adcedcda8479cf2ad0c418 09-Apr-2014 Mark Salyzyn <salyzyn@google.com> Native Runtime: Add LOG_ID_CRASH

Change-Id: I4e3a82636901c5169cc6b714a4fec815cd757c58
nternal/os/RuntimeInit.java
e1070928795210a1894a454ff88e9d529ca381a7 15-Apr-2014 Adam Powell <adamp@google.com> am 50d7bfd8: DO NOT MERGE Refactoring of fitSystemWindows to applyWindowInsets for views

* commit '50d7bfd8224f9da170dac668888bcf0831373051':
DO NOT MERGE Refactoring of fitSystemWindows to applyWindowInsets for views
50d7bfd8224f9da170dac668888bcf0831373051 03-Feb-2014 Adam Powell <adamp@google.com> DO NOT MERGE Refactoring of fitSystemWindows to applyWindowInsets for views

Applying insets is now handled by:

* WindowInsets class - Encapsulate system insets and local decor
insets into a single object, written specifically so that new inset
categories may be added later. Apps cannot construct their own
WindowInsets, only clone with optional modifications. This is to
prevent losing data in the event of new insets added in the future.

* onApplyWindowInsets - Actually perform the application of insets.

* OnApplyWindowInsetsListener - Allow an app to use a separate
Listener object to apply insets to a View. This allows for things
like support lib integration in custom views written for older
versions where the verifier would otherwise complain about the use
of the new WindowInsets class as a method parameter. It also allows
for applying insets in a custom way without writing a custom view.

* dispatchApplyWindowInsets - Dispatch the call to self and children
in turn, if applicable. An OnApplyWindowInsetsListener will override
the behavior of the view's default onApplyWindowInsets method; a
listener wishing to call down to the 'superclass' implementation as
part of its own operation should call view.onApplyWindowInsets. App
code should generally not override this method and instead override
onApplyWindowInsets or provide a listener.

Compatibility support with the existing fitSystemWindows method has
been provided in both directions: for code that previously called
fitSystemWindows on arbitrary views and also for code that overrode
the fitSystemWindows method in custom views. A view that supports the
newer onApplyWindowInsets mechanism should not mix that behavior with
other calls to fitSystemWindows or vice versa. Support lib-style code
should take care to consistently use one mechanism or the other at
runtime.

Change-Id: Ie88b96e0382beb5d3c3f6cd013f7043acbc0a105
nternal/widget/ActionBarOverlayLayout.java
431207343f25647640fb04bd91a09528faeec0e8 15-Apr-2014 Jim Miller <jaggies@google.com> Default to PASSWORD_QUALITY_UNSPECIFIED

This changes methods in LockPatternUtils to default to PASSWORD_QUALITY_UNSPECIFIED
instead of PASSWORD_QUALITY_SOMETHING. This was confusing device encryption tools on a
freshly installed device that has never had a PIN, pattern or password set up.

Change-Id: If9b62a71220ed7520b6730201e55e34e89c0357d
nternal/widget/LockPatternUtils.java
8d95b5009ce5592f55a9487536fa640724dc316b 15-Apr-2014 Deepanshu Gupta <deepanshu@google.com> Merge "Action bar rendering in layoutlib"
352e108259bcb3305f034cfb042287d43a5e8f80 14-Apr-2014 Dan Sandler <dsandler@android.com> Merge "Merge remote-tracking branch 'goog/master-lockscreen-dev'"
15b0bef9250e084bfbceb388716d28ed62ca018f 12-Apr-2014 Jeff Brown <jeffbrown@google.com> am 9e2fde9c: am d912e1f6: Use the display\'s actual state in the view hierarchy.

* commit '9e2fde9c8a3557d6e8d1f3971a421ecdf5c2ce07':
Use the display's actual state in the view hierarchy.
9e2fde9c8a3557d6e8d1f3971a421ecdf5c2ce07 12-Apr-2014 Jeff Brown <jeffbrown@google.com> am d912e1f6: Use the display\'s actual state in the view hierarchy.

* commit 'd912e1f6a111fb33118d116bd72da1a328041bca':
Use the display's actual state in the view hierarchy.
d912e1f6a111fb33118d116bd72da1a328041bca 12-Apr-2014 Jeff Brown <jeffbrown@google.com> Use the display's actual state in the view hierarchy.

Previously, the view hierarchy would suppress drawing whenever the
PowerManager.isScreenOn() method returned false. However, this method
really describes the interactive state of the device rather than the
actual display state. This is especially a problem when there are
multiple displays but it also breaks drawing while in doze mode.

This change makes the view hierarchy consider the actual state of the
display instead on an individual basis.

Bug: 13133142
Change-Id: I69870b6b14a3504607a30562aa48c3452f777c1f
nternal/view/BaseIWindow.java
d274c4643290261067ac1a9fee55e040aacfac3e 11-Apr-2014 Jorim Jaggi <jjaggi@google.com> Fix ugly black background when expanding/collapsing notifications.

Bug: 13635952
Change-Id: I7a0f434172db4583f904e6817d94ca12d3b117bc
nternal/widget/SizeAdaptiveLayout.java
93a03d9b2462db544fc8b585d3a7125c4d5d912e 10-Apr-2014 Chris Wren <cwren@android.com> am 2bb8dde4: Merge "support the people extra on the notification object"

* commit '2bb8dde44be10212ec453d435aaad27177714f5e':
support the people extra on the notification object
dde753079fd9a5a36937f28d50326fd166fd01fa 26-Mar-2014 Chris Wren <cwren@android.com> support the people extra on the notification object

currently supported URIs:
content://com.android.contacts/contacts/lookup/*
tel:*

Change-Id: I833eee3f2ee40aa8cb2cfad135bdd6cb2c0eb792
nternal/notification/PeopleNotificationScorer.java
14bf0cef7eeed572a67c29a328581afac4decc20 12-Dec-2013 Deepanshu Gupta <deepanshu@google.com> Action bar rendering in layoutlib

This also makes a couple of changes to the framework:
1. ShareActionProvider - Use edit mode to execute activity chooser code.
2. WindowDecorActionBar - add a new constructor for use by layoutlib.

This also relies on some changes to the plugin to pass the correct params.

Change-Id: Ia30fef816afd91ec1e439734d56b59b1323bfee2
nternal/app/WindowDecorActionBar.java
954a4666abc4758fd17af09f20e9795683fc6598 10-Apr-2014 Narayan Kamath <narayan@google.com> am d11f223c: resolved conflicts for merge of 286a247e to master

* commit 'd11f223c535ed9ce628fe5aaf0fd5692dd0cf9e4':
Re-implement native library search and copies.
d11f223c535ed9ce628fe5aaf0fd5692dd0cf9e4 10-Apr-2014 Narayan Kamath <narayan@google.com> resolved conflicts for merge of 286a247e to master

Change-Id: I63df9d482da3ce2ac851959223b9180020ffad0c
286a247e4c8fcecb59636f668678d24e33142744 10-Apr-2014 Narayan Kamath <narayan@google.com> am 0fd40cb1: am 80413c9f: Merge "Re-implement native library search and copies."

* commit '0fd40cb100bccbd5d9ad6109ca39c818a857f889':
Re-implement native library search and copies.
1378aba7aeeb7f6dd6cc2503968ba7b0e58d9333 28-Feb-2014 Ramin Zaghi <ramin.zaghi@arm.com> Re-implement native library search and copies.

We now use a two step approach :

- First we look through the list of shared libraries in an
APK, and choose an ABI based on the (priority) list of ABIs
a given device supports.
- Then we look through the list of shared libraries and copy
all shared libraries that match the ABI we've selected.

This fixes a long-standing bug where we would sometimes copy
a mixture of different ABIs to the device, and also allows us
to clearly pick an ABI to run an app with.

The code in NativeLibraryHelper has been refactored so that all
file name validation & matching logic is done in a single place
(NativeLibrariesIterator). This allows us to avoid a lot of
redundant logic and straightens out a few corner cases (for eg.
where the abi determination & copying logic do not agree on
what files to skip).

bug: https://code.google.com/p/android/issues/detail?id=65053
bug: 13647418

Change-Id: I34d08353f24115b0f6b800a7eda3ac427fa25fef
Co-Authored-By: Zhenghua Wang <zhenghua.wang0923@gmail.com>
Co-Authored-By: Ramin Zaghi <ramin.zaghi@arm.com>
Co-Authored-By: Narayan Kamath <narayan@google.com>
nternal/content/NativeLibraryHelper.java
19500831a68ace041b58eb613643d8a671637518 09-Apr-2014 Narayan Kamath <narayan@google.com> am 7be06900: am 9f777008: am 05f980d4: am d4b64409: Merge "Make zygotes aware of their supported ABIs."

* commit '7be06900a824babd17c5f4e018c08aeca9ba57e3':
Make zygotes aware of their supported ABIs.
7be06900a824babd17c5f4e018c08aeca9ba57e3 09-Apr-2014 Narayan Kamath <narayan@google.com> am 9f777008: am 05f980d4: am d4b64409: Merge "Make zygotes aware of their supported ABIs."

* commit '9f777008eaead3cb9cee80d0c00e5a3d55de9de7':
Make zygotes aware of their supported ABIs.
9f777008eaead3cb9cee80d0c00e5a3d55de9de7 09-Apr-2014 Narayan Kamath <narayan@google.com> am 05f980d4: am d4b64409: Merge "Make zygotes aware of their supported ABIs."

* commit '05f980d42d4926ab2130cdcf9e646eb610a7080b':
Make zygotes aware of their supported ABIs.
c41638cb759ce569630ffae4c5c4cdee1b0f3b82 07-Apr-2014 Narayan Kamath <narayan@google.com> Make zygotes aware of their supported ABIs.

Query system properties for the list of ABIs and pass
it as a command line argument to ZygoteInit.

Also add a new Zygote command that returns this list of
ABIs to peers.

Change-Id: I68034c6f63fa626911122579a011a0a25a8cda94
nternal/os/ZygoteConnection.java
nternal/os/ZygoteInit.java
a7d72d34afed68c9433eb7f9464c0670e5dd6c62 09-Apr-2014 Amith Yamasani <yamasani@google.com> am 5784b398: Merge "Launcher APIs and broadcasts for managed profiles"

* commit '5784b39843bd3d6112352ff3b736a6498107911c':
Launcher APIs and broadcasts for managed profiles
5784b39843bd3d6112352ff3b736a6498107911c 09-Apr-2014 Amith Yamasani <yamasani@google.com> Merge "Launcher APIs and broadcasts for managed profiles"
4f58263d02f296430a9653126d28501e95c7bb6c 19-Feb-2014 Amith Yamasani <yamasani@google.com> Launcher APIs and broadcasts for managed profiles

UserManager
- Corp badging
- Querying list of managed profiles

Launcher API
- LauncherApps and Service to proxy changes in managed profile
to the launcher in the primary profile
- Querying and launching launchable apps across profiles

Change-Id: Id8f7b4201afdfb5f414d04156d7b81300119289e
nternal/content/PackageMonitor.java
cf1b3b4791aac33c5184d8998252041a08e324bc 08-Apr-2014 Yohei Yukawa <yukawa@google.com> am 59fee2d5: Merge "Allow IMEs to start/stop receiving onUpdateCursor callback"

* commit '59fee2d5534965f0986e68e0c3562da5e65e6c45':
Allow IMEs to start/stop receiving onUpdateCursor callback
59fee2d5534965f0986e68e0c3562da5e65e6c45 08-Apr-2014 Yohei Yukawa <yukawa@google.com> Merge "Allow IMEs to start/stop receiving onUpdateCursor callback"
9a762b3eee71882e1aa54bc9b993371d25d63f41 07-Apr-2014 Christoph Studer <chstuder@google.com> am d624a443: Merge "Write eventlog entries for notification panel visibility"

* commit 'd624a443ec5662d2bf812b6992e783bea225d36d':
Write eventlog entries for notification panel visibility
760ea554d0022fd88bbe13e3ef7c75cbe8613af6 21-Mar-2014 Christoph Studer <chstuder@google.com> Write eventlog entries for notification panel visibility

Change-Id: Ie7e15ed15739cb5f057c900e1cadf90824b2b4ef
nternal/statusbar/IStatusBarService.aidl
c6ce5ba083d67bd906635e8b7c5878793a1674bd 07-Apr-2014 Alan Viverette <alanv@google.com> am 012785d8: Merge "Don\'t auto scroll empty lists"

* commit '012785d8cbaadb4041707af350e122ad29d22151':
Don't auto scroll empty lists
a111328412d255f5b0c6c43eca7043befa48ccf3 07-Apr-2014 Alan Viverette <alanv@google.com> Don't auto scroll empty lists

BUG: 12930741
Change-Id: I22bcebace0d5e0d519d38b34d6312ffff5b62f9b
nternal/widget/AutoScrollHelper.java
8e2a4b539509f03c4b3521574a910f2ea3296a66 05-Apr-2014 Nick Kralevich <nnk@google.com> am 4ed27328: am dc97144b: Merge "Always call super.onCreate(). Always."

* commit '4ed27328b5e20d32b1e6ac5b39684dad3e737ca7':
Always call super.onCreate(). Always.
5eab368c4d089b23c45d31b99e4bef64003c9cfb 12-Feb-2014 Christopher Tate <ctate@google.com> Always call super.onCreate(). Always.

Bug 12991134

(cherrypick of commit 9d6376a1d88ab5b3a41ee4400e3aaa4c4ee69e2a)

Change-Id: Ife16ef93408253e3318a06dc0206ab4b88c7f367
nternal/app/ChooserActivity.java
95b0c1a723f096124b8ab415126dab79833b030c 04-Apr-2014 Adam Powell <adamp@google.com> am 33d0dad1: Merge "android.widget.Toolbar"

* commit '33d0dad1bce329b5794091c31c50543666b3a251':
android.widget.Toolbar
e43340c80dc66c45edc793ecd0343774aa34d108 18-Mar-2014 Adam Powell <adamp@google.com> android.widget.Toolbar

Add the new Toolbar widget for use in app layouts.

ActionBar can now be used as a point of control for either a
traditional window decor action bar or for a Toolbar that appears
inline in an Activity's layout.

ToolbarActionBar is currently WIP.

Change-Id: I0da093e5645840f4fd032aa34efa0ae5f1825ff2
nternal/app/ActionBarImpl.java
nternal/app/ToolbarActionBar.java
nternal/app/WindowDecorActionBar.java
nternal/view/menu/ActionMenuItemView.java
nternal/widget/ActionBarContainer.java
nternal/widget/ActionBarOverlayLayout.java
nternal/widget/ActionBarView.java
4a3285de79e44b5f8b8062da49f326203bdfe832 04-Apr-2014 Paul Lawrence <paullawrence@google.com> am f17f0e0e: Merge "Save OwnerInfo so CryptKeeper can display at boot time"

* commit 'f17f0e0eb0eef424401caa122e51a648f5ef3801':
Save OwnerInfo so CryptKeeper can display at boot time
f17f0e0eb0eef424401caa122e51a648f5ef3801 04-Apr-2014 Paul Lawrence <paullawrence@google.com> Merge "Save OwnerInfo so CryptKeeper can display at boot time"
d21310ae0f363c5137c1e5367d3edcb08e3d36c3 03-Apr-2014 Dianne Hackborn <hackbod@google.com> am 5d5902d1: Merge "Don\'t allow -1 uids for wake locks."

* commit '5d5902d140040936fa6aa7e443220140af0e9843':
Don't allow -1 uids for wake locks.
b7b7907fb5e4b2252b3c594a6bc4402217fe662a 25-Mar-2014 Yohei Yukawa <yukawa@google.com> Allow IMEs to start/stop receiving onUpdateCursor callback

This CL introduces an API which allows IMEs to start/stop
receiving onUpdateCursor callback upon their request.

BUG: 13388665
Change-Id: I987326872def181dda5d9d701b762f088e0d9c39
nternal/view/IInputMethodClient.aidl
nternal/view/IInputMethodManager.aidl
ef640cdfb29caf9d0abf4aba020afbc3eb3e0443 25-Mar-2014 Dianne Hackborn <hackbod@google.com> Don't allow -1 uids for wake locks.

Change-Id: Ia1b412a166f69247be3b047138349e7b4031bd7d
nternal/os/BatteryStatsImpl.java
3a3395042e51e1f2ade01cf1225df356e63cc27d 03-Apr-2014 Alan Viverette <alanv@google.com> am b325345e: Merge "Switch framework Holo references to Quantum.Light"

* commit 'b325345ef0adf2849350d339de1ec5f92b67b7ae':
Switch framework Holo references to Quantum.Light
b325345ef0adf2849350d339de1ec5f92b67b7ae 03-Apr-2014 Alan Viverette <alanv@google.com> Merge "Switch framework Holo references to Quantum.Light"
501f2c2cf009efee9a88ad964704e7fd4710e9c6 02-Apr-2014 Kenny Guy <kennyguy@google.com> am f4824a06: Fix issue with not allowing activities for current user.

* commit 'f4824a06884e096beef921646cba4be29d7f36fc':
Fix issue with not allowing activities for current user.
f4824a06884e096beef921646cba4be29d7f36fc 02-Apr-2014 Kenny Guy <kennyguy@google.com> Fix issue with not allowing activities for current user.

Change-Id: Ic2e30c3f4990a03aac9801ee9bf5f270a5e90ef8
nternal/inputmethod/InputMethodUtils.java
e51dcf98a4ddb1340cffba88059ad89f0b90909a 18-Mar-2014 Paul Lawrence <paullawrence@google.com> Save OwnerInfo so CryptKeeper can display at boot time

Requires vold change from
https://googleplex-android-review.git.corp.google.com/#/c/435164/

Bug: 13526708
Change-Id: I33153df9961832f72c3b8103bd5e1d3a17e77df3
nternal/widget/LockPatternUtils.java
ffa80df57848a41aeba692d177c701676c58c65f 02-Apr-2014 Kenny Guy <kennyguy@google.com> am 1ccace91: Merge "Rename related users to profiles."

* commit '1ccace916c8fdc61f1a8db6677aed518d31647e6':
Rename related users to profiles.
1ccace916c8fdc61f1a8db6677aed518d31647e6 02-Apr-2014 Kenny Guy <kennyguy@google.com> Merge "Rename related users to profiles."
2a764949c943681a4d25a17a0b203a0127a4a486 02-Apr-2014 Kenny Guy <kennyguy@google.com> Rename related users to profiles.

Rename the related user concept as profiles.
When returning profiles of a user include the
user as a profile of itself.

Change-Id: Id5d4f29017b7ca6844632ce643f10331ad733e1d
nternal/inputmethod/InputMethodUtils.java
b07178467f604057d4e931df32f2f7f0e53d542a 02-Apr-2014 Narayan Kamath <narayan@google.com> am b69bb445: resolved conflicts for merge of 71ab4f4f to master

* commit 'b69bb445585a083b8e4ff8a13a1a1a63e9c22a6a':
Move zygote startup logic to the frameworks.
b69bb445585a083b8e4ff8a13a1a1a63e9c22a6a 02-Apr-2014 Narayan Kamath <narayan@google.com> resolved conflicts for merge of 71ab4f4f to master

Change-Id: I888c231f7579523e12fbd68f820f0775019e51e0
71ab4f4f48a9b8b485d80adf18d568ef6265b1e8 02-Apr-2014 Narayan Kamath <narayan@google.com> am ea9e5eca: am 17b1b8fe: Merge "Move zygote startup logic to the frameworks."

* commit 'ea9e5ecac1e5240370f0e3f998b9c8b159ee9320':
Move zygote startup logic to the frameworks.
973b4663b0b5ee62006522bf4742af076096e548 31-Mar-2014 Narayan Kamath <narayan@google.com> Move zygote startup logic to the frameworks.

The Zygote class is now in com.android.internal.os. It is
responsible for the vast majority of work before and after
the call to fork(). It calls back into the Runtime via
the new dalvik.system.ZygoteHooks class to allow the Runtime
to perform pre fork cleanup and post fork initialization.

The native code in Zygote.cpp is a direct and straightforward
port of the existing code in art. Most differences are
superficial, for example :
- We use C style logging (ALOGE) instead of stream based
logging.
- We call env->FatalError() instead of using LOG(FATAL)

Change-Id: Ia101fb2af12d23894fe57e4134d2bc6d142e5059
nternal/os/WrapperInit.java
nternal/os/Zygote.java
nternal/os/ZygoteConnection.java
nternal/os/ZygoteInit.java
6259933ec99dee566f200c5fdfe1756ee72b1513 01-Apr-2014 Alan Viverette <alanv@google.com> Switch framework Holo references to Quantum.Light

Change-Id: Ib545a143f1959b6104adbc9d594dd626851d90b3
nternal/app/ActionBarImpl.java
d2cf756996be2cbc915227f1f384704427ab88e6 01-Apr-2014 Paul Lawrence <paullawrence@google.com> am df42723d: Merge "Don\'t double prompt on booting encrypted device"

* commit 'df42723d6b717fd2882c98c930a0f93c75af2474':
Don't double prompt on booting encrypted device
df42723d6b717fd2882c98c930a0f93c75af2474 01-Apr-2014 Paul Lawrence <paullawrence@google.com> Merge "Don't double prompt on booting encrypted device"
ade07fd4299f4a16fed658d4c578a725bd17b05b 01-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> am a780d932: Merge "Fix bug #13727850 Input values are not visible when setting up the lockscreen... ...security(PIN/Passwor/Pattern)."

* commit 'a780d9323b3ab9d0a06a9b8569164940d23405d4':
Fix bug #13727850 Input values are not visible when setting up the lockscreen... ...security(PIN/Passwor/Pattern).
a780d9323b3ab9d0a06a9b8569164940d23405d4 01-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #13727850 Input values are not visible when setting up the lockscreen... ...security(PIN/Passwor/Pattern)."
1cf3594114b1846c97243ff536074c49bbe06061 01-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13727850 Input values are not visible when setting up the lockscreen...
...security(PIN/Passwor/Pattern).

- remove that hardcoded color
- enable passing a color for the Path lines

Change-Id: Ie40b15bf209f41ea2df16842a3e56ffc2020df65
nternal/widget/LockPatternView.java
e6978cda7110823f70cc74319c37bd512866c6f1 31-Mar-2014 Adrian Roos <roosa@google.com> am 53ab5174: Merge "Define trust agent framework components"

* commit '53ab5174d5009786dc58da3011181b77e325c130':
Define trust agent framework components
82142c21dd333307682d5f4bb09de3ab3ccfa06c 27-Mar-2014 Adrian Roos <roosa@google.com> Define trust agent framework components

Adds the TrustManager system service that allows
registering for changes to the trust status and
reporting events that are important to trust agents.

Bug: 13723878
Change-Id: I7d0d2ea86fd755702d31aa5d49cac038a6cd4301
nternal/widget/LockPatternUtils.java
5cf17879a31b7b78c09ec50b727f921840dcf783 26-Mar-2014 Jorim Jaggi <jjaggi@google.com> Reuse KeyguardViewMediator for new Keyguard implementation.

This change reuses KeyguardViewMediator for the new Keyguard
implementation in status bar. KeyguardViewManager is replaced by
StatusBarKeyguardManager which handles adding the view, setting the
state etc. StatusBarWindowManager is introduced to managed the window
of the status bar, which has the logic of both the old Keyguard window
and the old status bar window. In the current implementation, Keyguard
gets displayed like it would be in the bouncer state, but that's likely
to change in the future. Also, setHidden in IKeyguardService is also
renamed to setOccluded, as the word hidden interferes with the
terminology when dismissing the Keyguard.

Bug: 13635952
Change-Id: I1c5d5a49d810d8532089f464cb2efe35e577f517
nternal/policy/IKeyguardService.aidl
nternal/policy/IKeyguardServiceConstants.java
8ae65aecc81d5a3ccf2320b88a8324e82b46fda4 31-Mar-2014 Jorim Jaggi <jjaggi@google.com> Address comments for I059d80d8b9b9818a778ab685f4672ea2694def63

Bug: 13635952
Change-Id: I5d2bd44b3588621f26d94baab161e4e2444197a8
nternal/policy/IKeyguardService.aidl
380ecb81db52a9d0197ca969951d07b91c20d2b9 14-Mar-2014 Jorim Jaggi <jjaggi@google.com> Make Keyguard a library and make StatusBar the new Keyguard.

This change achieves a couple of things:
- Let Keyguard be a library, so we can use it in SystemUI.
- Introduce FLAG_KEYGUARD for windows and deprecate TYPE_KEYGUARD. Make
all the TYPE_KEYGUARD behaviour dependant on the flag.
- Implement a new KeyguardService in SystemUI, and bind that service
from PhoneWindowManager.
- Introduce BaseStatusBar.setKeyguardState and inflate
KeyguardSimpleHostView there and use FLAG_KEYGUARD for the window, such
that the status bar window essentially gets the Keyguard.

Bug: 13635952
Change-Id: I059d80d8b9b9818a778ab685f4672ea2694def63
nternal/policy/IKeyguardService.aidl
nternal/policy/IKeyguardServiceConstants.java
945490c12e32b1c13b9097c00702558260b2011f 27-Mar-2014 Paul Lawrence <paullawrence@google.com> Don't double prompt on booting encrypted device

vold will store password securely until KeyGuard requests it
and hands it on to KeyStore.

This is a revision of

https://googleplex-android-review.git.corp.google.com/#/c/418123/

which was reverted. It had two bugs in LockSettingsService.checkVoldPassword.
1) We were not checking password for null, which caused an exception
2) checkPattern/checkPassword return true if there is no saved pattern or password.
This leads to situations where we get true returned even when the password
doesn't match. Call the correct one based on what is there, not what vold
thinks ought to be there.

Bug: 12990752
Change-Id: I05315753387b1e508de5aa79b5a68ad7315791d4
nternal/widget/ILockSettings.aidl
nternal/widget/LockPatternUtils.java
0e14f2d45557527242f27ce7de9027e6ccaa45d6 28-Mar-2014 John Spurlock <jspurlock@google.com> Merge "Remove obsolete MultiWaveView"
776abc24cdd18610232a50b997cce3cffa74609b 07-Mar-2014 Adam Lesinski <adamlesinski@google.com> Uses VMRuntime.newUnpaddedArray for ideal array sizes

Bug:13028925

Change-Id: I0a9301248b10a339afbdc5e4ffe3310ac4fa1fb7
nternal/app/ProcessStats.java
nternal/util/ArrayUtils.java
nternal/util/GrowingArrayUtils.java
73581effb0b4029961501c6f699e95a9930ea1e6 27-Mar-2014 Jorim Jaggi <jjaggi@google.com> Merge "Move legacy notification processing to Notification.Builder"
5c2d84675b239bc04ae98c75526e5b81897ee183 21-Mar-2014 Jorim Jaggi <jjaggi@google.com> Move legacy notification processing to Notification.Builder

Bug: 13485610
Change-Id: I5466d3dbc328c77876dc701c17e7a5a06777dbbe
nternal/util/ImageUtils.java
nternal/util/LegacyNotificationUtil.java
4f0db5e23a4e523cf650c19a76fd7d75c8bfbe83 30-Jan-2014 John Spurlock <jspurlock@google.com> Remove obsolete MultiWaveView

Change-Id: Ic878221c873d29577928aed2669f967851307e4d
nternal/widget/multiwaveview/MultiWaveView.java
6ee7d25010d4f23b44a151f3953225ba253de8af 26-Mar-2014 Paul Lawrence <paullawrence@google.com> Revert "Don't prompt at boot if we already did that when decrypting"

This reverts commit 493e3e7e6523fd94cc1acae3e45935a1227d58c3.

Should fixes

Bug: 13611885
Bug: 13656830
Change-Id: I117c988bb6679f44f8add4fcc18f45cb8238dfb4
nternal/widget/ILockSettings.aidl
nternal/widget/LockPatternUtils.java
4590e52f3d0558e01322fe4dd55bb612afdfb079 24-Mar-2014 Dianne Hackborn <hackbod@google.com> Battery stats: wake locks, radio active, cleanup.

- Improve wake lock work source updates to also update the current
history tag, in case the new work source gets recorded in the
history.

- Fix bug in recording radio active time that was not distributing
any time to apps.

- No longer hold a wake lock while dispatching data conn active call,
since it comes with its own timestamp.

- Fix issue where the top app was not being cleared while the screen
was off.

- Remove obsolete STATS_LAST stats type.

- Fix bug that was not clearing the total run time when resetting
the stats.

Change-Id: Iabe17a9edf34f762374ae09fcffb8a819cf72e30
nternal/os/BatteryStatsImpl.java
a1bd79268be693f04f4adee90673d6ed400cc9fd 21-Mar-2014 Dianne Hackborn <hackbod@google.com> Battery stats: track actually running time

Use the uptime while creating the battery stats history to
generate a new event indicating when the CPU is actually running.
We can do this in combination with the new event reporting when
the CPU comes awake, looking at the difference between the
uptime and elapsed time at that point to determine when it last
when to sleep.

Also use this information to generate a new set of aggregated
states, the uptime caused by each wake reason.

Finally use new radio down timestamp to adjust the times we
compute for radio use. Note that this information is not (yet)
being used to adjust how these are recorded in the history.

Change-Id: I723b3b526c8e7d64de0cac9d1193e04132d5a3e4
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
717e0f5db7161ddfff98f21fe1cdb2a3b1a6c8b7 21-Mar-2014 Paul Lawrence <paullawrence@google.com> Merge "Don't prompt at boot if we already did that when decrypting"
f9e1a0b369740e11ea1ed4f141ffb936fc1a6cdb 20-Mar-2014 John Spurlock <jspurlock@google.com> Annotate framework vibrate calls with stream hints.

Migrate existing framework usages of Vibrator.vibrate to use
the new overload with an explicit stream hint. This prevents
them from being blocked by rules targeting the unspecified stream.

For calls that pass the existing appops check in VibrateService,
pass streamHint down to the input device vibrator so we don't lose
the signal, but leave it up to InputManager to decide what to do
with it - currently unused.

Change-Id: I65c944e4010edea29a412bf57d8d7d3b8098b746
nternal/widget/RotarySelector.java
nternal/widget/SlidingTab.java
nternal/widget/WaveView.java
nternal/widget/multiwaveview/GlowPadView.java
nternal/widget/multiwaveview/MultiWaveView.java
adfe8b86e9178a553b6db9722340fa4ff5201cf1 05-Feb-2014 Christopher Tate <ctate@google.com> App widget backup/restore infrastructure

Backup/restore now supports app widgets.

An application involved with app widgets, either hosting or publishing,
now has associated data in its backup dataset related to the state of
widget instantiation on the ancestral device. That data is processed
by the OS during restore so that the matching widget instances can be
"automatically" regenerated.

To take advantage of this facility, widget-using apps need to do two
things: first, implement a backup agent and store whatever widget
state they need to properly deal with them post-restore (e.g. the
widget instance size & location, for a host); and second, implement
handlers for new AppWidgetManager broadcasts that describe how to
translate ancestral-dataset widget id numbers to the post-restore
world. Note that a host or provider doesn't technically need to
store *any* data on its own via its agent; it just needs to opt in
to the backup/restore process by publishing an agent. The OS will
then store a small amount of data on behalf of each widget-savvy
app within the backup dataset, and act on that data at restore time.

The broadcasts are AppWidgetManager.ACTION_APPWIDGET_RESTORED and
ACTION_APPWIDGET_HOST_RESTORED, and have three associated extras:

EXTRA_APPWIDGET_OLD_IDS
EXTRA_APPWIDGET_IDS
EXTRA_HOST_ID [for the host-side broadcast]

The first two are same-sized arrays of integer widget IDs. The
_OLD_IDS values are the widget IDs as known to the ancestral device.
The _IDS array holds the corresponding widget IDs in the new post-
restore environment. The app should simply update the stored
widget IDs in its bookkeeping to the new values, and things are
off and running. The HOST_ID extra, as one might expect, is the
app-defined host ID value of the particular host instance which
has just been restored.

The broadcasts are sent following the conclusion of the overall
restore pass. This is because the restore might have occurred in a
tightly restricted lifecycle environment without content providers
or the package's custom Application class. The _RESTORED broadcast,
however, is always delivered into a normal application environment,
so that the app can use its content provider etc as expected.

*All* widget instances that were processed over the course of the
system restore are indicated in the _RESTORED broadcast, even if
the backing provider or host is not yet installed. The widget
participant is responsible for understanding that these are
promises that might be fulfilled later rather than necessarily
reflecting the immediate presentable widget state. (Remember
that following a cloud restore, apps may be installed piecemeal
over a lengthy period of time.) Telling the hosts up front
about all intended widget instances allows them to show placeholder
UI or similarly useful information rather than surprising the user
with piecemeal unexpected appearances.

The AppWidgetProvider helper class has been updated to add a new
callback, onRestored(...), invoked when the _RESTORED broadcast
is received. The call to onRestored() is immediately followed by
an invocation of onUpdate() for the affected widgets because
they will need to have their RemoteViews regenerated under the
new ID values.

Bug 10622506
Bug 10707117

Change-Id: Ie0007cdf809600b880d91989c00c3c3b8a4f988b
nternal/appwidget/IAppWidgetService.aidl
nternal/backup/LocalTransport.java
erver/AppWidgetBackupBridge.java
erver/WidgetBackupProvider.java
40c8725804f46c9d53f2815e0ee69e6cfb0152cc 20-Mar-2014 Dianne Hackborn <hackbod@google.com> batstats: fix wake lock tracking, service bug

- Fix bug I introduced in handling wake lock changes where
we weren't iterating over the new work sources correctly.
- Fix bug in ActiveServices that would wtf too much.
- Prepare to start tracking uptime in the battery history.

Change-Id: Ia94316be51bc6eab7b02f214a5c40c08e99cc3b1
nternal/os/BatteryStatsImpl.java
1af30c7ac480e5d335f267a3ac3b2e6c748ce240 10-Mar-2014 John Spurlock <jspurlock@google.com> Add stream-level suppression to vibrate/audio services.

- Add new audio restriction layer to app-ops. Restrictions add
additional constraints to audio operations at a stream-level.
Restrictions do not affect the persistable state, and are purely
additive: that is, they can only impose additional contstraints, not
enable something that has already been disabled. Restrictions
also support a whitelisted set of exempt package names.

- Add new audio stream-level checks to app-ops.

- Implement a provisional OP_PLAY_AUDIO suppression to three
java entry points MediaPlayer, AudioTrack, & SoundPool.

- Enhance vibrator api to take stream information as an optional
hint - the constants correspond to AudioManager stream types.
OP_VIBRATE now supports the stream-level restriction check.

- Simplify Vibrator subclasses by adding default implementations
for two .vibrate calls.

- Migrate NoMan's zen-mode control to use the new app-ops
stream-level restriction mechanism.

Change-Id: Ifae8952647202f728cf1c73e881452660c704678
nternal/app/IAppOpsService.aidl
31dc8f701fb14e185bf1c1b35d68bd7d1a42a54a 19-Mar-2014 George Mount <mount@google.com> Merge "Fix ActionBar layout bug when INVISIBLE."
14a9738330c14410378fe2ba1c25404a444adaf3 18-Mar-2014 George Mount <mount@google.com> Fix ActionBar layout bug when INVISIBLE.

ActionBar did not layout properly when INVISIBLE, but worked
when VISIBLE or GONE.

Change-Id: I30ca85377f3516c79174a35b65648d4ca68e927a
nternal/widget/ActionBarOverlayLayout.java
0535a9f7aa5d0f875b06845e9af5f6dbfc5c8a19 13-Mar-2014 Ashish Sharma <ashishsharma@google.com> Include elapsed realtime (nanos) of the event in the radio state change notifications.

Bug: 13247811
Change-Id: I3454aa159a68b9087b4762df947b41965b5a3941
erver/net/BaseNetworkObserver.java
432f755d44d3afc20cef2b78559ad31775d3a06d 17-Mar-2014 Jeff Sharkey <jsharkey@android.com> am ac0f9ffd: am da07fe64: am eeb36c5c: am d88d8174: Merge "Null pointer exception in FileRotator.java"

* commit 'ac0f9ffda2a7e48d2d641654dafd11b8da39830a':
Null pointer exception in FileRotator.java
da07fe64b09bbf75cf831067dfe678ed06950f8e 17-Mar-2014 Jeff Sharkey <jsharkey@android.com> am eeb36c5c: am d88d8174: Merge "Null pointer exception in FileRotator.java"

* commit 'eeb36c5cfc107fe9128490e9e127c2bca2d24e28':
Null pointer exception in FileRotator.java
275d14befc4bf54ff92d37b00d3bd32dfedcb49b 17-Mar-2014 Jeff Sharkey <jsharkey@android.com> am eeb36c5c: am d88d8174: Merge "Null pointer exception in FileRotator.java"

* commit 'eeb36c5cfc107fe9128490e9e127c2bca2d24e28':
Null pointer exception in FileRotator.java
c05362b84cd55f6bac20a373b74f66a79577109d 14-Mar-2014 Yohei Yukawa <yukawa@google.com> am 77943308: am fd2f8d43: am 51b921d0: DO NOT MERGE - Preserve the order of InputMethodManager method calls

* commit '77943308f5661636d85cb5e78188dbbc8f0e329e':
DO NOT MERGE - Preserve the order of InputMethodManager method calls
77943308f5661636d85cb5e78188dbbc8f0e329e 14-Mar-2014 Yohei Yukawa <yukawa@google.com> am fd2f8d43: am 51b921d0: DO NOT MERGE - Preserve the order of InputMethodManager method calls

* commit 'fd2f8d43419d1f25ced8b2bac96407925dd4c471':
DO NOT MERGE - Preserve the order of InputMethodManager method calls
daf27b85f1877c5a802abe7362a0490f89c25ae5 14-Mar-2014 Yohei Yukawa <yukawa@google.com> am fd2f8d43: am 51b921d0: DO NOT MERGE - Preserve the order of InputMethodManager method calls

* commit 'fd2f8d43419d1f25ced8b2bac96407925dd4c471':
DO NOT MERGE - Preserve the order of InputMethodManager method calls
51b921d0e33302b3f431dcfa15bd6588408525ea 05-Mar-2014 Yohei Yukawa <yukawa@google.com> DO NOT MERGE - Preserve the order of InputMethodManager method calls

Cherrypick of I0f8d33b0c77129f72581bc43e7f4fdc25469b520

This CL allows the Framework class InputMethodManager to behave
in a more deterministic way, that is to say, with an I/O barrier.

InputMethodManager#setAdditionalInputMethodSubtypes is internally
implemented as a RPC to the corresponding counterpart in
InputMethodManagerService. The problem here is that this RPC is
marked as "oneway". As a consequence, this public API call
returns immediately without waiting the additional subtypes are
actually added. This behavior is also not documented so far
unfortunately.

See the following demo code:

Final InputMethodManager imm = ...;
imm.setAdditionalInputMethodSubtypes(id, subTypes);
Final List<InputMethodInfo> ims = imm.getInputMethodList();

Currently, it is not guaranteed that the InputMethodInfo returned
from #getInputMethodList reflects the result of the previous call
of #setAdditionalInputMethodSubtypes because of its undocumented
asynchronous nature.

With this CL, InputMethodManager#setAdditionalInputMethodSubtypes
behaves as if it has I/O barrier. This change should make it easy
for IME developers to use additional subtype mechanism.

BUG: 13033954
BUG: 13291370
Change-Id: I0455b176bfb3176c533ba3241881f05092b98abc
nternal/view/IInputMethodManager.aidl
493e3e7e6523fd94cc1acae3e45935a1227d58c3 06-Feb-2014 Paul Lawrence <paullawrence@google.com> Don't prompt at boot if we already did that when decrypting

vold will store password securely until KeyGuard requests it
and hands it on to KeyStore.

Needs matching vold changes from
https://googleplex-android-review.git.corp.google.com/#/c/432050/

Bug: 12990752
Change-Id: I930ed8180cf0b8feb1e58db043d5fb6dff1bab20
nternal/widget/ILockSettings.aidl
nternal/widget/LockPatternUtils.java
4a5c9e941a78299d869b4c9d916fd86187057150 13-Mar-2014 Adam Powell <adamp@google.com> am 68ec033b: am 75958c29: am 3a153c0d: Merge "Fix a bug in submenu presenter priority handling" into klp-dev

* commit '68ec033b7c9ea28155bbb007b01d5dbce2239392':
Fix a bug in submenu presenter priority handling
08fc3a7fc24cf16c15f53bab3d061a8c32367655 13-Mar-2014 Dianne Hackborn <hackbod@google.com> Merge "Fix some uid issues in battery stats."
bbb7472b8e378a46a1e77747265c19d22bd6968c 13-Mar-2014 Dianne Hackborn <hackbod@google.com> Fix some uid issues in battery stats.

Change-Id: I9f7773568ff12603d51b26d50d758add09bedbb2
nternal/os/BatteryStatsImpl.java
bbf1861fdd2ba250354c060fe70f0ee7cbe93877 13-Dec-2013 Mikael Gullstrand <mikael.gullstrand@sonymobile.com> Null pointer exception in FileRotator.java

Sometimes a null pointer exception is thrown when examining files
managed by the file rotator.

The logs from the test show that the Wifi state is changed a large
number of times. On every state change, a write operation is
initiated on the file system. This will eventually result in out
of memory and the call to mBasePath.list() in the maybeRotate(...)
method in FileRotator.java will return null so the iteration will
throw a NullPointerException.

Change-Id: I5d5980d9593bc9ec75281169ca27ee591809903f
nternal/util/FileRotator.java
4979ff9f280727f15a0e4118426fbd4c3ba9cd31 13-Mar-2014 Kenny Guy <kennyguy@google.com> Merge "Show notifications from related users."
68ec033b7c9ea28155bbb007b01d5dbce2239392 13-Mar-2014 Adam Powell <adamp@google.com> am 75958c29: am 3a153c0d: Merge "Fix a bug in submenu presenter priority handling" into klp-dev

* commit '75958c298477a3d1e556c4fe36e516b9e828c311':
Fix a bug in submenu presenter priority handling
de69575dd1bdafabda8afda8b4251b830ba0c551 12-Mar-2014 Yohei Yukawa <yukawa@google.com> Merge "Preserve the order of InputMethodManager method calls"
c8dbd29fc9b22ab0715dbe6181d53b24fa366332 12-Mar-2014 Justin Koh <justinkoh@google.com> am c65caed6: am c48701a1: am 641d8aff: Merge "Fix possible invalid pointer index in swipe dismiss." into klp-modular-dev

* commit 'c65caed6dabe9eed3551c412427df81cd881496a':
Fix possible invalid pointer index in swipe dismiss.
3a7c4a5669420ae9b01eda88d1d60114e99d70ff 03-Mar-2014 Kenny Guy <kennyguy@google.com> Show notifications from related users.

When filtering notifications for user include those for users that
are related to the current user.
Pipe through user id so we know which user the notification is for.

Change-Id: I4e2657c23bd7b611d450be5a1f9457824bc062cb
nternal/statusbar/IStatusBarService.aidl
c48701a134d3ba05e35d94da921abe1120b67185 12-Mar-2014 Justin Koh <justinkoh@google.com> am 641d8aff: Merge "Fix possible invalid pointer index in swipe dismiss." into klp-modular-dev

* commit '641d8aff87cbb9ed5e84ce849e0da3d3962b5eb3':
Fix possible invalid pointer index in swipe dismiss.
df4ee5c8ac0830b23451ea466d48487f8b2205a0 06-Mar-2014 Justin Koh <justinkoh@google.com> Fix possible invalid pointer index in swipe dismiss.

Fix possible invalid pointer index in swipe dismiss: exit out if the pointer
index is -1. Also allow user to cancel this if in swipe mode.

Change-Id: I0f623ced0287679be8dd5c93ab6c67504b82fe9b
nternal/widget/SwipeDismissLayout.java
4af04c87adb71c672826a3974c3005a2c4d24457 12-Mar-2014 Adam Powell <adamp@google.com> am 75958c29: am 3a153c0d: Merge "Fix a bug in submenu presenter priority handling" into klp-dev

* commit '75958c298477a3d1e556c4fe36e516b9e828c311':
Fix a bug in submenu presenter priority handling
e5167ca61e2c5607aad9041b44158581bc61b4d8 08-Mar-2014 Dianne Hackborn <hackbod@google.com> Reduce wake lock noise in battery history.

When the work source of a wake lock was changed, this would
cause the old wake lock to be released in battery stats before
the new one was acquired (the power manager would correctly
keep holding the associated wake lock). This resulted in a
pointless entry in the battery history showing the last wake
lock being released and a new one acquired.

This change adds a new path in to battery stats to report
when a wake lock has changed, allowing it to acquire the
new wake locks first before the old ones, so it can't drop
down to zero wake locks. This also provides better timing
information, as the same current time can be used for both
operations.

In addition, added a new kind of history entry for the
current time, so you can tell when in actual world clock
time the battery data is happening.

Change-Id: Ibbf2eed83bb93f31f60267889b7bc5b9e71e355f
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
724cc1f04f117ee27583d015b414a5ba4540d3b1 10-Mar-2014 Amith Yamasani <yamasani@google.com> Merge "Allow related users to show activities on primary user"
6835033af4f42132337a65eeeb1e4362a36b0465 10-Mar-2014 Benoit Goby <benoit@android.com> am c6f0b54d: Merge "Add CAP_BLOCK_SUSPEND to system server" into klp-modular-dev

* commit 'c6f0b54d695b49966a13bb196800a985ac6ce212':
Add CAP_BLOCK_SUSPEND to system server
190909f2c1b47a0ac9e50a2012cc8eae34391fa7 04-Dec-2013 Adam Powell <adamp@google.com> Fix a bug in submenu presenter priority handling

Now that overflow menus and the PhoneWindow-level ListMenuPresenter
can coexist, make sure that ListMenuPresenter handles submenus spawned
by itself. Introduce an internal API for menus to prefer a specific
presenter when performing item actions.

Bug 11979407

Change-Id: Id0b8fcbb8b310cbb3a63a1e5ea7a89de5d53f86f
nternal/view/menu/ListMenuPresenter.java
nternal/view/menu/MenuBuilder.java
2bc68575325ab7bf082de24f5f095f20ea63f877 10-Mar-2014 Paul Lawrence <paullawrence@google.com> Merge "Clean up a few minor issues"
d33dd014202130ff6b44e93e7b49122da9f01a79 08-Mar-2014 Adam Powell <adamp@google.com> am 96192157: am f175b19a: Merge "Fix a bug where OnTouchListeners in action views could be removed" into klp-dev

* commit '96192157b88d3630827a9ffd55693866734b4da3':
Fix a bug where OnTouchListeners in action views could be removed
734983fff35d9ed2b7a9848bdfbca401887d0dd8 05-Mar-2014 Amith Yamasani <yamasani@google.com> Allow related users to show activities on primary user

Make ActivityManager and WindowManager understand related users.

Task stack will now contain interleaved tasks for related users,
but still group regular users separately from groups of related users.

InputMethodManagerService permits related users to invoke IME and receive
key events.

Change-Id: I3bd87b32aec69c3f8d470c8b29b144f4e849c808
nternal/inputmethod/InputMethodUtils.java
a26d08e612ec38c1d0f9d2b9f80d9d558ab26538 20-Feb-2014 Benoit Goby <benoit@android.com> Add CAP_BLOCK_SUSPEND to system server

With linux 3.5 and above, CAP_BLOCK_SUSPEND is needed to take a
suspend blocker.

CAP_BLOCK_SUSPEND has aleady been added in master.

Change-Id: Ibd4b1f8498c3c4a7b69ea9fc68311546a8f0ecda
nternal/os/ZygoteInit.java
f175b19aaac7ffe5553013d996a073693cac929d 08-Mar-2014 Adam Powell <adamp@google.com> Merge "Fix a bug where OnTouchListeners in action views could be removed" into klp-dev
c51cf03cf2458c8c137f60c7379f2cccf681d16f 03-Mar-2014 Dianne Hackborn <hackbod@google.com> Start recording wakeup reasons in battery history.

Depends on a modification to libsuspend so that we can get
a callback each time the device wakes up, to read the current
wakeup reasons from the kernel. These are then stuffed in
to a new field in the battery history.

Also add new dump options --history-start and --charged
to better control what is dumped.

Finally the alarm manager uses a "*walarm*" tag for history
item wake locks that are coming from a wakeup alarm.

Change-Id: I457571973d5b2b5fdc4e4b63ab16275db20d7edd
nternal/os/BatteryStatsImpl.java
71c8fb92a151f2f64ffbaf551c072179bc46c0da 07-Mar-2014 Jeff Brown <jeffbrown@google.com> am 2b27ef97: am c969450a: am 840c8474: Merge "Add config_supportAutoRotation." into klp-modular-dev

* commit '2b27ef979dba3808cdae6dce32fe27b59197e34c':
Add config_supportAutoRotation.
731ef298318297c2df2e1f23901cb50d6d4bc985 07-Mar-2014 Dianne Hackborn <hackbod@google.com> am 8e904d56: am 785d764b: Merge "More on issue #12031685 (DO NOT MERGE)" into klp-dev

* commit '8e904d565e8a54f755814e9ae062743b8b012731':
More on issue #12031685 (DO NOT MERGE)
c969450acd4924f0f5478274c345207bf2c57768 07-Mar-2014 Jeff Brown <jeffbrown@google.com> am 840c8474: Merge "Add config_supportAutoRotation." into klp-modular-dev

* commit '840c84749a6066b436db4dc94c3e3929a8440575':
Add config_supportAutoRotation.
ae90d762c3ae5cd9c8c918849dc91dfea825387b 07-Mar-2014 Yohei Yukawa <yukawa@google.com> Merge "Introduce InputMethodSubtypeArray for memory efficient IPCs"
840c84749a6066b436db4dc94c3e3929a8440575 07-Mar-2014 Jeff Brown <jeffbrown@google.com> Merge "Add config_supportAutoRotation." into klp-modular-dev
bcdfc62ae3ac3809e883fc0b4c71ab52a0cdacf8 07-Mar-2014 Jeff Brown <jeffbrown@google.com> Add config_supportAutoRotation.

On some products, it may not make sense to use the accelerometer
to perform auto-rotation. In that case, the product's config.xml
framework resource overlay should set config_supportAutoRotation
to false.

Setting this to false also disables auto-rotation settings.

Bug: 13211999
Change-Id: If9d7d72f2a2c576b14a4ff0afb61ea52c42c3357
nternal/view/RotationPolicy.java
9eca7f8fbc52ac5b2bf48528b90743f220ffb3ae 07-Mar-2014 Dave Platt <dplatt@google.com> am 53c7608a: am a3c3533b: Merge "Finish fixing Zygote descriptor leakage problem"

* commit '53c7608aefb0ed754394e571cac02e96ad6fcdb3':
Finish fixing Zygote descriptor leakage problem
c9e5f540a954a878365e88e42f78800d4eafa188 10-Jan-2014 Adam Powell <adamp@google.com> Fix a bug where OnTouchListeners in action views could be removed

ActionMenuPresenter should only replace the touch listener when binding
a generated item view.

Bug 12470259

Change-Id: I8c4c6110065605225a20cb7ed872255282085661
nternal/view/menu/ActionMenuPresenter.java
cb15c7a83b62a37e5def14413e37925391e5ea39 07-Mar-2014 Dianne Hackborn <hackbod@google.com> More on issue #12031685 (DO NOT MERGE)

Integrate from master:

Fix issue #13065185: Frequent runtime restarts on launching...

..."Hill Climb Racing" app

A service is in use when it is in the restarting state.

Change-Id: Iffdea96f867f89089e7ad07b4b1bef056951a5e8
nternal/app/ProcessStats.java
ac3b177cc13498dbcb772c66976f204112a90114 07-Mar-2014 Brian Carlstrom <bdc@google.com> am 2cd0563c: am 3038046b: Merge "frameworks/base: Rename persist.sys.dalvik.vm.lib to allow new default"

* commit '2cd0563cb8345747d3705d4f339a0800998767fe':
frameworks/base: Rename persist.sys.dalvik.vm.lib to allow new default
97ae538554e5d894774ddd55c266434ce1d67492 06-Mar-2014 Dianne Hackborn <hackbod@google.com> Formalize time bases in battery stats.

Battery stats used to revolve around a single time base
it maintained, "battery uptime and realtime." This is derived
from the system's uptime and realtime, but only increments while
the device is on battery. It is used to update its timers for
things like the screen being on, wake locks, etc only while the
device is not plugged in to power.

This change formalizes that time base into a separate class that
maintains all of its state. This is used to introduce a new
time base, "battery screen off," which only increments while the
device is on battery *and* the screen is off. Wake locks are now
based on this time base, so we don't count them while the screen
is on -- it is misleading to have them increment while the screen
is on because the device is defined to always stay awake anyway
during that time, so what they are doing is irrelevant.

Change-Id: I020e20c930d8dca2953c6c3ddef1dc93c24161a5
nternal/os/BatteryStatsHelper.java
nternal/os/BatteryStatsImpl.java
f06569561fe1c6e898debf8bb9f37331a9f87323 03-Mar-2014 Yohei Yukawa <yukawa@google.com> Introduce InputMethodSubtypeArray for memory efficient IPCs

This CL introduces InputMethodSubtypeArray which compresses
multiple instances of InputMethodSubtype to reduce the risk
of TransactionTooLargeException during IPCs.

There are some IMEs which rapidly adding new subtypes into
their supported language list. One problem here is that each
instance of InputMethodInfo internally owns the list of
supported subtypes. Basically it requires additional
200 ~ 300 bytes for each subtype when InputMethodInfo is
transffered via IPCs. We should keep the size less than
100 KB in typical scenario.

With this CL, the list of InputMethodSubtype is marshalled
with GZIP compression. Approximately one InputMethodInfo is
marshalled within 10 KB even when it has 100 subtypes.

No negative performance impact is observed so far. The cost of
decompression seems to be compensated by another optimization
in this CL. Actually marshalling cost is reduced with this CL
by caching the compressed data on demand.

BUG: 12954290
Change-Id: Ibb2940fcc02f3b3b51ba6bbe127d646fd7de7c45
nternal/view/IInputMethodManager.aidl
9e9fbb26395eb983e17a415cf78b3c2ee060ee0e 05-Mar-2014 Yohei Yukawa <yukawa@google.com> Preserve the order of InputMethodManager method calls

This CL allows the Framework class InputMethodManager to behave
in a more deterministic way, that is to say, with an I/O barrier.

InputMethodManager#setAdditionalInputMethodSubtypes is internally
implemented as a RPC to the corresponding counterpart in
InputMethodManagerService. The problem here is that this RPC is
marked as "oneway". As a consequence, this public API call
returns immediately without waiting the additional subtypes are
actually added. This behavior is also not documented so far
unfortunately.

See the following demo code:

Final InputMethodManager imm = ...;
imm.setAdditionalInputMethodSubtypes(id, subTypes);
Final List<InputMethodInfo> ims = imm.getInputMethodList();

Currently, it is not guaranteed that the InputMethodInfo returned
from #getInputMethodList reflects the result of the previous call
of #setAdditionalInputMethodSubtypes because of its undocumented
asynchronous nature.

With this CL, InputMethodManager#setAdditionalInputMethodSubtypes
behaves as if it has I/O barrier. This change should make it easy
for IME developers to use additional subtype mechanism.

BUG: 13033954
BUG: 13291370
Change-Id: I0f8d33b0c77129f72581bc43e7f4fdc25469b520
nternal/view/IInputMethodManager.aidl
7a4e519eda4e0e7bac9ad0159b29b11f61b50e01 05-Mar-2014 Christopher Tate <ctate@google.com> am 8106dce7: am a6c59158: am f63ae644: am 1e995c76: Merge "Update PackageMonitor to recognize new \'replacing\' semantics" into klp-dev

* commit '8106dce705ba69d5bc0ccafa8e21068216f42a5f':
Update PackageMonitor to recognize new 'replacing' semantics
8106dce705ba69d5bc0ccafa8e21068216f42a5f 05-Mar-2014 Christopher Tate <ctate@google.com> am a6c59158: am f63ae644: am 1e995c76: Merge "Update PackageMonitor to recognize new \'replacing\' semantics" into klp-dev

* commit 'a6c59158761423551941f6ed338a117658e581ad':
Update PackageMonitor to recognize new 'replacing' semantics
a6c59158761423551941f6ed338a117658e581ad 05-Mar-2014 Christopher Tate <ctate@google.com> am f63ae644: am 1e995c76: Merge "Update PackageMonitor to recognize new \'replacing\' semantics" into klp-dev

* commit 'f63ae644a80ef2d0bd7bfb448eebb19691e4b6ec':
Update PackageMonitor to recognize new 'replacing' semantics
568628dc2cb92b3ec3a87cae9de3203fbdc5968c 05-Mar-2014 Will Haldean Brown <haldean@google.com> Manually merge commit '2faf28cf' into master

Original commit message:

Add swipe-to-dismiss support to PhoneWindow.

This adds a new window feature -- FEATURE_SWIPE_TO_DISMISS -- and a
theme attribute to activate that feature. When the feature is
activated, a SwipeDismissLayout is inflated as the DecorView layout.
SwipeDismissLayout intercepts touch events and steals ones that are
large swipes to the right if its children don't. PhoneWindow
registers handlers that listen for these swipe events, translate the
window when necessary, and finish the activity at the end of the
gesture.

Conflicts:
core/java/android/view/Window.java
core/res/res/values/attrs.xml

Change-Id: I943290b436864ca4a1bd401b88d696e08c921cdd
11c51608ee1c368dd38b134603e85943629c6f44 04-Mar-2014 Will Haldean Brown <haldean@google.com> am bd79652a: Merge "Add swipe-to-dismiss support to PhoneWindow." into klp-modular-dev

* commit 'bd79652a9afeee1e81f0f51d11e5869091f58af9':
Add swipe-to-dismiss support to PhoneWindow.
ca6234e084a71e0c968cff404620298bcd971fcc 12-Feb-2014 Will Haldean Brown <haldean@google.com> Add swipe-to-dismiss support to PhoneWindow.

This adds a new window feature -- FEATURE_SWIPE_TO_DISMISS -- and a
theme attribute to activate that feature. When the feature is
activated, a SwipeDismissLayout is inflated as the DecorView layout.
SwipeDismissLayout intercepts touch events and steals ones that are
large swipes to the right if its children don't. PhoneWindow registers
handlers that listen for these swipe events, translate the window when
necessary, and finish the activity at the end of the gesture.

Change-Id: I512e758f3c3ffd3b353dba3b911c0e80a88d6f5f
nternal/widget/SwipeDismissLayout.java
88c908323a53bc217f860f811038725f668df454 09-Jan-2014 Christopher Tate <ctate@google.com> Update PackageMonitor to recognize new 'replacing' semantics

The ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE broadcast now uses the
EXTRA_REPLACING intent extra when it is sent as part of an upgrade operation
on a forward-locked application. Update PackageMonitor to recognize this
new information and express it appropriately to the observer.

Bug 11988313

Cherry-pick from master.

Change-Id: Iecea1876ffc918f23f9fa5845f1f89ed8d740dd5
nternal/content/PackageMonitor.java
77b987f1a1bb6028a871de01065b94c4cfff0b5c 27-Feb-2014 Dianne Hackborn <hackbod@google.com> Hold a wake lock while dispatching network activity events.

Also add new API for determining whether the current data network
is active, and thus better scheduling network operations. This
API is designed to not be tied to a mobile network -- regardless
of the network, apps can use it to determine whether they should
initiate activity or wait. On non-mobile networks, it simply always
reports as the network being active.

This changed involved reworking how the idle timers are done so
that we only register an idle timer with the current default
network. This way, we can know whether we currently expect to
get callbacks about the network being active, or should just always
report that it is active. (Ultimately we need to be getting this
radio active data from the radio itself.)

Change-Id: Iaf6cc91a960d7542a70b72f87a7db26d12c4ea8e
nternal/app/IBatteryStats.aidl
nternal/os/BatterySipper.java
nternal/os/BatteryStatsHelper.java
nternal/os/BatteryStatsImpl.java
7531aa22355cf03f51def61ba67f1636bf85f408 13-Jan-2014 Mike Lockwood <lockwood@google.com> Add support for USB devices with multiple configurations and alternate interfaces

Added UsbConfiguration class, as well as accessors to UsbDevice to get configuration list
Added methods to UsbDeviceConnection to select configurations and alternate interfaces.

Also added accessors for USB descriptor name strings and fixed some memory leaks in the JNI code.

Bug: 12425052
Change-Id: Idb990f4d5c054a8cb997eb3f440f6da9f83bce05
nternal/os/ZygoteInit.java
94b5ca811e5716bddb4a4d86df35c29bb9165e5f 27-Feb-2014 George Mount <mount@google.com> Merge "Change Activity Scene Transitions to be more automatic redo."
d45665bf0b26fddf5716a0fd43036848d9301960 26-Feb-2014 Dianne Hackborn <hackbod@google.com> Collect per-uid mobile radio usage.

We now compute radio active time per application, by distributing
the active time across all applications each time the radio goes
down, weighting it by the number of packets transferred.

Per-app radio power use is now computed using this radio active
time.

This also gives us a new metric "ms per packet", which give an
idea of how effectively an application is using the radio. This
is collected and reported as a new set of stats in the human-
readable checkin. (It can be computed from the raw checkin data).

Also improve sync reporting to include the sync source as used
in wake locks, not just the component name.

Change-Id: I0b0185fadd1e47ae749090ed36728ab78ac24c5e
nternal/os/BatterySipper.java
nternal/os/BatteryStatsHelper.java
nternal/os/BatteryStatsImpl.java
e180337ee99b9155fe441ea55451f4d2167b5d9a 26-Feb-2014 George Mount <mount@google.com> Change Activity Scene Transitions to be more automatic redo.

This reverts commit 206e30cd93afe3eb72ec94178324417db5424ed2
along with removing the additional startActivity* methods
and replaces them with ActivityOptions makeSceneTransitionAnimation
methods.

Change-Id: I52bec31ae3c4cea6d549810ae5a7acd8aea176d8
nternal/app/ActionBarImpl.java
206e30cd93afe3eb72ec94178324417db5424ed2 26-Feb-2014 George Mount <mount@google.com> Revert "Change Activity Scene Transitions to be more automatic."

This reverts commit f10587faadb9080a7bf9991cbe04bac5525da482.

Change-Id: I2785a3d2d6b667cad6d61dcbbc1c624161735fa4
nternal/app/ActionBarImpl.java
c900829c17156eba1d61d85e6e34ae8942cddc91 26-Feb-2014 Christopher Tate <ctate@google.com> Merge "Deal with apps known to LocalTransport backend but with no data"
a9b91864a1aedd71eaaaa43ee078cf93922289f3 26-Feb-2014 Christopher Tate <ctate@google.com> Deal with apps known to LocalTransport backend but with no data

An app might have backed something up and later deleted it, in which
case it will have a directory in the LocalTransport bookkeeping but
with no actual dataset. Skip these packages at restore time, since
we know a priori that there will be nothing to do.

Change-Id: I85853097bc65ed60e5efd217ee6553b50459e445
nternal/backup/LocalTransport.java
121e25dcf0d4da5c1c97fad2bd27dbd361db4153 26-Feb-2014 George Mount <mount@google.com> Merge "Change Activity Scene Transitions to be more automatic."
a1f1a3c573acd91024fda0ceb3b921c73b186963 25-Feb-2014 Dianne Hackborn <hackbod@google.com> More battery stats.

- Add events for sync.
- Add more descriptive tags for wake events.
- Fix battery reset.
- Fix tracking of wifi data.

Change-Id: Ic07f2a86a5ed33e7da57eb1108c31c777ecd801f
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
a77cf8735432daddb233164f41103a0ff38408bb 25-Feb-2014 John Spurlock <jspurlock@google.com> Merge "Tabs -> spaces in frameworks/base."
f10587faadb9080a7bf9991cbe04bac5525da482 06-Feb-2014 George Mount <mount@google.com> Change Activity Scene Transitions to be more automatic.

Shared element transitions are enabled by default
when the Window has a TransitionManager.

Shared element location and size are captured and
transferred to the target Activity.

ActionBar is treated as a shared element.

Change-Id: I0f22ea4e5cbe80254e848444e3f235cb742684f4
nternal/app/ActionBarImpl.java
8a985d24ce9a38f40ed88fecbdcd0e75e3a68f44 25-Feb-2014 John Spurlock <jspurlock@google.com> Tabs -> spaces in frameworks/base.

Change-Id: I5a84e8e93ac99b5ed0212b37bf66efa5e53864be
nternal/app/LocalePicker.java
fb7b50a0263e500a6a8d2bbd7366b06d1fc91fe3 25-Feb-2014 Dianne Hackborn <hackbod@google.com> Fix some issues with network usage in battery stats.

Change-Id: I8b354872511fcb55cecb2e09aada2eab41a1e202
nternal/os/BatteryStatsHelper.java
nternal/os/BatteryStatsImpl.java
d0c5b9abed60b7bc056d026bf0f2b2235410fb70 22-Feb-2014 Dianne Hackborn <hackbod@google.com> Improve how battery stats collects network stats.

This optimizes the path for battery stats to collect
per-uid network usage. It now collects wifi and mobile
usage separately, with a path that allows it to recycle
all data structures and filter out stats it isn't
interested in before they come back to java.

This is setting us up for the actual goal, to collect
mobile stats independently each time the mobile radio
goes down, allowing us to distribute mobile radio usage
across uids based on the number of packets they transferred
during a session.

Change-Id: I21a0f517cf087ea5aa8b8dd535e20b46e361a52b
nternal/net/NetworkStatsFactory.java
nternal/os/BatteryStatsImpl.java
b048c33d5bdaec747195dfedf971d4d9155f5000 21-Feb-2014 Christopher Tate <ctate@google.com> Don't assume that we're at start of file at ctor time

BackupDataReader / BackupDataWriter were implicitly assuming that when
instantiated, the underlying fd was positioned at start-of-file. If one
tried to e.g. open an existing data stream to append further data to it,
things might randomly fail (at read time, possibly when consuming the
stream later) due to incorrect alignment of the data entities: the
appending writer would assume that no padding was needed to achieve
correct alignment, and this might easily be false.

Now the underlying native reader/writer helpers recognize the true
position within the file when constructed, and as a result it's now
safe to e.g. construct a BackupDataOutput for an existing file and
then append to it.

Change-Id: If0484921e687852f923a4b4efabff573a6c16981
nternal/backup/LocalTransport.java
621e1e8493f1a7b0fb5d5390067663635ed24e8c 19-Feb-2014 Alan Viverette <alanv@google.com> Merge "Fix for reveal animated drawables"
7f610fed107b158c144dca1b20a44ee91eb8c934 19-Feb-2014 Alan Viverette <alanv@google.com> Fix for reveal animated drawables

Includes fixes for RevealDrawable clipping, touch feedback constant
state, and action bar background display lists.

BUG: 13065159
Change-Id: Ie4bf03f59da69047e18a8fe9233c3d24b0160576
nternal/widget/ActionBarContainer.java
a78068e7a3af53cc2b590902f74074d1781513da 19-Feb-2014 Adam Lesinski <adamlesinski@google.com> am 13c83996: am 1c532c2e: am 4b07b26e: Merge "Make UsbService optional" into klp-modular-dev

* commit '13c839962e246517a7a95326610ea30c529d79dc':
Make UsbService optional
1c532c2e2d8464ef7ddd0cc5914f3b1ab2dc49c2 19-Feb-2014 Adam Lesinski <adamlesinski@google.com> am 4b07b26e: Merge "Make UsbService optional" into klp-modular-dev

* commit '4b07b26e8654df52ca80bb2165ebdf9352ab9337':
Make UsbService optional
5314b3d593a04c67d12dc134e9e80aa41c8e7042 19-Feb-2014 Alan Viverette <alanv@google.com> Merge "Fix alert dialog's background when no custom panel visible"
b3f38c6398d7f493ee50656a8728acee2c0671f6 19-Feb-2014 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #13095629: Device is in restart mode for long time..."
00e2521d2a75c51585795e5c74b5857c543eb120 19-Feb-2014 Dianne Hackborn <hackbod@google.com> Fix issue #13095629: Device is in restart mode for long time...

...during taking OTA

Add some sanity checks.

Change-Id: I6bec1b8d8443c4b3c2a706635acf89c8e5051428
nternal/os/BatteryStatsImpl.java
c3cf19af8dd2b7bee834e1b1cc037d789b4356ce 19-Feb-2014 Alan Viverette <alanv@google.com> Fix alert dialog's background when no custom panel visible

Also some miscellaneous AlertController cleanup.

BUG: 13077576
Change-Id: I40f669f3a703a49fc53f482c2434b2993ed15326
nternal/app/AlertController.java
dfc60ec523674ac5c72fd88a23999e80b2dd72d1 19-Feb-2014 Dianne Hackborn <hackbod@google.com> Fix issue #13065185: Frequent runtime restarts on launching...

..."Hill Climb Racing" app

A service is in use when it is in the restarting state.

Change-Id: Ic92a6e7bcc24b01aeef5f97f994f105d5e11ea7f
nternal/app/ProcessStats.java
2cb6c60c0d2de3bc743c043aca963db6fe52662f 15-Feb-2014 Adam Lesinski <adamlesinski@google.com> Make UsbService optional

Tweaked the services Android.mk to build dependencies
when building with mm[m].

Change-Id: I6dad511c652bcacc085f27ede5f8f22a6982c6bd
erver/SystemService.java
erver/SystemServiceManager.java
ca1bf21c511dc7d513b631a1af8498b5b08d107a 14-Feb-2014 Dianne Hackborn <hackbod@google.com> Implement wifi part of issue #12973036: Improve power_profile.xml

Add battery stats tracking of wifi state.

Also update when we retrieve the current time to use a more
consistent value across stats tracking.

Change-Id: I6a7c3efd58ff2c8ea86dac141c8f848e7996d63f
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
0a18029075fbe5e5da396c66ef26cfa7e7f1a082 13-Feb-2014 Paul Lawrence <paullawrence@google.com> Clean up a few minor issues

Make public some constants, remove unused imports.

See https://googleplex-android-review.git.corp.google.com/#/c/412885/
for when these were introduced.

Change-Id: I90d0e33a411ebdd84c36e3d9afae70d2f2847538
nternal/widget/LockPatternUtils.java
a9f387bdf0a836de8bcb12a46a5cdfcb544fbb1a 14-Feb-2014 Paul Lawrence <paullawrence@google.com> Merge "Support default, pattern, pin and password encryption types"
28114904554c520b26a66eb40439c4c9490286d8 14-Feb-2014 Jeff Brown <jeffbrown@google.com> am f75aaf02: am ae254a8d: am 3048191b: Remove onCreate() method that should not be there.

* commit 'f75aaf0282531f8e8448bfb1cbdfb239f683ae8b':
Remove onCreate() method that should not be there.
ae254a8d716b0515c5c91359a690987dfe8d5e9d 14-Feb-2014 Jeff Brown <jeffbrown@google.com> am 3048191b: Remove onCreate() method that should not be there.

* commit '3048191b4cf9eff7a72b84065dec2b3dd1e89b3c':
Remove onCreate() method that should not be there.
3048191b4cf9eff7a72b84065dec2b3dd1e89b3c 14-Feb-2014 Jeff Brown <jeffbrown@google.com> Remove onCreate() method that should not be there.

Change-Id: I8355dd78f910afa9895d2fa00cb627a0885d9eec
erver/SystemService.java
d39ccd0ad9cb562b0093eaf78a5273b000c0aa7a 13-Feb-2014 Dianne Hackborn <hackbod@google.com> Merge "Start tracking radio up time."
e13c4c0b664dabdc069ca8f9601d96a337eb02f9 12-Feb-2014 Dianne Hackborn <hackbod@google.com> Start tracking radio up time.

We now always turn on network state tracking for mobile,
and push this information down to battery stats.

In battery stats we use this to both log the changes in
the history and keep track of the total time the mobile
radio was active.

Power computation is switched over to using this information
to help determine power use, which will hopefully make it
more accurate (not counting inaccuracies in knowing when it
actually goes down).

Note yet done is aggregating this data per-uid, to better
emphasize which apps are causing the radio to be up. Right
now we just spread the total time across all uids weighted
by the total number of packets they have sent and received.

Also put in the battery stats infrastructure for bluetooth to
address issue #12973036: Improve power_profile.xml

Change-Id: I39d11b7ff6ae4f336f253d1cba308d8569de7e0d
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsHelper.java
nternal/os/BatteryStatsImpl.java
8e39736f91a08961cf59c87075e61d9026833b50 28-Jan-2014 Paul Lawrence <paullawrence@google.com> Support default, pattern, pin and password encryption types

Java plumbing to expose methods to get/set encryption type in
IMountService, and hooking up of those methods to the Settings app
so the type is set correctly.

Needs matching vold changes from
https://googleplex-android-review.googlesource.com/#/c/412649/

Bug: 8769627
Change-Id: I70c0ed72d11f5ab6f0958a7f9c101b6822b13baa
nternal/widget/LockPatternUtils.java
2c7c0a8527d4ec7c28173ebe51dee684b12fbf3e 13-Feb-2014 Dave Platt <dplatt@google.com> am 5137fa03: am 34cc9f90: am 53c7608a: am a3c3533b: Merge "Finish fixing Zygote descriptor leakage problem"

* commit '5137fa03c3e416c6f68c36f3ec922621853609b1':
Finish fixing Zygote descriptor leakage problem
34cc9f9056e8736143e82891ccd01a85106a4518 13-Feb-2014 Dave Platt <dplatt@google.com> am 53c7608a: am a3c3533b: Merge "Finish fixing Zygote descriptor leakage problem"

* commit '53c7608aefb0ed754394e571cac02e96ad6fcdb3':
Finish fixing Zygote descriptor leakage problem
9d6376a1d88ab5b3a41ee4400e3aaa4c4ee69e2a 12-Feb-2014 Christopher Tate <ctate@google.com> Always call super.onCreate(). Always.

Bug 12991134

Change-Id: Ife16ef93408253e3318a06dc0206ab4b88c7f367
nternal/app/ChooserActivity.java
cab8617b8ccea3a99b1ee15e15915c512a10c738 11-Feb-2014 Jeff Brown <jeffbrown@google.com> am 25df673b: am 1b51c9cb: Merge "Make SystemService constructor take a Context." into klp-modular-dev

* commit '25df673b849de374cf1de40250dfd8a48b7ac28b':
Make SystemService constructor take a Context.
25df673b849de374cf1de40250dfd8a48b7ac28b 11-Feb-2014 Jeff Brown <jeffbrown@google.com> am 1b51c9cb: Merge "Make SystemService constructor take a Context." into klp-modular-dev

* commit '1b51c9cb96fe2a0818289857a016521eed1ec183':
Make SystemService constructor take a Context.
b880d880c6cd989eacc28c365fc9a41d31900da1 11-Feb-2014 Jeff Brown <jeffbrown@google.com> Make SystemService constructor take a Context.

This change simplifies the process of initializing a SystemService
by folding the onCreate() step back into the constructor. It removes
some ambuiguity about what work should happen in the constructor and
should make it possible for services to retain most of their final
fields after refactoring into the new pattern.

Change-Id: I25f41af0321bc01898658ab44b369f9c5d16800b
erver/SystemService.java
erver/SystemServiceManager.java
68ac5cef63a9fef595a0cd6b7d8f9170994672ad 07-Feb-2014 Dianne Hackborn <hackbod@google.com> Merge "Battery stats: more events, fixes."
eaf2ac464b1cd741d7d0fe700771b1b7c00ddb29 07-Feb-2014 Dianne Hackborn <hackbod@google.com> Battery stats: more events, fixes.

Add new history events for top application package and
foreground application packages.

Doing this involved a fair amount of improvement to history
events. The event code is now separated out to have "start"
and "finish" identifies, and we use that to now keep track
of which events are active. With that, when resetting the
stats, we can spit out all of the currently active events at
the front of the new history.

Also fixed some problems when I re-arranged the history delta
int bits that were conflicting with the packing of the battery
status bits. These packing structures are changed to work
together correctly.

Change-Id: Ic8b815060dd8a50ff4a0a209efc2e1044215cd88
nternal/os/BatteryStatsHelper.java
nternal/os/BatteryStatsImpl.java
6250c59e0d917fb3641ac499ca69b011aa50a4bd 06-Feb-2014 Adam Powell <adamp@google.com> Merge "Refactoring of fitSystemWindows to applyWindowInsets for views"
89d4c897a0e1bc06688bcb1fd39913ece81fe05f 06-Feb-2014 Dave Platt <dplatt@google.com> Finish fixing Zygote descriptor leakage problem

In order to prevent Zygote descriptors from leaking into the child
environment, they should be closed by the forked-off child process
before the child switches to the application UID. These changes close
the descriptors via dup2(), substituting a descriptor open to
/dev/null in their place; this allows the Zygote Java code to close
the FileDescriptor objects cleanly.

This is a multi-project change: dalvik, art, libcore, frameworks/base,
and external/sepolicy are affected. The CLs need to be approved
together, lest the build break or the software fail to boot.

Round 2: indent change

Bug: 12114500
Change-Id: I090402136a8a8b7d6aad6eb153026e85d7cf6ad3
nternal/os/ZygoteConnection.java
nternal/os/ZygoteInit.java
6eb0fdb99bc09210bea4df054a9c8a05daea3d1b 06-Feb-2014 Dianne Hackborn <hackbod@google.com> Merge "Improve logging of first wake lock, history size."
3d658bf20e2d56e36941e7407deebeec1276fbcf 05-Feb-2014 Dianne Hackborn <hackbod@google.com> Improve logging of first wake lock, history size.

We now try to have a better label for the first wake lock
that is acquired in the log. This is done in two ways:

- The alarm manager now sorts the alarms it is going to
execute so that wakeup alarms are first, which are more
important w.r.t. which one should be logged.
- There is a new power manager facility to make a wake lock
as "unimportant for logging," which just means in battery
stats that a wake lock acquired after that can be considered
the actual one to log. This is only used by the alarm manager
to mark its TIME_TICK alarms as unimportant for logging.

Also reworked the battery history code to be cleaner and a bit
smaller. There is no longer a separate EVENT command, instead
the event code and tag are just another thing that can be included
in an UPDATE command.

The bits used in the first history int are also re-arrange, so
that only the ones that really change a fair amount in the state
bits are up at the top and there is no longer space used for
the command code (since now it is always just UPDATE). This
allows us to have more room for the time delta at the bottom,
to better avoid situations where we need to write an int delta.

Change-Id: I1bb860ae5b558a248800b090b03a84fbf7acd68a
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
46e38fd9abe1af3ccb903a80ff89bc3faef4d3e3 03-Feb-2014 Adam Powell <adamp@google.com> Refactoring of fitSystemWindows to applyWindowInsets for views

Applying insets is now handled by:

* WindowInsets class - Encapsulate system insets and local decor
insets into a single object, written specifically so that new inset
categories may be added later. Apps cannot construct their own
WindowInsets, only clone with optional modifications. This is to
prevent losing data in the event of new insets added in the future.

* onApplyWindowInsets - Actually perform the application of insets.

* OnApplyWindowInsetsListener - Allow an app to use a separate
Listener object to apply insets to a View. This allows for things
like support lib integration in custom views written for older
versions where the verifier would otherwise complain about the use
of the new WindowInsets class as a method parameter. It also allows
for applying insets in a custom way without writing a custom view.

* dispatchApplyWindowInsets - Dispatch the call to self and children
in turn, if applicable. An OnApplyWindowInsetsListener will override
the behavior of the view's default onApplyWindowInsets method; a
listener wishing to call down to the 'superclass' implementation as
part of its own operation should call view.onApplyWindowInsets. App
code should generally not override this method and instead override
onApplyWindowInsets or provide a listener.

Compatibility support with the existing fitSystemWindows method has
been provided in both directions: for code that previously called
fitSystemWindows on arbitrary views and also for code that overrode
the fitSystemWindows method in custom views. A view that supports the
newer onApplyWindowInsets mechanism should not mix that behavior with
other calls to fitSystemWindows or vice versa. Support lib-style code
should take care to consistently use one mechanism or the other at
runtime.

Change-Id: Ie88b96e0382beb5d3c3f6cd013f7043acbc0a105
nternal/widget/ActionBarOverlayLayout.java
8eea3ea5591e59f55cbb4f6b2b7e9363a285ced3 04-Feb-2014 Alan Viverette <alanv@google.com> Add APIs for obtaining themed Drawable from Theme, Context

BUG: 12611005
Change-Id: Ic0057be4e4c2d0c61ce02a019b3f7d0625e3a016
nternal/app/ActionBarImpl.java
nternal/app/MediaRouteControllerDialog.java
nternal/view/menu/ActionMenuItem.java
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuItemImpl.java
nternal/widget/ActionBarView.java
nternal/widget/PasswordEntryKeyboard.java
nternal/widget/multiwaveview/GlowPadView.java
e8d916c04c3fb40667fbacb9b6fd1c775ce00b42 03-Feb-2014 Dianne Hackborn <hackbod@google.com> Merge "More battery history improvements."
71fc13eb583eecc677b177b8010538a08aebb43d 03-Feb-2014 Dianne Hackborn <hackbod@google.com> More battery history improvements.

- Better batching of history items. Fixed problems where empty
entries would be created because state toggles got lost.
- The string pool is now a HistoryTag pool, containing both a string
and uid; now an entry only requires 16 bits in the history data.
- Acquiring the first wake lock also now includes a HistoryTag
identifying who did the aquisition.
- Cleaned up printing of signal strengths and cell radio types.
- There was code that tried to allow you to add new history entries
while iterating the history... but these should never happen
together, so turned that into a failure... and fixed an issue
where we could leave the battery stats in a state where it
thinks it is continually iterating.

Change-Id: I1afa57ee2d66b186932c502dbdd633cdd4aed353
nternal/os/BatteryStatsImpl.java
dfd1aa4331b8ab452d7baf4fdf8cf0cd36c67ddd 31-Jan-2014 Narayan Kamath <narayan@google.com> resolved conflicts for merge of 2cd0563c to klp-modular-dev-plus-aosp

Change-Id: Ia28df1c1aa084959ed9289bfe90e7f6a4bffb8a2
fdb98d477047f6dfdbd9e94a7b326d35ad78c6c8 30-Jan-2014 Brian Carlstrom <bdc@google.com> frameworks/base: Rename persist.sys.dalvik.vm.lib to allow new default

(cherry picked from commit c6c633608ad4cd77ed21227b0bdb11eb79797c31)

Bug: 12798969
Change-Id: Ibb7ed86867e4dca53ad7fe33326b08e6f5e664c4
nternal/app/ProcessStats.java
c6c633608ad4cd77ed21227b0bdb11eb79797c31 30-Jan-2014 Brian Carlstrom <bdc@google.com> frameworks/base: Rename persist.sys.dalvik.vm.lib to allow new default

Bug: 12798969
Change-Id: Ibb7ed86867e4dca53ad7fe33326b08e6f5e664c4
nternal/app/ProcessStats.java
4d67c3a0702dbddf0c4e810e0fd545259c6f2049 29-Jan-2014 Dan Sandler <dsandler@android.com> Merge "Fix NPE in empty SizeAdaptiveLayouts."
4a4cfbe7d80256caea84e0f4bcf043178fd30d1c 28-Jan-2014 Dianne Hackborn <hackbod@google.com> Merge "Add "start time" timestamp to battery stats."
8b3e3ecc3d1a0ab45c02e7cb84bc7db856d21f1d 09-Jan-2014 Christopher Tate <ctate@google.com> Update PackageMonitor to recognize new 'replacing' semantics

The ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE broadcast now uses the
EXTRA_REPLACING intent extra when it is sent as part of an upgrade operation
on a forward-locked application. Update PackageMonitor to recognize this
new information and express it appropriately to the observer.

Bug 11988313

Change-Id: I34dfaa965dd322f4fa8945e7b83c9f2e8cf5269a
nternal/content/PackageMonitor.java
5f4a5f9536eb171bf21a9293198d90c9891e7205 25-Jan-2014 Dianne Hackborn <hackbod@google.com> Add "start time" timestamp to battery stats.

Change-Id: I902269b98b40b2421245bfd8971f34df5ff9214e
nternal/os/BatteryStatsImpl.java
c7088da5858969325c580989d74e0f00cb6e0be1 23-Jan-2014 Dan Sandler <dsandler@android.com> Fix NPE in empty SizeAdaptiveLayouts.

Change-Id: I8fa31a733d33d6deb04ad53a0772169277b363c8
nternal/widget/SizeAdaptiveLayout.java
8472e6189cd4e0520c047bdb28457abc728b373f 24-Jan-2014 Dianne Hackborn <hackbod@google.com> Add app version codes to procstats.

Now the per-package proc stats data is also per-app-version-code.

In addition to changing the data structure to have one more
SparseArray and passing a version code all over, this also required
improving how we reset the stats so that we can prune a multi-package
process record back to a single package. Otherwise, as you install
updates to apps, the proc stats data would continue to explode as
the data for each of those app's processes got turned to a
multi-package due to tracking the old and new versions at the
same time.

This also bumps the checkin version code, since the package entries
also include a new field for the app version code.

Change-Id: I80de36addb0a75c7b08aef747c6f6c8012d01ee4
nternal/app/ProcessStats.java
39e79006cf22f10eb62ac721238778aa6b7d3473 22-Jan-2014 Dianne Hackborn <hackbod@google.com> Merge "Battery stats improvements."
099bc627c463d9941e23e480f25a78a154429c55 22-Jan-2014 Dianne Hackborn <hackbod@google.com> Battery stats improvements.

- Adjust total power use when there is unaccounted power so that our
percentages don't end up > 100%.
- Fix accounting of isolated uids to be against the owning real app
uids.
- Rework how we put cpu use into the battery stats to no longer need
this uid name cache that can confuse the uid it is associated with.
- Finish implementing events in the history, adding a string pool and
reading/writing/dumping them.
- Add first two events: processes starting and finishing.
- Fix alarm manager reporting of wakeup alarms to be adjusted by the
WorkSource associated with the alarm, so they are blamed on the
correct app.
- New "--history" dump option allows you to perform a checkin of
only the history data.
- Fixed BitDescription bug that would cause incorrect printing of
changes in some states.

Change-Id: Ifbdd0740132ed178033851c58f165adc0d50f716
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsHelper.java
nternal/os/BatteryStatsImpl.java
509cc13b705f8c488774e7097ab17471c3dacd2e 18-Jan-2014 Jeff Brown <jeffbrown@google.com> am e2c9cd58: Merge "Refactor display manager service to new pattern." into klp-modular-dev

* commit 'e2c9cd583f4f706b48270b8cbe84df627c69af24':
Refactor display manager service to new pattern.
4ccb823a9f62e57f9d221f83a97e82967e79a9e5 17-Jan-2014 Jeff Brown <jeffbrown@google.com> Refactor display manager service to new pattern.

Transform DisplayManagerService into a SystemService and start cleaning
up other local services that it uses from window manager and input manager.

Clean up service thread initialization.

Remove unnecessary static variables from ActivityManagerService.

It's starting to become clear that we really need a better way to manage
service dependencies. Boot phases don't quite cut it.

Change-Id: If319dbd7cbfbd4812fe55ece969e818d4b20755b
erver/SystemService.java
520e705bf860f048836546a524db3b33af06a38a 17-Jan-2014 Dianne Hackborn <hackbod@google.com> Merge "Whoops, we were counting everything twice in the totals. :("
ae19a06e030e55b4db3cb20f1e564d49a78a395e 17-Jan-2014 Dianne Hackborn <hackbod@google.com> Whoops, we were counting everything twice in the totals. :(

Change-Id: Ia8a5adec4db7d692691b2d7e471c446f963a5c21
nternal/os/BatteryStatsHelper.java
09d30981f8e882ffaa336aa4665bfe348557895a 16-Jan-2014 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of 6f357d32 to master

Change-Id: I1979e6ed1acddbe656f5010114fd900f10865e75
6f357d3284a833cc50a990e14b39f389b8972254 16-Jan-2014 Jeff Brown <jeffbrown@google.com> Start untangling system server early bootstrapping.

Refactored SystemServer to get rid of a bunch of legacy cruft related
to how the ServerThread used to be started up.

Create system context first when system server starts. This removes
the tangled initialization order dependency that forced us to start
the activity manager service before most anything else.

Moved factory test related constants into the FactoryTest class.

Partially migrated Installer, ActivityManagerService, and
PowerManagerService to the new SystemService pattern. There's more
work to be done here, particularly around the lifecycle of the
power manager.

Bug: 12172368
Change-Id: Ia527dd56e3b3fd90f9eeb41289dbe044921230d4
nternal/os/BatteryStatsImpl.java
nternal/os/BinderInternal.java
erver/SystemServiceManager.java
a7c837f043c1ca0bdecd42645ba7da8c5717566d 16-Jan-2014 Dianne Hackborn <hackbod@google.com> Add battery power use reporting to batterystats service.

Move the BatteryStatsHelper class (which computes power use based
on the raw battery stats) out of the settings app and in to the
framework. It is now used by batterystats dump output to print
the computed power information from its current stats.

This involved a lot of refactoring of the BatteryStatsHelper code
to remove all of the UI dependencies. I also did a bunch of cleanup
in it, such as making all power computations be in terms of mAh.

Change-Id: I8ccf2c9789dc9ad34904917ef57050371a59dc28
nternal/os/BatterySipper.java
nternal/os/BatteryStatsHelper.java
nternal/os/BatteryStatsImpl.java
56110725f2a0b3f09703f2cbe9705d97609ee1e5 10-Jan-2014 Alan Viverette <alanv@google.com> Move drag-to-open handling into ActionMenuItemView

This prevents the menu item's OnClickListener from being overwritten,
allows the client to override item invocation, and prevents showing
multiple popups when items are re-initialized.

BUG: 11969895
BUG: 12489213
Change-Id: I97ca737810073df348171cdba5442f24a5527f89
nternal/view/menu/ActionMenuItemView.java
efc3bb06127a6640afe4985b2b2fc03c5ecc5dee 10-Jan-2014 Adam Powell <adamp@google.com> Fix a bug where OnTouchListeners in action views could be removed

ActionMenuPresenter should only replace the touch listener when binding
a generated item view.

Bug 12470259

Change-Id: I8c4c6110065605225a20cb7ed872255282085661
nternal/view/menu/ActionMenuPresenter.java
73415b0c7505010cdca73f2cbfd20da78bdb46ce 09-Jan-2014 Adrian Roos <roosa@google.com> Merge "Don't show incorrect pattern in stealth mode."
e2d71e45209a4ac0787b360c4b0eb4d617863f3f 09-Jan-2014 Adrian Roos <roosa@google.com> Don't show incorrect pattern in stealth mode.

Prevent the pattern keyguard from displaying an incorrect pattern when it is configured not to display patterns.

Bug: 11112503
Change-Id: I6defdcbea102e4f3e09193d61071cecc59ea3080
nternal/widget/LockPatternView.java
fa18d182a3f37505940e73ae6cd76c2e939f7f7c 08-Jan-2014 Adam Powell <adamp@google.com> Move ActionMenuView into android.widget and make it public

Expose ActionMenuView as a way for applications to present
ActionBar-style menus in other embedded or repeating contexts.

Change-Id: I54b7ccd9b2116ca68bc72956da9262bca9d5085f
nternal/view/menu/ActionMenuItemView.java
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/ActionMenuView.java
nternal/view/menu/MenuBuilder.java
nternal/widget/AbsActionBarView.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
dfc73e9c243092d395913737af622c89ad1830be 07-Jan-2014 Adam Lesinski <adamlesinski@google.com> am 66e9b1e1: Merge "Move SystemService code to frameworks/base/core" into klp-modular-dev

* commit '66e9b1e1178813037daf3798b8fe23467c4b91ab':
Move SystemService code to frameworks/base/core
66e9b1e1178813037daf3798b8fe23467c4b91ab 07-Jan-2014 Adam Lesinski <adamlesinski@google.com> Merge "Move SystemService code to frameworks/base/core" into klp-modular-dev
bd9acc2218fcf3cd6605554a45db2251753ddd7b 07-Jan-2014 Dave Platt <dplatt@google.com> am e966e577: am 02f042dd: Fix socket descriptor leak from Zygote to child app

* commit 'e966e5774ad8d478bc89b541bcac3740fe267d18':
Fix socket descriptor leak from Zygote to child app
98fcf484efbba3252174d6db1e21ba308a968c04 07-Jan-2014 Narayan Kamath <narayan@google.com> am d2098682: am 3f2843a4: am c47b7d37: am 9d4ebdca: am cf1aa551: Merge "XmlUtils#readThisMapXml should handle null keys."

* commit 'd2098682ab269d311dd482a38e8557df6717ee17':
XmlUtils#readThisMapXml should handle null keys.
02f042ddd9ddf47ef88c4f174eb19a9bee296a45 13-Dec-2013 Dave Platt <dplatt@google.com> Fix socket descriptor leak from Zygote to child app

Due to an API change in LocalSocket, Zygote must now
manually close the FileDescriptor it created when it
registered a LocalServerSocket. The LocalSocket.close()
routine will no longer do so.

Bug: 12114500

(cherry picked from commit 70ef29b04ee4ef7d7acfec79041dbe800961195e)

Change-Id: Ief23a3c99e007dc4aa6f94dfb47a1b2b6c854dad
nternal/os/ZygoteInit.java
f121921d9a8019a6e5fbcaf92edc411b4b8b68e0 06-Jan-2014 John Spurlock <jspurlock@google.com> Merge "Add rotation-lock to Quick Settings on phones."
f748257eee651b974e15274e03fe9843a8393073 18-Dec-2013 Narayan Kamath <narayan@google.com> XmlUtils#readThisMapXml should handle null keys.

Both readThisValueXml & writeThisValueXml have been
implemented to handle values with "null" names.

Change readThisMapXml to allow such names as well, and
map them to the null key in the resulting HashMap.
readThisListXml and readThisSetXml already support
null names.

bug: https://code.google.com/p/android/issues/detail?id=63463

Change-Id: I1c93976656e45e7733113eb67d29b6bad5d25f1f
nternal/util/XmlUtils.java
b102b2cc73baa20e8cc9e4c081235b031c4e8fe0 20-Dec-2013 Adam Lesinski <adamlesinski@google.com> Move SystemService code to frameworks/base/core

Paves the way for building services without needing to see the
rest of frameworks/base/services.

Change-Id: I8ac4bc9d25471e96076cd888c1fc24b918d8911f
erver/LocalServices.java
erver/SystemService.java
erver/SystemServiceManager.java
ca7a2576289f371acc28e39825a2fe05a587b29b 20-Dec-2013 Alan Viverette <alanv@google.com> Merge "Add APIs and implementation for additional caption edge types"
8ab172e8d9c2e926921bb52838c2322142fb3c65 19-Dec-2013 John Spurlock <jspurlock@google.com> Add rotation-lock to Quick Settings on phones.

Make the rotation-lock QS tile available for display on phones.

Devices < sw600dp are only allowed to lock rotation to their
natural orientation (i.e. portrait on most phones), so tweak
the QS tile label to make this clear. e.g. "Locked to Portrait"
instead of "Rotation Locked" on portrait phones.

Simplify RotationLockController now that the sw600 check is no
longer hardcoded in RotationPolicy.

Remove redundant sw600dp check in SystemUI, everything driven
from the RotationPolicy helper, though SystemUI can still
choose not to display the tile at all with a resource config.

Clean up some of the docs in RotationPolicy to make clear the
subtle distinction between the two ways of locking rotation:
- From Accessibility (locks to natural orientation on all devices)
- From System UI (locks to natural < sw600dp, else current rotation)

Bug:11062710

Change-Id: I5caa4485c9501315da9fed964d6667d3012b43cb
nternal/view/RotationPolicy.java
ce32ea7345f0157a595b1dd4306a9a65f444d7c2 19-Dec-2013 Alan Viverette <alanv@google.com> Add APIs and implementation for additional caption edge types

Change-Id: I62d97a0b3e3b751d698a889eec80dc79fb908d7a
nternal/widget/SubtitleView.java
57ed6a6440ff010494a03c6c68ce6dc0924b57d6 10-Dec-2013 Dianne Hackborn <hackbod@google.com> Improvements to battery stats.

Now collect per-network packet usage data.

Big reworking of history to be able to start adding more events to it.
Also rework how the checking dump is done to make it more compact, so
maybe we can start uploading it.

Change-Id: I2b29e049ebe073671d0dbe38324223cc2ec0d043
nternal/os/BatteryStatsImpl.java
6a0db5990187a71427029fb0fd64394e849aa057 14-Dec-2013 Kenny Root <kroot@google.com> resolved conflicts for merge of e0b14ea7 to master

Change-Id: Ie018d3e2eba1eb2d655c153880e1951b68c2bd51
e6585b32ea586743258a5457e2184ffc087f2d2f 13-Dec-2013 Kenny Root <kroot@google.com> Use java.util.Objects instead on internal API

Not needed since java.util.Objects implements all the needed
functionality.

Change-Id: Icd31d49a9801d1705427f028e9ac927d58e7d34c
nternal/util/Objects.java
70ef29b04ee4ef7d7acfec79041dbe800961195e 13-Dec-2013 Dave Platt <dplatt@google.com> Fix socket descriptor leak from Zygote to child app

Due to an API change in LocalSocket, Zygote must now
manually close the FileDescriptor it created when it
registered a LocalServerSocket. The LocalSocket.close()
routine will no longer do so.

Bug: 12114500
Change-Id: I8c9fb073924ac33d594bd3bd0eb11d3d1d402506
nternal/os/ZygoteInit.java
93f50a1a1865b4cd3f1dfcb45bc2a0cbede9229f 10-Dec-2013 Narayan Kamath <narayan@google.com> am 98f50502: am 57b94b34: am ca9ba160: am bea98dc2: Merge "Fix inconsistency in LoggingPrintStream."

* commit '98f50502ea9ed4bd32f2732dc9ded146fafd2005':
Fix inconsistency in LoggingPrintStream.
bea98dc245bad71eb3b5fd831218b3db1f75ee21 10-Dec-2013 Narayan Kamath <narayan@google.com> Merge "Fix inconsistency in LoggingPrintStream."
4598ea4e5e6b2accce5165a76f5e2d04ce46c74c 09-Dec-2013 Lorenzo Colitti <lorenzo@google.com> am 263c4788: am 30253d7a: am 2daa0c93: Merge "Add address flags and scope to LinkAddress."

* commit '263c4788dcf45f104f8668fd6621d1a7c39689b9':
Add address flags and scope to LinkAddress.
b0c7c914eb7ee6ac134beb69bddf2c4791cca410 09-Dec-2013 Narayan Kamath <narayan@google.com> Fix inconsistency in LoggingPrintStream.

LoggingPrintStream prints "null" for null strings from
print(String) but throws an NPE from println(String).

Fix this by delegating to the underlying builder (and avoiding
the "fast" path when the input String == null)

bug: https://code.google.com/p/android/issues/detail?id=63380
Change-Id: I89c5c12db6ed5af8037d46f67369b38c5b4cbc9f
nternal/os/LoggingPrintStream.java
2daa0c93c4a0a9d18f4ef4486369fb8c90cd1ea2 07-Dec-2013 Lorenzo Colitti <lorenzo@google.com> Merge "Add address flags and scope to LinkAddress."
64483947fdb03bf838e317ac0a4af5e0f53a5bbf 15-Nov-2013 Lorenzo Colitti <lorenzo@google.com> Add address flags and scope to LinkAddress.

This is necessary so that the framework can know whether an IPv6
address is likely to be usable (i.e., if it's global scope and
preferred). Also, it will simplify the address notification
methods in INetworkManagementEventObserver, which currently take
the address, the flags, and the scope as separate arguments.

1. Add flags and scope to the class and update the unit test.
Use the IFA_F_* and RT_SCOPE_* constants defined by libcore.
Since most callers don't know about flags and scope, provide
constructors that default the flags to zero and determine the
scope from the address. Addresses notified by the kernel will
have these properly set. Make multicast addresses invalid.
Update the class documentation.
2. Provide an isSameAddressAs() method that compares only the
address and prefix information between two LinkAddress
objects. This is necessary because an interface can't have
two addresses with the same address/prefix but different
flags.
3. Update LinkProperties's addLinkAddress and removeLinkAddress
to identify existing addresses to add/remove using
isSameAddressAs instead of implicit equals(). Specifically:
- If addLinkAddress is called with an address that is already
present, the existing address's flags and scope are updated.
This allows, for example, an address on an interface to go
from preferred to deprecated when it expires, without it
having to be removed and re-added.
- If removeLinkAddress is called with an address that is
present but with different flags, it deletes that address
instead of failing to find a match.
4. Update the INetworkManagementEventObserver address
notification methods to take just a LinkAddress instead of
LinkAddress, flags, and scope. While I'm at it, change the
order of the arguments for consistency with the other
functions in the interface.

Change-Id: Id8fe0f09a7e8f6bee1ea3b52102178b689a9336e
erver/net/BaseNetworkObserver.java
ebcb32f58a6220802ca129ea33f47b4b69931a10 05-Dec-2013 The Android Open Source Project <initial-contribution@android.com> Merge commit 'bac61807d3bcfff957b358cb9ad77850bd373689' into HEAD

Change-Id: I29374270c8e0c2f2859efaf1d55af9f73da0f8d7
a812ab8786444b6cb3e1169a3f8b3959fb295e61 05-Dec-2013 Alan Viverette <alanv@google.com> Merge "Allow alert dialogs to inflate custom view layouts"
ec186706df72fbb62bfe813d83cff9167dd95cb4 05-Dec-2013 Alan Viverette <alanv@google.com> Allow alert dialogs to inflate custom view layouts

Adds APIs to set a layout resource ID as an AlertDialog's custom view. To
make this useful for developers, also ensures that Dialog content is set
up when calls are made to Dialog.findViewById() before show().

BUG: 11136748
Change-Id: I29747a28d7e30f4e31fe474424109ff29e1eaa98
nternal/app/AlertController.java
0cf13701d69c79ccd4011472e5c58bf9b4a24726 29-Nov-2013 Kenny Guy <kennyguy@google.com> Fix setLong so it actualy uses userHandle passed in.

Change-Id: Iddcd02b25890cf0a8d5569699b53e97b8640000d
nternal/widget/LockPatternUtils.java
c3c4d36df01631883a79163da841ca222497c9d3 04-Dec-2013 Adam Powell <adamp@google.com> Merge "Fix a bug in submenu presenter priority handling"
c0cc68053e5013c207be6f64ffd2ad9e8c467def 04-Dec-2013 Adam Powell <adamp@google.com> Fix a bug in submenu presenter priority handling

Now that overflow menus and the PhoneWindow-level ListMenuPresenter
can coexist, make sure that ListMenuPresenter handles submenus spawned
by itself. Introduce an internal API for menus to prefer a specific
presenter when performing item actions.

Bug 11979407

Change-Id: Id0b8fcbb8b310cbb3a63a1e5ea7a89de5d53f86f
nternal/view/menu/ListMenuPresenter.java
nternal/view/menu/MenuBuilder.java
317d15c15531b353aa3e8cb1a3ba03d98b71efb6 02-Dec-2013 Lorenzo Colitti <lorenzo@google.com> am 4806fdfb: am f226bc60: Merge "Use LinkAddress in address notifications."

* commit '4806fdfbd0fecf91584396fc0f620c97a05ab837':
Use LinkAddress in address notifications.
4806fdfbd0fecf91584396fc0f620c97a05ab837 27-Nov-2013 Lorenzo Colitti <lorenzo@google.com> am f226bc60: Merge "Use LinkAddress in address notifications."

* commit 'f226bc606af9ce5aceff6b05fc4b0200c94cb248':
Use LinkAddress in address notifications.
c1c23780339c35ab2d88c905d91e290050b35435 26-Nov-2013 Lorenzo Colitti <lorenzo@google.com> am 9d4ac970: Merge "Pass DNS server info notifications to observers."

* commit '9d4ac9703657142b190d3c256de7c3329e5a4b29':
Pass DNS server info notifications to observers.
5ad421a3d00c92c155d57af9d1a05d81cc2fa88f 17-Nov-2013 Lorenzo Colitti <lorenzo@google.com> Use LinkAddress in address notifications.

Currently address{Updated,Removed} pass in the address as a
string such as "fe80::1/64". Use LinkAddresses instead, since
that's what it is.

This makes the code more robust in the unlikely case that netd
passes in an invalid string. In the future we can move flags and
scope into the LinkAddress itself and simplify the code further.

Bug: 9180552
Change-Id: I66599f9529cf421caa7676fdd0141bb110b8589e
erver/net/BaseNetworkObserver.java
5ae4a531cc31be2868f65c40e8636658f1ae2f06 31-Oct-2013 Lorenzo Colitti <lorenzo@google.com> Pass DNS server info notifications to observers.

These are sent if the device receives IPv6 Router Advertisements
with DNS server configuration options. Currently, nothing listens
to them; in a future change we will use them as IPv6 DNS servers.

[Cherry-pick of 416740ad4d9132005a71dc0883334e852235a18a]

Bug: 9180552
Change-Id: I05000c0cd3867a68ab390102e8470b6912a9d3aa
erver/net/BaseNetworkObserver.java
dbccd44a638ae8705a5b14bff8b2dd74abc26045 22-Nov-2013 The Android Open Source Project <initial-contribution@android.com> Merge commit 'b873a17ce7be0a9771c24999adca6964431728f6' into HEAD

Change-Id: I938755073e70602cc8f51ce9bd420fdcf870cecd
ec9830e769971f410fff406e2a565b4b3c99af56 22-Nov-2013 Lorenzo Colitti <lorenzo@google.com> Merge "Pass DNS server info notifications to observers."
6090995951c6e2e4dcf38102f01793f8a94166e1 19-Nov-2013 John Spurlock <jspurlock@google.com> Remove unused imports from frameworks/base.

Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
nternal/app/ActionBarImpl.java
nternal/app/HeavyWeightSwitcherActivity.java
nternal/app/MediaRouteChooserDialogFragment.java
nternal/app/PlatLogoActivity.java
nternal/backup/LocalTransport.java
nternal/content/PackageMonitor.java
nternal/net/VpnConfig.java
nternal/os/BinderInternal.java
nternal/os/WrapperInit.java
nternal/view/ActionBarPolicy.java
nternal/view/RotationPolicy.java
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/ListMenuPresenter.java
nternal/view/menu/MenuPopupHelper.java
nternal/widget/ActionBarContainer.java
nternal/widget/ActionBarContextView.java
nternal/widget/FaceUnlockView.java
nternal/widget/LockPatternUtils.java
nternal/widget/PasswordEntryKeyboard.java
nternal/widget/PasswordEntryKeyboardHelper.java
nternal/widget/RotarySelector.java
nternal/widget/ScrollingTabContainerView.java
nternal/widget/SubtitleView.java
nternal/widget/TextProgressBar.java
nternal/widget/WaveView.java
nternal/widget/multiwaveview/TargetDrawable.java
416740ad4d9132005a71dc0883334e852235a18a 31-Oct-2013 Lorenzo Colitti <lorenzo@google.com> Pass DNS server info notifications to observers.

These are sent if the device receives IPv6 Router Advertisements
with DNS server configuration options. Currently, nothing listens
to them; in a future change we will use them as IPv6 DNS servers.

Bug: 9180552
Change-Id: I05000c0cd3867a68ab390102e8470b6912a9d3aa
erver/net/BaseNetworkObserver.java
84e0747552cfaa0546822df221e3dece7481c4b1 15-Nov-2013 Christopher Tate <ctate@google.com> am 461febad: am 64397749: am 22010817: Merge "Handle backup transport registration dynamically" into klp-dev

* commit '461febadc44190bf19e870a0bc1a706ec3667212':
Handle backup transport registration dynamically
461febadc44190bf19e870a0bc1a706ec3667212 15-Nov-2013 Christopher Tate <ctate@google.com> am 64397749: am 22010817: Merge "Handle backup transport registration dynamically" into klp-dev

* commit '64397749effa088dcea3799fc8440845c5a1c193':
Handle backup transport registration dynamically
22010817b90f97756a76777fcd1dbe7e3b63e808 15-Nov-2013 Christopher Tate <ctate@google.com> Merge "Handle backup transport registration dynamically" into klp-dev
cefba58d14f9669b57c16b4ea493779d882c43bd 15-Nov-2013 Christopher Tate <ctate@google.com> Handle backup transport registration dynamically

Bug 11369873

Change-Id: I9bbdcc21ce25159c6645690123b5d03c553b0ddc
nternal/backup/IBackupTransport.aidl
nternal/backup/LocalTransport.java
nternal/backup/LocalTransportService.java
1aebcb9b934df59c6722212f5641285f5b80801b 15-Nov-2013 Jeff Brown <jeffbrown@google.com> am d2169447: am 2bced6dc: am a7a46a66: Merge "Update cast screen strings." into klp-dev

* commit 'd21694476563e9a6efc833b78a141e9de2bb35d3':
Update cast screen strings.
d21694476563e9a6efc833b78a141e9de2bb35d3 15-Nov-2013 Jeff Brown <jeffbrown@google.com> am 2bced6dc: am a7a46a66: Merge "Update cast screen strings." into klp-dev

* commit '2bced6dcb53c1743d6d11ffcb213206a07a63737':
Update cast screen strings.
cef34fce3c925f8db20bb4d3791415bcf150ed78 15-Nov-2013 Jeff Brown <jeffbrown@google.com> Update cast screen strings.

Bug: 11257292
Change-Id: Ia66152985bafcdd8ec88a3145623536a2b439b78
nternal/app/MediaRouteChooserDialog.java
34ccdf2d947be86e69db3bda1483626f7bd0517e 13-Nov-2013 Adam Powell <adamp@google.com> am c991bf90: am 086370c9: am 2229ca03: Fix an action bar accessibility regression

* commit 'c991bf90bbdd01b746d70f2f045d19cabe19d690':
Fix an action bar accessibility regression
c991bf90bbdd01b746d70f2f045d19cabe19d690 13-Nov-2013 Adam Powell <adamp@google.com> am 086370c9: am 2229ca03: Fix an action bar accessibility regression

* commit '086370c971054ef5a59866df6a1d83559583323f':
Fix an action bar accessibility regression
2229ca031a326491feea5832e5337e9f8a602dca 13-Nov-2013 Adam Powell <adamp@google.com> Fix an action bar accessibility regression

A previous fix introduced a problem with building content descriptions
for accessibility of the home/up button in one code path while setting
display options flags. Correct the issue and also refresh content
descriptions immediately when setting related attributes one at a
time.

Bug 11542264

Change-Id: I40d07036d1026e8e40c77c47ac377c82edd827b4
nternal/widget/ActionBarView.java
12c39dd50c4063ef06b06cf26071665ca60aaac6 12-Nov-2013 Jeff Brown <jeffbrown@google.com> am 9ffc4a65: am 854395ad: am c481a634: Merge "UI tweaks." into klp-dev

* commit '9ffc4a65e51ae8695be0531c6fae0d33301ded60':
UI tweaks.
9ffc4a65e51ae8695be0531c6fae0d33301ded60 12-Nov-2013 Jeff Brown <jeffbrown@google.com> am 854395ad: am c481a634: Merge "UI tweaks." into klp-dev

* commit '854395add8ceaa2b80a14e063567f1292eb91c4d':
UI tweaks.
39ad0e559896b45185429ea17cd12f18f7ae842c 12-Nov-2013 Jeff Brown <jeffbrown@google.com> UI tweaks.

Hide disabled routes from the chooser.

Fix layout of chooser dialog when the settings button is visible and
the list is very long to prevent truncation of the settings button.

Fix an issue when we fake the route connecting status when a route
is selected. The route changed notification needs to be propagated
to apps. Fake it better.

Immediately disconnect from a route when the connection is lost or
a connection attempt fails. Added a few new test displays for this
case.

Bug: 11257292
Change-Id: I360ab5dc937ad60d97592eab54b19f034519645e
nternal/app/MediaRouteChooserDialog.java
b530aeb0feab5d371684ee8040b2f11e654ae4df 12-Nov-2013 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of f0b9ee96 to master

Change-Id: I1b347e895049474e11076c60074dc5918cfe1405
f0b9ee9637db1ebf2ef6f056a10c05ee5400de8b 11-Nov-2013 Jeff Brown <jeffbrown@google.com> am 5773f724: am dd4f9e8b: Merge "Update the media router dialogs and integrate into system UI." into klp-dev

* commit '5773f72457246e437c24624cda8ec2a869165ee8':
Update the media router dialogs and integrate into system UI.
0abd3a6ce83ed23abe614155e776b600ef2a66c3 10-Nov-2013 Jeff Brown <jeffbrown@google.com> Update the media router dialogs and integrate into system UI.

Port the new style UI back into the framework from the support library.
There are now two dialogs: a chooser and a controller. We use the
same dialogs for selecting routes within app and within quick settings.

Note that the new UI does not support any grouping features since they
are deprecated and unused.

Bug: 11257292
Change-Id: I64e936a18d25ab75f0c470cbc1e7085f67004863
nternal/app/MediaRouteChooserDialog.java
nternal/app/MediaRouteChooserDialogFragment.java
nternal/app/MediaRouteControllerDialog.java
nternal/app/MediaRouteControllerDialogFragment.java
nternal/app/MediaRouteDialogPresenter.java
nternal/view/CheckableLinearLayout.java
5f31a4bd9095f18a3c741a94258e116a7a01248c 09-Nov-2013 Michael Wright <michaelwr@google.com> Merge "Remove unnecessary input event indirection"
443e3a209ce0b323fb5165cfe091ffed5c13d565 08-Nov-2013 Elliott Hughes <enh@google.com> am 5c1aa4ef: am ede7f9d3: am 9e71310d: Merge "Remove incorrect (and unused) capget code."

* commit '5c1aa4efa9568d38cd2e8756a274bb30ddd590ba':
Remove incorrect (and unused) capget code.
5c1aa4efa9568d38cd2e8756a274bb30ddd590ba 08-Nov-2013 Elliott Hughes <enh@google.com> am ede7f9d3: am 9e71310d: Merge "Remove incorrect (and unused) capget code."

* commit 'ede7f9d3a39d87f12d58df495f28108784e9b588':
Remove incorrect (and unused) capget code.
ede7f9d3a39d87f12d58df495f28108784e9b588 08-Nov-2013 Elliott Hughes <enh@google.com> am 9e71310d: Merge "Remove incorrect (and unused) capget code."

* commit '9e71310d15d9dfcbf5e1c94948e0260f3dc3e678':
Remove incorrect (and unused) capget code.
42a4bb5730266f80585e67262c73505d0bfffbf8 08-Nov-2013 Elliott Hughes <enh@google.com> Remove incorrect (and unused) capget code.

Note that if you revert this change, the code it removes is incorrect,
and doesn't handle the top 32 bits of capabilities, one of which we're
already using: CAP_BLOCK_SUSPEND.

Bug: 11508244
Change-Id: Ice1f51334bce4941c6d24d6016450a2ebcf92886
nternal/os/ZygoteConnection.java
nternal/os/ZygoteInit.java
c9c487e6d6e9cf91e8ad30958ddf361158815cab 08-Nov-2013 Michael Wright <michaelwr@google.com> Remove unnecessary input event indirection

Rather than have a class whose sole job is to pass messages to
PointerLocationView, just have it consume them itself.

Change-Id: I889ce35d99852f746499c0585dc7c43378b4c3a0
nternal/widget/PointerLocationView.java
7da5bbedc75d7143d5b2cf36c4876f7b09a88807 08-Nov-2013 Jeff Brown <jeffbrown@google.com> am c2b652fd: am 5182ea4b: am d40a4d74: Merge "Add media router service and integrate with remote displays." into klp-dev

* commit 'c2b652fd4d386b79dc99af249b6ad3844e53fdf1':
Add media router service and integrate with remote displays.
c2b652fd4d386b79dc99af249b6ad3844e53fdf1 08-Nov-2013 Jeff Brown <jeffbrown@google.com> am 5182ea4b: am d40a4d74: Merge "Add media router service and integrate with remote displays." into klp-dev

* commit '5182ea4bb20ec8fbe9562d0eaae8135d433ea0b6':
Add media router service and integrate with remote displays.
d40a4d74c623175c96a2e9d865a99826e56d1132 08-Nov-2013 Jeff Brown <jeffbrown@google.com> Merge "Add media router service and integrate with remote displays." into klp-dev
d528d48e5d8444de0730d62b9f621b9cc2df5fbd 08-Nov-2013 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of c3eef190 to master

Change-Id: I36fd3c7fcbb13e47e27ffc340484c03b5a553bb1
c3eef19047b897bfb6e3cf42220d5146b187c66e 07-Nov-2013 Robert Greenwalt <rgreenwalt@google.com> am f1612bcf: am e8c51298: Merge "Add BatteryStats for Wifi Batched Scanning." into klp-dev

* commit 'f1612bcfdd2cb517948f14369fd0977ceb55d19c':
Add BatteryStats for Wifi Batched Scanning.
e8c51298a43f607fea7418ced7cc783e6065fe87 07-Nov-2013 Robert Greenwalt <rgreenwalt@google.com> Merge "Add BatteryStats for Wifi Batched Scanning." into klp-dev
c0b53515550f0100a11ac332d253bf9b76982c02 07-Nov-2013 Dianne Hackborn <hackbod@google.com> am 03be79b3: am fbf4888d: am 9882d388: Merge "Fix issue #11223338: Not retaining service started state while restarting" into klp-dev

* commit '03be79b35ca7060f383075a43ff19c8a9d63a7c0':
Fix issue #11223338: Not retaining service started state while restarting
03be79b35ca7060f383075a43ff19c8a9d63a7c0 07-Nov-2013 Dianne Hackborn <hackbod@google.com> am fbf4888d: am 9882d388: Merge "Fix issue #11223338: Not retaining service started state while restarting" into klp-dev

* commit 'fbf4888d19b0c68d8004f9ad2423a583dc01178e':
Fix issue #11223338: Not retaining service started state while restarting
9882d3889957200c3db62f47142988dea99a7291 07-Nov-2013 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #11223338: Not retaining service started state while restarting" into klp-dev
69b07161bebdb2c726e3a826c2268866f1a94517 07-Nov-2013 Jeff Brown <jeffbrown@google.com> Add media router service and integrate with remote displays.

This change adds a new media router service whose purpose is to track
global state information associated with media routes. This service
publishes routes to the media router instance in application processes
and handles requested state changes such as selecting or unselecting
global routes. The service also binds to remote display provider
services which can offer new remote display routes to the system.

Includes a test application for manually verifying certain aspects
of the operation of the media router service.

The remote display provider interface is essentially a stripped down
media route provider interface as defined in the support library
media router implementation. For now, it is designed to be used only
by first parties to publish remote display routes to the system so
it is not exposed as public API in the SDK. In the future, the remote
display provider interface will most likely be deprecated and replaced
with a more featureful media route provider interface for third
party integration, similar to what is in the support library today.

Further patch sets integrate these new capabilities into the System UI
and Settings for connecting remote displays.

Bug: 11257292
Change-Id: I31109f23f17b474d17534d0f5f4503e388b081c2
nternal/app/MediaRouteChooserDialogFragment.java
a029ea131836725b050e1a7550aa171b68171522 26-Sep-2013 Robert Greenwalt <rgreenwalt@google.com> Add BatteryStats for Wifi Batched Scanning.

bug:10690989
Change-Id: Ia39b715ee6d5733970095bc76de0ed40ff8208c0
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
nternal/os/PowerProfile.java
daa0d5c9296515fe05cae65926a66dee609f382a 07-Nov-2013 Dianne Hackborn <hackbod@google.com> Fix issue #11223338: Not retaining service started state while restarting

When I cleaned up how we maintained the lifecycle of the tracker with a
service, I broke most tracking of the service restart state. (Since at
that point the service is no longer associated with a process, so I
must clean up the tracker state). This change introduces a new special
case for interacting with a service tracker to explicitly tell it when
a service is being restarted. It also fixes how we update the process
state when services are attached to it, so it goes in and out of the
restarting state correctly.

In addition:

- Maybe fix issue #11224000 (APR: Dependent processes not getting added
to LRU list). We were not clearing ServiceRecord.app when bringing
down a service, so if for some reason there were still connections to
it at that point (which could happen for example for non-create bindings),
then we would so it when updating the LRU state of that client process.
- dumpsys procstats's package argument can now be a package or process
name, and we will dump all relevent information we can find about that
name.
- Generally improved the quality of the dumpsys procstats output with its
various options.
- Fixed a bug in ActivityManager.dumpPackageState() where it would hang if
the service was dumping too much, added meminfo to the set of things
dumped, and tweaked command line options to include more data.
- Added some more cleaning code to ActiveServices.killServices() to make
sure we clean out any restarting ServiceRecord entries when a process is
being force stopped.
- Re-arranged ActiveServices.killServices() to do the main killing of the
service first, to avoid some wtf() calls that could happen when removing
connections.

Bug: 11223338
Bug: 11224000

Change-Id: I5db28561c2c78aa43561e52256ff92c02311c56f
nternal/app/ProcessStats.java
09e0244f72c6ed61ee205fa85e29e821d4c72b42 06-Nov-2013 Patrick Tjin <pattjin@google.com> am b4328566: am 5eecb9e8: am bd9513f3: Merge "Add HSPA+ to BatteryStats" into klp-dev

* commit 'b4328566fa415b69974a9721ec690a1b74880873':
Add HSPA+ to BatteryStats
b4328566fa415b69974a9721ec690a1b74880873 06-Nov-2013 Patrick Tjin <pattjin@google.com> am 5eecb9e8: am bd9513f3: Merge "Add HSPA+ to BatteryStats" into klp-dev

* commit '5eecb9e8d44b3864a3261a3c5ebfbb9c606e77f5':
Add HSPA+ to BatteryStats
b71703cfdfbac35a6e5afaa437d073cf835c25db 06-Nov-2013 Patrick Tjin <pattjin@google.com> Add HSPA+ to BatteryStats

HSPA+ was being shown as connection type other in battery
statistics because it was not updated when TelephonyManager
was changed.

Bug: 11552902
Change-Id: I85ce7c393bf93010a4ac8437f14684015ad0391a
nternal/os/BatteryStatsImpl.java
c0b2d860effef8b2c80594855e8634fe8ed1ce74 05-Nov-2013 Brian Carlstrom <bdc@google.com> am 01ac9531: Merge "Treat UnsatisfiedLinkError as non-fatal"

* commit '01ac953180d2ec2a020e1fc82bba8218c0aa4555':
Treat UnsatisfiedLinkError as non-fatal
6f1a44f3de8ae64f6df6ae1984f56396e588f6d5 05-Nov-2013 Brian Carlstrom <bdc@google.com> am 5f4a8948: am c8b01295: am 60999fcb: Merge "Treat UnsatisfiedLinkError as non-fatal" into klp-dev

* commit '5f4a89480a6f5d3eb6ec7f7979f6555ae083c25f':
Treat UnsatisfiedLinkError as non-fatal
307182870ddbfc32ab3b18e697ab85c8e88a4fe5 05-Nov-2013 Adam Powell <adamp@google.com> am a20bfd96: am fe803958: am 1262d0c8: Merge "Fix action menu visibility callbacks for nested popups" into klp-dev

* commit 'a20bfd96bae95bd54b20ebd184655d7211cedcb4':
Fix action menu visibility callbacks for nested popups
ccb5b6de00d97f6ee8c7c93210c44a6e74a788df 05-Nov-2013 Adam Powell <adamp@google.com> am b688a0c9: am 9382a071: am b611eb94: Merge "Fix incorrect content description on action bar home/up" into klp-dev

* commit 'b688a0c9ac41fc5edc2fdbb515f1eda4869989c2':
Fix incorrect content description on action bar home/up
6a429f56042f9e6be61e18cb9620444b79dc9b4c 05-Nov-2013 Brian Carlstrom <bdc@google.com> am 94edb339: am 10193b78: am a51052d1: Merge "Move set of persist.sys.dalvik.vm.lib to SystemServer only" into klp-dev

* commit '94edb3390970c302be926b42e0f8a8da0d5d5960':
Move set of persist.sys.dalvik.vm.lib to SystemServer only
5f4a89480a6f5d3eb6ec7f7979f6555ae083c25f 05-Nov-2013 Brian Carlstrom <bdc@google.com> am c8b01295: am 60999fcb: Merge "Treat UnsatisfiedLinkError as non-fatal" into klp-dev

* commit 'c8b01295bc5dcfcd2d9559f366e175db086eae37':
Treat UnsatisfiedLinkError as non-fatal
a20bfd96bae95bd54b20ebd184655d7211cedcb4 05-Nov-2013 Adam Powell <adamp@google.com> am fe803958: am 1262d0c8: Merge "Fix action menu visibility callbacks for nested popups" into klp-dev

* commit 'fe803958d8c38fa865116912cff95c436d6db4e2':
Fix action menu visibility callbacks for nested popups
b688a0c9ac41fc5edc2fdbb515f1eda4869989c2 05-Nov-2013 Adam Powell <adamp@google.com> am 9382a071: am b611eb94: Merge "Fix incorrect content description on action bar home/up" into klp-dev

* commit '9382a071612231ee355128f71efb5877550074d9':
Fix incorrect content description on action bar home/up
94edb3390970c302be926b42e0f8a8da0d5d5960 05-Nov-2013 Brian Carlstrom <bdc@google.com> am 10193b78: am a51052d1: Merge "Move set of persist.sys.dalvik.vm.lib to SystemServer only" into klp-dev

* commit '10193b78b87a18e5fee7faa4890a01946934000c':
Move set of persist.sys.dalvik.vm.lib to SystemServer only
ad13bd5c0d83dd87599dbca11b93cd1ea413006d 04-Nov-2013 Brian Carlstrom <bdc@google.com> Treat UnsatisfiedLinkError as non-fatal

Bug: 11466297

(cherry picked from commit e92f19e58caa05f5f4086d12a6396116ce6182aa)

Change-Id: I449474078b9f465f1da26a27bf96f9c35d2bb2fc
nternal/os/ZygoteInit.java
60999fcb2ed251ec4e24eccf94b66e35b851b415 04-Nov-2013 Brian Carlstrom <bdc@google.com> Merge "Treat UnsatisfiedLinkError as non-fatal" into klp-dev
1262d0c864acd9b5cb87767e11de6bdf1cbf2f39 04-Nov-2013 Adam Powell <adamp@google.com> Merge "Fix action menu visibility callbacks for nested popups" into klp-dev
e92f19e58caa05f5f4086d12a6396116ce6182aa 04-Nov-2013 Brian Carlstrom <bdc@google.com> Treat UnsatisfiedLinkError as non-fatal

Bug: 11466297
Change-Id: I12be43564da37290b3ee52b1858e44f2229711d9
nternal/os/ZygoteInit.java
b411b32861e7794a59fa7558dbe9d97407eccf23 02-Nov-2013 Adam Powell <adamp@google.com> Fix action menu visibility callbacks for nested popups

When opening a submenu from a popup in ActionMenuPresenter, delegate
the submenu callbacks to the presenter callback registered on the
ActionMenuPresenter. This allows menu visibility callbacks to
propagate properly so that apps that hide their action bars after a
timeout can detect open menus that are deeply nested.

Bug 11429613

Change-Id: I3332886f08d4f9010f0875057c457566301d12ec
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/BaseMenuPresenter.java
f37a5139db360095fc0ce9080efd4c375751b296 02-Nov-2013 Adam Powell <adamp@google.com> Fix incorrect content description on action bar home/up

Some stray code from a previous change caused an erroneous content
description to be set on the wrong view in the action bar. Correct
this and sync with the right behavior.

Bug 10969992

Change-Id: I4deaa3528b4bc222e25354679fa93f8316fa2d70
nternal/widget/ActionBarView.java
5637ffced9d0b804f43db0915b2d0f39af2835c0 01-Nov-2013 Brian Carlstrom <bdc@google.com> Move set of persist.sys.dalvik.vm.lib to SystemServer only

Bug: 11463182
Bug: 11479647
Change-Id: I38efdecdd65fe3efc9c33b4dc204a64543ae6377
nternal/os/RuntimeInit.java
3472338f1290ad010fb2cbd0e141bb2a97238338 01-Nov-2013 Brian Carlstrom <bdc@google.com> am 68724352: am 3a9a2089: am e6411e68: Merge "Set persist.sys.dalvik.vm.lib at system server startup" into klp-dev

* commit '6872435264f720dd5f1471d279f3f2ee938802e5':
Set persist.sys.dalvik.vm.lib at system server startup
6872435264f720dd5f1471d279f3f2ee938802e5 01-Nov-2013 Brian Carlstrom <bdc@google.com> am 3a9a2089: am e6411e68: Merge "Set persist.sys.dalvik.vm.lib at system server startup" into klp-dev

* commit '3a9a2089852d18ef7abbb9476fc3455bfec5a880':
Set persist.sys.dalvik.vm.lib at system server startup
ad464053582bfdc6764aa3f98bc2c00c1ac082e9 31-Oct-2013 Brian Carlstrom <bdc@google.com> Set persist.sys.dalvik.vm.lib at system server startup

Bug: 11463182
Change-Id: I4409e84570c4e27bf8da36d0aca87812a1c032a6
nternal/os/RuntimeInit.java
f03ba0cacea9f05d60e7b36058efa291b616fc8c 29-Oct-2013 Satoshi Kataoka <satok@google.com> Ignore IME subtype switching support flag until it's ready

Bug: 7043015

Change-Id: Id55f4e23eb0931975c0f80fbd9cb28c2d29ac005
nternal/inputmethod/InputMethodSubtypeSwitchingController.java
02f8bf97e79bcaaf211e19a91075231bbc608126 30-Oct-2013 Satoshi Kataoka <satok@google.com> Merge "Refactor InputMethodAndSubtypeCircularList"
aa2f9f01fa820ba93eaff8916b74cbc4a2bf0254 30-Oct-2013 Jeff Brown <jeffbrown@google.com> am 81b7caf0: resolved conflicts for merge of 5214dae4 to klp-dev-plus-aosp

* commit '81b7caf0d12fb56ab40592467d6b1cbcaef8f0b4':
handle negative temperature
81b7caf0d12fb56ab40592467d6b1cbcaef8f0b4 30-Oct-2013 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of 5214dae4 to klp-dev-plus-aosp

Change-Id: I769e7acbe207b9c3a60ff1576d11b3ab40b8c66d
5214dae44cbf9a5d51b7c5a468b8bf86c56d9ffd 29-Oct-2013 Jeff Brown <jeffbrown@android.com> am 6dbbba4e: Merge "handle negative temperature"

* commit '6dbbba4e9adc3f1c2481698e42f4ffc0c68937f1':
handle negative temperature
6dbbba4e9adc3f1c2481698e42f4ffc0c68937f1 29-Oct-2013 Jeff Brown <jeffbrown@android.com> Merge "handle negative temperature"
d787f6953371c4520bd51d6bf8eccc59f1d0f945 25-Oct-2013 Satoshi Kataoka <satok@google.com> Refactor InputMethodAndSubtypeCircularList

Change-Id: I452bb01d4af7097d214f2c2e7ed58bf1ca9fa219
nternal/inputmethod/InputMethodSubtypeSwitchingController.java
nternal/inputmethod/InputMethodUtils.java
34cafa4b9a82dde09740139f8a3ef95a11a30027 24-Oct-2013 Amith Yamasani <yamasani@google.com> am 8e4457b0: am d58317b2: am 368daafc: Merge "Only simulate the first click if "Always use" button is available" into klp-dev

* commit '8e4457b05e854b9dd6f81a8d5b123e810e079749':
Only simulate the first click if "Always use" button is available
8e4457b05e854b9dd6f81a8d5b123e810e079749 24-Oct-2013 Amith Yamasani <yamasani@google.com> am d58317b2: am 368daafc: Merge "Only simulate the first click if "Always use" button is available" into klp-dev

* commit 'd58317b2824656727b24f0b4c99e091954d05125':
Only simulate the first click if "Always use" button is available
34d41e9a85f4e2e092b5eb8c7fa4554254650fe4 24-Oct-2013 Amith Yamasani <yamasani@google.com> Only simulate the first click if "Always use" button is available

This prevents Keep from being selected automatically when shown in the Share dialog
if Keep was previously chosen by the user as Always use for a send action.
This was a regression introduced by the new intent disambig behavior.

Bug: 11294904
Change-Id: I6745060a8ee0a6d680e657b55ee46aaec27bbacb
nternal/app/ResolverActivity.java
b5c2092c4c120e5cef128d9222983d00ba5e46b7 23-Oct-2013 Satoshi Kataoka <satok@google.com> Merge "Notify commitText event to InputMethodManagerService"
f4bcc592bf2eaaec115d7d30c50d32d2ddef3228 23-Oct-2013 Dianne Hackborn <hackbod@google.com> am b3332447: am e6a8ccb3: am 2d76a1a0: Merge "Fix issue #11323037: Android apk incorrectly marked as running in app processes" into klp-dev

* commit 'b3332447964dfe19299f6ba0365ee706daa4494b':
Fix issue #11323037: Android apk incorrectly marked as running in app processes
b3332447964dfe19299f6ba0365ee706daa4494b 23-Oct-2013 Dianne Hackborn <hackbod@google.com> am e6a8ccb3: am 2d76a1a0: Merge "Fix issue #11323037: Android apk incorrectly marked as running in app processes" into klp-dev

* commit 'e6a8ccb3d11a3af2a2d9f0077965d05754abcff3':
Fix issue #11323037: Android apk incorrectly marked as running in app processes
237cefbcee8721e3268ba778297a0ad48e67f079 23-Oct-2013 Dianne Hackborn <hackbod@google.com> Fix issue #11323037: Android apk incorrectly marked as running in app processes

The android package is now a special case, not being added to the package list
when creating a multi-process component. There is no need, since this package
is actually the framework itself which must be loaded in every process.

Also cleaned up some of the procstats dump output to help see what is going
on here.

Change-Id: If65d35ecd562f3154bdebfded69c454af6ce8c96
nternal/app/ProcessStats.java
d7443c83ceae0bdd20d68bf84648cf3b40115d85 15-Oct-2013 Satoshi Kataoka <satok@google.com> Notify commitText event to InputMethodManagerService

for the intelligent subtype switching

Bug: 7043015
Change-Id: I11ed9a767588f8080753cd9bce011dac7db579ad
nternal/inputmethod/InputMethodSubtypeSwitchingController.java
nternal/view/IInputMethodManager.aidl
cb65456fd3c90ce5f28e4547b7f2ac67427af411 19-Oct-2013 John Spurlock <jspurlock@google.com> am a5217f09: am 1eeb5ff2: am d4595bd1: Merge "Move the IME navigation guard view up to decor." into klp-dev

* commit 'a5217f09c5438d1954dd71e2f75de95b1d8f6721':
Move the IME navigation guard view up to decor.
a5217f09c5438d1954dd71e2f75de95b1d8f6721 19-Oct-2013 John Spurlock <jspurlock@google.com> am 1eeb5ff2: am d4595bd1: Merge "Move the IME navigation guard view up to decor." into klp-dev

* commit '1eeb5ff203a4aea5a4cfbe6c9982dc77cabd1f2b':
Move the IME navigation guard view up to decor.
ae3349e1c34f7aceddc526cd11d9ac44951e97b6 18-Oct-2013 John Spurlock <jspurlock@google.com> Move the IME navigation guard view up to decor.

Although the IME windows are now allowed to extend into
the nav bar, some IMEs were making assumptions about
computed insets based on the height of the content view.

So our navigation bar view (opaque view blocking the nav bar
area to avoid the island effect when transparent) needs to live
above the content view in the hierarchy, making the content view
the same height as it was before.

A surgical spot to put the guard view is up at the root view
(PhoneWindow.DecorView). fitSystemWindows is always called since
this view is not recreated, and the layout is stable: waiting until
the IME is attached to the window is too late to add a guard view.

This is above the screen_* layouts, so will work without having to
touch all of them. And it only affects windows of TYPE_INPUT_METHOD.

Bug:11237795
Change-Id: I6a93f30aec83f1cecfb854073046cbc87ab4aa66
nternal/inputmethod/InputMethodRoot.java
e400a2900dd527370bc7238fb270e0c5c0eb70ba 18-Oct-2013 Jim Miller <jaggies@google.com> am 53caf875: am 01491271: am 53cb242f: Merge "Fix issue where keyguard adds widgets before the system is ready" into klp-dev

* commit '53caf87531372048d4171626e767eeeb94ec664c':
Fix issue where keyguard adds widgets before the system is ready
53caf87531372048d4171626e767eeeb94ec664c 18-Oct-2013 Jim Miller <jaggies@google.com> am 01491271: am 53cb242f: Merge "Fix issue where keyguard adds widgets before the system is ready" into klp-dev

* commit '0149127198f9fc46a3a4f0b7f4e9579b72273b46':
Fix issue where keyguard adds widgets before the system is ready
03e1c70802f7d9af9c8c286359dafd7c2e56f498 17-Oct-2013 Satoshi Kataoka <satok@google.com> Merge "Introduce an API to get the recommended height of the InputMethodWindow"
e5f910a667088ab63e017d5851f0956c77b823da 17-Oct-2013 Jim Miller <jaggies@google.com> Fix issue where keyguard adds widgets before the system is ready

While under heavy system load, keyguard was able to create widgets before
before ActivityManagerService was ready. The result was a race
between keyguard adding widgets and ActivityManagerService being
ready to send broadcasts.

This fix provides keyguard with an additional signal to know when
the system is booted and widgets are safe to load.

Fixes bug b/11217169

Change-Id: I7a714d65b068678f961e52bdde4e1c20f9c287f0
nternal/policy/IKeyguardService.aidl
06d6a7548e108358f03e78bb6106882cbfc0a4d5 15-Oct-2013 Dianne Hackborn <hackbod@google.com> am 9aded5ab: am 827c5af0: am e49a107a: Merge "Fix issue #11223335: APR: Lots of failures in procstats due to..." into klp-dev

* commit '9aded5abd65a2c69090abece37a7825a52ca3af0':
Fix issue #11223335: APR: Lots of failures in procstats due to...
658c7b896a751b971db1292d86655dbb97f00067 10-Oct-2013 Satoshi Kataoka <satok@google.com> Introduce an API to get the recommended height of the InputMethodWindow

Bug: 11035379
Bug: 5137498

Change-Id: I0e920ee79c526c3aea6872b063cf294e2ab081c8
nternal/view/IInputMethodManager.aidl
9aded5abd65a2c69090abece37a7825a52ca3af0 15-Oct-2013 Dianne Hackborn <hackbod@google.com> am 827c5af0: am e49a107a: Merge "Fix issue #11223335: APR: Lots of failures in procstats due to..." into klp-dev

* commit '827c5af02de29424ea80f1ccfe525e681d0b74f0':
Fix issue #11223335: APR: Lots of failures in procstats due to...
878deb3c7b33a0c508137143c776e07bab0296cf 15-Oct-2013 Dianne Hackborn <hackbod@google.com> Fix issue #11223335: APR: Lots of failures in procstats due to...

...bad cleanup of crashing processes

We now have a special path for crashing processes, to silently
clean up their state.

Also some tweaks to Log/Slog.wtf to get better stack crawl
summaries in APR.

Change-Id: Ieced26989907a6e7615b6fa033813fced78d7474
nternal/app/ProcessStats.java
3670316db65b4183c2f33d8e3c691cf87078240c 14-Oct-2013 Daniel Sandler <dsandler@android.com> am 58346d21: am 816fdb03: am e00ab019: Merge "Easter egg cleanups." into klp-dev

* commit '58346d212a3b48f4f965e4bf40baad1953330b03':
Easter egg cleanups.
58346d212a3b48f4f965e4bf40baad1953330b03 13-Oct-2013 Daniel Sandler <dsandler@android.com> am 816fdb03: am e00ab019: Merge "Easter egg cleanups." into klp-dev

* commit '816fdb032fa66c75f8cf0a7b61efc46d032a8403':
Easter egg cleanups.
70966ec922256001053eb7cae957c28e4d6cb791 13-Oct-2013 Daniel Sandler <dsandler@android.com> Easter egg cleanups.

Bug: 11171189
Bug: 10240151
Change-Id: Id5a8904bdf6c16302e09f2b48392f99c280a8179
nternal/app/PlatLogoActivity.java
9012ed4645f04a100647b97a9f9648d9884688e3 11-Oct-2013 John Spurlock <jspurlock@google.com> am b0c900be: am b8818120: am e2bd7be2: Merge "Ensure fitSystemWindows is called on the IME at least once." into klp-dev

* commit 'b0c900becfec85919a10d5761da235b2153889c2':
Ensure fitSystemWindows is called on the IME at least once.
b0c900becfec85919a10d5761da235b2153889c2 11-Oct-2013 John Spurlock <jspurlock@google.com> am b8818120: am e2bd7be2: Merge "Ensure fitSystemWindows is called on the IME at least once." into klp-dev

* commit 'b8818120ce58b54c7f4f4a1b42f1513bfda34129':
Ensure fitSystemWindows is called on the IME at least once.
3bf26b6f2f7fcf47346f55f4e712f4b846393ab1 11-Oct-2013 John Spurlock <jspurlock@google.com> Ensure fitSystemWindows is called on the IME at least once.

InputMethodService will recreate the entire layout on config changes.
Until the system insets change again, the new instance will not
hear about the insets.

This change ensures fitSystemWindows is called at least once for all
input method root views that are added to a window.

Bug:11174545
Change-Id: Id0f02f32c0d6e9c2d6b6aeef74a12a13acfbb9e6
nternal/inputmethod/InputMethodRoot.java
d2d0b5843d3c88d881c67d165bf2539dcda6e8a9 11-Oct-2013 Adam Powell <adamp@google.com> am 7b3cdb0f: am 6f090af3: am ebd1dca5: Merge "Re-enable ActionMenuPresenter view recycling" into klp-dev

* commit '7b3cdb0fb7cd7fab647de09e6a64ce59555ed733':
Re-enable ActionMenuPresenter view recycling
9845b382794530afdbb2c6142243bcb159335cca 11-Oct-2013 Alan Viverette <alanv@google.com> am 785cda30: am f8c146a2: am c37db9c0: Merge "Fix layout and invalidate in SubtitleView" into klp-dev

* commit '785cda30c35aefa90fd89adef0e71fa41fd3459c':
Fix layout and invalidate in SubtitleView
7b3cdb0fb7cd7fab647de09e6a64ce59555ed733 11-Oct-2013 Adam Powell <adamp@google.com> am 6f090af3: am ebd1dca5: Merge "Re-enable ActionMenuPresenter view recycling" into klp-dev

* commit '6f090af305eba51785bb9a6ec08fb9f86a73da98':
Re-enable ActionMenuPresenter view recycling
785cda30c35aefa90fd89adef0e71fa41fd3459c 11-Oct-2013 Alan Viverette <alanv@google.com> am f8c146a2: am c37db9c0: Merge "Fix layout and invalidate in SubtitleView" into klp-dev

* commit 'f8c146a2a2e47da9326ac2ea39b7ae47b97df184':
Fix layout and invalidate in SubtitleView
ebd1dca5ead3d36f7e21ab27b8eb6f4c612f7319 11-Oct-2013 Adam Powell <adamp@google.com> Merge "Re-enable ActionMenuPresenter view recycling" into klp-dev
c3ca3ea3a937a20666e4f01fb1a9efb503ec274e 11-Oct-2013 Adam Powell <adamp@google.com> Re-enable ActionMenuPresenter view recycling

Since action bar transitions are turned off again for now, re-enabling
item view recycling fixes an unfortunate regression with submenus.

If a menu view is invalidated while a submenu is open we need to keep
its anchor consistent. With view recycling active we preserve status
quo and the previous anchor view instance for the popup window remains
in place.

In the future this will need to get more sophisticated;
ActionMenuPresenter will need to re-parent an open submenu against the
proper anchor view by menu item id. But that is a change for another
day.

Bug 11174504

Change-Id: I7e8a444f6996ec95417d20e87938f496e9c3a4dd
nternal/view/menu/ActionMenuPresenter.java
c37db9c0de1038d043051401c2c55a8d0a57f373 11-Oct-2013 Alan Viverette <alanv@google.com> Merge "Fix layout and invalidate in SubtitleView" into klp-dev
aba437d9ba2d7f7e1bc89cc46479a64cc1bf006c 10-Oct-2013 John Spurlock <jspurlock@google.com> am 107c3fed: am a8c73fbd: am a619afd6: Merge "IME navigation guard implemented as a View." into klp-dev

* commit '107c3fed5c26ce2202b6c9394e14e30e49642c85':
IME navigation guard implemented as a View.
107c3fed5c26ce2202b6c9394e14e30e49642c85 10-Oct-2013 John Spurlock <jspurlock@google.com> am a8c73fbd: am a619afd6: Merge "IME navigation guard implemented as a View." into klp-dev

* commit 'a8c73fbd5c90a0d4eacc7aaedc0ca30cfcd5f621':
IME navigation guard implemented as a View.
57beb3b5b3b1a1a2fb8387ae1fab0c18c7cf200d 10-Oct-2013 John Spurlock <jspurlock@google.com> IME navigation guard implemented as a View.

Instead of a custom onDraw in order to stay 100% in sync with abrupt
layout changes.

Also use the unrestricted layout bottom to avoid unnecessary
fitSystemWindows churn.

Bug:11162351
Change-Id: If9bb9a52d503e348d642bf1238f75c4a418ad805
nternal/inputmethod/InputMethodRoot.java
ad8eef9db09653bb1bb191d82889176d6602f19f 10-Oct-2013 John Spurlock <jspurlock@google.com> am 4faa694e: am d3758420: am 65e91126: Merge "Allow IMEs to extend below nav bar, remove SystemUI veto." into klp-dev

* commit '4faa694ed28db7961a2a37269e5706c2a49d87c3':
Allow IMEs to extend below nav bar, remove SystemUI veto.
4faa694ed28db7961a2a37269e5706c2a49d87c3 10-Oct-2013 John Spurlock <jspurlock@google.com> am d3758420: am 65e91126: Merge "Allow IMEs to extend below nav bar, remove SystemUI veto." into klp-dev

* commit 'd3758420a2ffd702dee914d794764a0615dd6956':
Allow IMEs to extend below nav bar, remove SystemUI veto.
65e911261d972758577f76cf41c6c0c532896fe1 09-Oct-2013 John Spurlock <jspurlock@google.com> Merge "Allow IMEs to extend below nav bar, remove SystemUI veto." into klp-dev
c68d577f29604d205573ee4253704c5b2c5e4f81 08-Oct-2013 John Spurlock <jspurlock@google.com> Allow IMEs to extend below nav bar, remove SystemUI veto.

Layout IMEs below the nav bar, offset by bottom padding and
associated guard rectangle with a black background to ensure
they do not appear as islands during transitions.

This makes it safe to remove the SystemUI forced opaque transition
when showing an IME, making the overall transition less expensive,
quicker and smoother overall.

Bug:11058746
Change-Id: I460912ee7c117480c57b947ed31eca330819f32c
nternal/inputmethod/InputMethodRoot.java
2172148f159322fd5a175e7220fb70a61af63ff3 09-Oct-2013 Brian Carlstrom <bdc@google.com> am 2d0f1d65: am 19c8b395: am 6c3baf12: Preload DexCaches

* commit '2d0f1d655cc96d34e67e4e6efc2587ef1feabfe3':
Preload DexCaches
2d0f1d655cc96d34e67e4e6efc2587ef1feabfe3 09-Oct-2013 Brian Carlstrom <bdc@google.com> am 19c8b395: am 6c3baf12: Preload DexCaches

* commit '19c8b395dc13732d0642041b81507038190546ca':
Preload DexCaches
b8a0057d82b9400fef3a9c783076f1465796d365 09-Oct-2013 Alan Viverette <alanv@google.com> Fix layout and invalidate in SubtitleView

BUG: 11138745
Change-Id: If216dc1c68b6aaef3ad41ae30f488b140d4676d6
nternal/widget/SubtitleView.java
6c3baf12e0a6417177793a2e7e95d22721203813 08-Oct-2013 Brian Carlstrom <bdc@google.com> Preload DexCaches

Bug: 11045348
Change-Id: Id27333652d4b3b9ace6c1cdf0566bf39bf0084ed
nternal/os/ZygoteInit.java
14b875b09be38cbd5b4bc0923d7d2e2c8c08bf02 05-Oct-2013 Alan Viverette <alanv@google.com> am 6de0ee41: am 8d6730fd: am b89e969c: Merge "Fix font scaling issues in FastScroller and SubtitleView" into klp-dev

* commit '6de0ee41f9a9668180368d82da688793cef9489d':
Fix font scaling issues in FastScroller and SubtitleView
6de0ee41f9a9668180368d82da688793cef9489d 05-Oct-2013 Alan Viverette <alanv@google.com> am 8d6730fd: am b89e969c: Merge "Fix font scaling issues in FastScroller and SubtitleView" into klp-dev

* commit '8d6730fd30dd6aa4b186591f210dd5e74d117921':
Fix font scaling issues in FastScroller and SubtitleView
b89e969cef91cc20499d955fd49286fde4a401e7 05-Oct-2013 Alan Viverette <alanv@google.com> Merge "Fix font scaling issues in FastScroller and SubtitleView" into klp-dev
7b63063625467baff1db048e84c5781408a5c86d 04-Oct-2013 Alan Viverette <alanv@google.com> Fix font scaling issues in FastScroller and SubtitleView

BUG: 11080227
Change-Id: I0aa84e9b56c6900ad47efd45a5a0f772ce43f810
nternal/widget/SubtitleView.java
e580a2f1a16f125862357af9778e9d73594d4398 04-Oct-2013 Adam Powell <adamp@google.com> am bf7116a9: am 049e663c: am 8c5b15c6: Merge "Fix a bug in action menu measurement" into klp-dev

* commit 'bf7116a9ddeff368b6a33fabfaa82ce974d5ee0d':
Fix a bug in action menu measurement
f642163761f578362a627c4f4d4c251e0757cac4 04-Oct-2013 Chet Haase <chet@google.com> am 74cf1456: am f37696b7: am 76a5c86d: Merge "Fix lockscreen wave animation artifacts" into klp-dev

* commit '74cf1456466bf5d1551f097611219ad6605800a3':
Fix lockscreen wave animation artifacts
cf4ed585146518738871cd60c869f60f1c533ae9 04-Oct-2013 Daniel Sandler <dsandler@android.com> am 12aea9d7: am 97bc628f: am 0a660528: Merge "Goo goo ga joob." into klp-dev

* commit '12aea9d7972abad702f9ded550179af722acdf47':
Goo goo ga joob.
bf7116a9ddeff368b6a33fabfaa82ce974d5ee0d 04-Oct-2013 Adam Powell <adamp@google.com> am 049e663c: am 8c5b15c6: Merge "Fix a bug in action menu measurement" into klp-dev

* commit '049e663c3bedda1b86d9276eaf660ba8571e375b':
Fix a bug in action menu measurement
8c5b15c628b89c4fb832b7311e5d13ccea4aff04 04-Oct-2013 Adam Powell <adamp@google.com> Merge "Fix a bug in action menu measurement" into klp-dev
da9710806bc7874b8c553f4daf9cf14f35ae1b07 04-Oct-2013 Adam Powell <adamp@google.com> Fix a bug in action menu measurement

Thanks to a measurement optimization in KK, the view recycling
behavior of ActionMenuPresenter could get into a state where the
resulting ActionMenuView had changed but no layout was
requested. Explicitly request a layout during menu update. Also fix an
ancient typo.

Bug 11047996

Change-Id: I6289fd2d142ac7d2101fbec6de19b7d3d7fbd6a2
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/ActionMenuView.java
nternal/view/menu/MenuBuilder.java
74cf1456466bf5d1551f097611219ad6605800a3 04-Oct-2013 Chet Haase <chet@google.com> am f37696b7: am 76a5c86d: Merge "Fix lockscreen wave animation artifacts" into klp-dev

* commit 'f37696b70cb1219ce0a1a52eae597b8ddfe62a88':
Fix lockscreen wave animation artifacts
167a32326ea3a3b30c147cd02e3b3151e794e016 03-Oct-2013 Chet Haase <chet@google.com> Fix lockscreen wave animation artifacts

On some display sizes, the wave animation was sometimes
running more than once, starting over in the center and animating
outward... partially.

The problem was that the calculations determining the alpha value
of the dots was returning bogus values when the display area was
large enough, which is why the bug is only on some devices.

This fix simplifies the math and ensures that the wave only animates
once, from start to finish.

Issue #11005936 regression on lockscreen animation for multi-wave widget

Change-Id: Id21a2e4d2271f01c82c4bc6e1f37d78e68b9b6e4
nternal/widget/multiwaveview/GlowPadView.java
nternal/widget/multiwaveview/PointCloud.java
12aea9d7972abad702f9ded550179af722acdf47 04-Oct-2013 Daniel Sandler <dsandler@android.com> am 97bc628f: am 0a660528: Merge "Goo goo ga joob." into klp-dev

* commit '97bc628fa737a87b0b855b76404fd1527eca67f8':
Goo goo ga joob.
2fdb68b3c2ac5e72fdaa590eb70fca0c6a9f5ef0 03-Oct-2013 Daniel Sandler <dsandler@android.com> Goo goo ga joob.

Bug: 10240151
Change-Id: I7b702c397cb9f5ac3294ae27ffc6185df6a64678
nternal/app/PlatLogoActivity.java
5d93ad94a3fbe6bd4c1a55543a31c1692673925a 02-Oct-2013 Dianne Hackborn <hackbod@google.com> am 1d536848: am 239dc099: am 164371fb: Fix issue #11005453: [SUW] G+ profile creation for new user broken

* commit '1d536848af1531dd14af52000f5ab505162bf123':
Fix issue #11005453: [SUW] G+ profile creation for new user broken
9e47641c9149393f6441310467a8a8942b106ba1 02-Oct-2013 Christopher Tate <ctate@google.com> am 3b4e322b: am e40b3033: am 5088fc85: Merge "Specialized prompting when \'home\' has become ambiguous" into klp-dev

* commit '3b4e322b4787f3d203745aa993f75acc4bd75278':
Specialized prompting when 'home' has become ambiguous
1d536848af1531dd14af52000f5ab505162bf123 02-Oct-2013 Dianne Hackborn <hackbod@google.com> am 239dc099: am 164371fb: Fix issue #11005453: [SUW] G+ profile creation for new user broken

* commit '239dc099a0d56eba3c7a537df23ef3c5046b2667':
Fix issue #11005453: [SUW] G+ profile creation for new user broken
3b4e322b4787f3d203745aa993f75acc4bd75278 02-Oct-2013 Christopher Tate <ctate@google.com> am e40b3033: am 5088fc85: Merge "Specialized prompting when \'home\' has become ambiguous" into klp-dev

* commit 'e40b3033422c326340957989eafd1659565fb132':
Specialized prompting when 'home' has become ambiguous
164371fb759bad6854570af0fca60d9a01e17235 02-Oct-2013 Dianne Hackborn <hackbod@google.com> Fix issue #11005453: [SUW] G+ profile creation for new user broken

The main problem here was a mistake when turning a single process
structure to a multi-package-process structure with a common
process. When we cloned the original process state, if there were
any services already created for the process for that package, they
would be left with their process pointer still referencing the
original now common process instead of the package-specific process,
allowing the active counts to get bad. Now we switch any of those
processes over to the new package-specific process.

There was also another smaller issue with how ServiceRecord is
associated with a ServiceState -- we could be waiting for an
old ServiceRecord to be destroyed while at the same time creating
a new ServiceRecord for that same service class. These would share
the same ServiceState, so when the old record finally finished
destroying itself it would trample over whatever the new service
is doing.

This is fixed by changing the model to instead of using an "active"
reference count, we have an object identifying the current owner
of the ServiceState. Then when the old ServiceRecord is cleaning
up, we know if it is still the owner at that point.

Also some other small things along the way -- new Log.wtfStack()
method that is convenient, new suite of Slog.wtf methods, fixed
some services to use Slog.wtf when catching exceptions being
returned to the caller so that we actually know about them.

Change-Id: I75674ce38050b6423fd3c6f43d1be172b470741f
nternal/app/ProcessStats.java
81f87faeded7ee48a30379e59682a5a65f94f4b3 02-Oct-2013 Dianne Hackborn <hackbod@google.com> am 57d96f0e: Merge "Fix issue #10948509: Crash in procstats when there is no data" into klp-dev

* commit '57d96f0e92e8af842878660a8271e65cec2426d3':
Fix issue #10948509: Crash in procstats when there is no data
b72b363c972ffa70205afdaeb36073ed09d57f76 01-Oct-2013 Christopher Tate <ctate@google.com> Specialized prompting when 'home' has become ambiguous

Bug 9958444

Change-Id: I050ae425e570cfc8ffd473587fb2a6127c36eeec
nternal/app/ResolverActivity.java
e2a67ac27bb258ee3f28e9651a01632bc9bdf942 01-Oct-2013 Dianne Hackborn <hackbod@google.com> am 57d96f0e: Merge "Fix issue #10948509: Crash in procstats when there is no data" into klp-dev

* commit '57d96f0e92e8af842878660a8271e65cec2426d3':
Fix issue #10948509: Crash in procstats when there is no data
e7dee824cfd8521a37833d7104026c983a1e7654 01-Oct-2013 Adam Powell <adamp@google.com> am 8fb6d97a: Merge "Add gravity settings to PopupWindow/ListPopupWindow/PopupMenu" into klp-dev

* commit '8fb6d97ad5671b4abc1940d8bc56cf7448e45c35':
Add gravity settings to PopupWindow/ListPopupWindow/PopupMenu
be683295009d1e598e4c2094a55d09c620894b4b 01-Oct-2013 Chet Haase <chet@google.com> am 033837dd: Merge "Make fading transitions work better" into klp-dev

* commit '033837dd6bf32b33d9a67d340efd167f94bf80cf':
Make fading transitions work better
66d1cd9da1f5bd3aa3c70a28cbd6bd8801049ace 30-Sep-2013 Adam Powell <adamp@google.com> am 8fb6d97a: Merge "Add gravity settings to PopupWindow/ListPopupWindow/PopupMenu" into klp-dev

* commit '8fb6d97ad5671b4abc1940d8bc56cf7448e45c35':
Add gravity settings to PopupWindow/ListPopupWindow/PopupMenu
a16299b1cf2c4cb4fd49a9b396b91c3a40e2275d 30-Sep-2013 Chet Haase <chet@google.com> am 033837dd: Merge "Make fading transitions work better" into klp-dev

* commit '033837dd6bf32b33d9a67d340efd167f94bf80cf':
Make fading transitions work better
57d96f0e92e8af842878660a8271e65cec2426d3 30-Sep-2013 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #10948509: Crash in procstats when there is no data" into klp-dev
cb4285537b1bf67b5a248e509d5fe41a6f49282e 26-Sep-2013 Dianne Hackborn <hackbod@google.com> Fix issue #10948509: Crash in procstats when there is no data

Not dealing with the case where there is a null list.

Also fixed some bugs I found while looking at this:

- When resetting the stats, we would use a newly computed time stamp
for the total durations rather than the one we used to reset the
proc/service entries. This would result in them being able to be
slightly > 100%.
- There was a bug in how we split a single process state into its
per-package representation, where we would but the cloned process
state into the new package's entry (instead of properly for its
own package entry), to be immediately overwritten by the new
process state we make for that package. This could result in
bad data for processes that have multiple packages.
- There was a bug in resetting service stats, where we wouldn't
update the overall run timestamp, allowing that time to sometimes
be > 100%.
- There was a bug in computing pss data for processes with multiple
packages, where the pss data was not distributed across all of the
activity per-package process states.
- There was a bug in computing the zram information that would cause
it to compute the wrong value, and then never be displayed.

Finally a little code refactoring so that ProcessState and ServiceState
can now share a common implementation for the table of duration values.

Change-Id: I5e0f4e9107829b81f395dad9419c33257b4f8902
nternal/app/ProcessStats.java
5b6803c9132e3d0ac6f867c57876ddc19ce9fd30 28-Sep-2013 Michael Wright <michaelwr@google.com> Merge "Move EventHub over to using EPOLLWAKEUP when available"
8fb6d97ad5671b4abc1940d8bc56cf7448e45c35 27-Sep-2013 Adam Powell <adamp@google.com> Merge "Add gravity settings to PopupWindow/ListPopupWindow/PopupMenu" into klp-dev
033837dd6bf32b33d9a67d340efd167f94bf80cf 27-Sep-2013 Chet Haase <chet@google.com> Merge "Make fading transitions work better" into klp-dev
54c94dea8a26e66fa59a31fd9170ca221052d3aa 27-Sep-2013 Adam Powell <adamp@google.com> Add gravity settings to PopupWindow/ListPopupWindow/PopupMenu

Allow calling code to specify left/right/start/end gravity when
showing a popup attached to an anchor. This allows easy alignment of
either the right or left edges of the popup and anchor view.

Bug 10728401

Change-Id: Ie0844a04ea0576fa67b0972f5873aaa4c5b823f6
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/MenuPopupHelper.java
9f68c104249984b2c8d35b13399ac23606cc0acc 26-Sep-2013 Jeff Sharkey <jsharkey@android.com> am 66ee877f: am 8c6c0419: Merge "Tighten flags enforcement, API to test Uris." into klp-dev

* commit '66ee877f5d27b4dd4081702ad216359971e1b8b3':
Tighten flags enforcement, API to test Uris.
b7a7fc9d233bad507ce893882352618b13647058 21-Sep-2013 Chet Haase <chet@google.com> Make fading transitions work better

Previously, a Fade transition would only affect a view if its
parent hierarchy was not also affected between the start/end states.
This caused problems for views which were removed from their parents
between scenes when their parents' visibility also changed between those
scenes. The effect would be that the transition would fade the parent...
but the child would no longer be in that parent, so the user would just see the
child view blink out.

This fix ensure that views are faded appropriately by fading them
regardless the parent hierarchy; if a view is removed from its
parent, fade it out.

Additionally, if that view has not been removed from its parent, but
its parent is no longer parented *and* scene being
transitioned from is based on a layout resource file (and thus
the views are considered temporary after transitioning), then it is
removed from its parent to be faded out in the overlay.

Also, renamed TextChange to ChangeText to be more consistent with
other transition class names.

Change-Id: I4e0e7dfc9e9d95c7a4ca586534b6d204c4f3bae0
nternal/transition/ActionBarTransition.java
nternal/widget/ActionBarView.java
66ee877f5d27b4dd4081702ad216359971e1b8b3 26-Sep-2013 Jeff Sharkey <jsharkey@android.com> am 8c6c0419: Merge "Tighten flags enforcement, API to test Uris." into klp-dev

* commit '8c6c04197e58be6f3e46ba6a38f5d16e4fb091fa':
Tighten flags enforcement, API to test Uris.
ee2f7df9ee8a4f43c3b0858bad08a4f0a59a627f 26-Sep-2013 Jeff Sharkey <jsharkey@android.com> Tighten flags enforcement, API to test Uris.

Check and throw if callers request invalid grant flags. Add API to
test if a Uri is backend by a DocumentsProvider.

Bug: 10919391, 10935608
Change-Id: Ifa6afefb95983558c8c64dc15ddf650e9fe07080
nternal/util/Preconditions.java
67774c74186c9fb5fb73bb0126636225010575f8 25-Sep-2013 Michael Wright <michaelwr@google.com> Move EventHub over to using EPOLLWAKEUP when available

Bug: 10901016
Change-Id: If63c0de5cf120cdf1534d63fc2382d2925b35c6a
nternal/os/ZygoteInit.java
f3647c7bdc1733d28e878564facf49108c0dc2c6 26-Sep-2013 Dianne Hackborn <hackbod@google.com> am f9ad7b9d: am 66a9b2d7: Merge "Fix issue #10903002: com.facebook.katana keeps itself in A Services" into klp-dev

* commit 'f9ad7b9d92f0464bdffb36f4b9f9f63292ba9863':
Fix issue #10903002: com.facebook.katana keeps itself in A Services
5023a4df732693fdaff64da551f6b088e7ba4456 26-Sep-2013 Jeff Sharkey <jsharkey@android.com> resolved conflicts for merge of 687c6221 to master

Change-Id: I9e8a24d9151f31bc3284ad7f8686fa7f3c25c0d9
f9ad7b9d92f0464bdffb36f4b9f9f63292ba9863 26-Sep-2013 Dianne Hackborn <hackbod@google.com> am 66a9b2d7: Merge "Fix issue #10903002: com.facebook.katana keeps itself in A Services" into klp-dev

* commit '66a9b2d7392a7f6334b5fe23d00ba718f3fa1851':
Fix issue #10903002: com.facebook.katana keeps itself in A Services
687c6221c8fd3f093641c25e830cd39bbcdae9b1 26-Sep-2013 Jeff Sharkey <jsharkey@android.com> am be17a614: Merge "Require that persistable Uri permissions be taken." into klp-dev

* commit 'be17a61447e1a7992a6c855059a3c43ab3216610':
Require that persistable Uri permissions be taken.
66a9b2d7392a7f6334b5fe23d00ba718f3fa1851 26-Sep-2013 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #10903002: com.facebook.katana keeps itself in A Services" into klp-dev
be17a61447e1a7992a6c855059a3c43ab3216610 26-Sep-2013 Jeff Sharkey <jsharkey@android.com> Merge "Require that persistable Uri permissions be taken." into klp-dev
d0ee92408f5d94401aecfdd1da31f73679d26461 26-Sep-2013 Jim Miller <jaggies@google.com> am 4bf2c790: am 04b0840b: Merge "Accessibility improvements in keyguard - add accessibility descriptions to camera and search light - add new onClick handler to simplify launching search and camera - plumb camera launch through KeyguardService interface" into klp-dev

* commit '4bf2c790b971cf43c65d8e9e5721a2a9dde474b5':
Accessibility improvements in keyguard - add accessibility descriptions to camera and search light - add new onClick handler to simplify launching search and camera - plumb camera launch through KeyguardService interface
cbd9a52f256087426feb19ac6e51eff772e81375 25-Sep-2013 Dianne Hackborn <hackbod@google.com> Fix issue #10903002: com.facebook.katana keeps itself in A Services

Now when memory low, if a service's process is above
a selected pss, then the process is not allowed to go
in to the service a list.

Also simplified the normal meminfo details dump to not
include the shared dirty and shared clean sizes by
default, since these can be very confusing. You will
still get to see them with the "-a" flag.

Finally some small steps to better managing service
processes in the LRU list, so hopefully we can some
day be better about letting them drop down in the list
when there isn't really much interesting happening in
the process. Not yet used at this point.

Change-Id: I654bfd6d05de2a63120185ebb15ffda8cbeb5dac
nternal/util/MemInfoReader.java
4bf2c790b971cf43c65d8e9e5721a2a9dde474b5 26-Sep-2013 Jim Miller <jaggies@google.com> am 04b0840b: Merge "Accessibility improvements in keyguard - add accessibility descriptions to camera and search light - add new onClick handler to simplify launching search and camera - plumb camera launch through KeyguardService interface" into klp-dev

* commit '04b0840b2e5367547fdd92f4e2c68cde16486062':
Accessibility improvements in keyguard - add accessibility descriptions to camera and search light - add new onClick handler to simplify launching search and camera - plumb camera launch through KeyguardService interface
04b0840b2e5367547fdd92f4e2c68cde16486062 26-Sep-2013 Jim Miller <jaggies@google.com> Merge "Accessibility improvements in keyguard - add accessibility descriptions to camera and search light - add new onClick handler to simplify launching search and camera - plumb camera launch through KeyguardService interface" into klp-dev
e4b0a9a940a122a37dafd79fc3c251c450b0519d 26-Sep-2013 Alan Viverette <alanv@google.com> am 607ea331: am 812b6426: Merge "Fix caption rendering" into klp-dev

* commit '607ea331ebe6f133a7e95a0e37d4c00085646708':
Fix caption rendering
607ea331ebe6f133a7e95a0e37d4c00085646708 26-Sep-2013 Alan Viverette <alanv@google.com> am 812b6426: Merge "Fix caption rendering" into klp-dev

* commit '812b64264176cb8a253a8253074bc9595503d2ac':
Fix caption rendering
812b64264176cb8a253a8253074bc9595503d2ac 26-Sep-2013 Alan Viverette <alanv@google.com> Merge "Fix caption rendering" into klp-dev
e66c1778f80f4b18e29e018eca3a338f125f23b9 20-Sep-2013 Jeff Sharkey <jsharkey@android.com> Require that persistable Uri permissions be taken.

Change our Intent flag to indicate that a Uri permission grant is
persistable, but don't actually persist it until explicitly taken by
the receiving app. This prevents apps from spamming each other if
persisted permissions aren't really required.

Remember the last time a persisted grant was taken by an app, and
use this to prune away the oldest grants when the number of grants
grows too large. Allow apps to query persisted grants they are
holding, and allow them to release previously persisted grants. Add
public UriPermission class to return grant details and timestamp.

Track various permission strengths separately, and combine together
after each mutation pass. Persistable grants are currently treated
like global grants, but they could be moved to have owners in the
future. Require that grant holders trying to extend a persistable
permission actually hold a persistable permission themselves.

Bug: 10835779
Change-Id: I95b2f797c04ce7fd2612f9a644685dbd44e03759
nternal/util/XmlUtils.java
138f25d75665bd07d34294364c5b6f530b33503f 25-Sep-2013 Jim Miller <jaggies@google.com> Accessibility improvements in keyguard
- add accessibility descriptions to camera and search light
- add new onClick handler to simplify launching search and camera
- plumb camera launch through KeyguardService interface

Fixes bug 10914360

Change-Id: Ic85eda9afadba7381be78b477180f7204030cd17
nternal/policy/IKeyguardService.aidl
14176c6c0df5a6ce05486ac41586684bdd16a32e 25-Sep-2013 Jim Miller <jaggies@google.com> am 132540d1: am d7fdcad2: Merge "Fix accessibility for all-caps items in keyguard" into klp-dev

* commit '132540d1f5656145639f0206076d1ba63183bbfb':
Fix accessibility for all-caps items in keyguard
132540d1f5656145639f0206076d1ba63183bbfb 25-Sep-2013 Jim Miller <jaggies@google.com> am d7fdcad2: Merge "Fix accessibility for all-caps items in keyguard" into klp-dev

* commit 'd7fdcad22683e6191e92141a7e45e2414fe40a44':
Fix accessibility for all-caps items in keyguard
7fe420f31b4de2bbd7a89194384d0c9ac6293226 25-Sep-2013 Alan Viverette <alanv@google.com> Fix caption rendering

Fixed rendering of captions in regions and incorrect caption width
measurement. Removes minimum-difference line wrapping, since the
results weren't consistent with StaticLayout's rendering.

BUG: 10917766, 10822229
Change-Id: I55ef28cbf383fd6b945c0be62e440781288364f1
nternal/widget/SubtitleView.java
6885d577cbfe8dedcdb82fc066a4408ea762204f 25-Sep-2013 Dianne Hackborn <hackbod@android.com> am 8715dc14: am 4213e68f: am 3a7d5f71: Merge "Replace SEAndroid with SELinux."

* commit '8715dc1401557f5ec068f9214ab0712291a3b403':
Replace SEAndroid with SELinux.
8715dc1401557f5ec068f9214ab0712291a3b403 25-Sep-2013 Dianne Hackborn <hackbod@android.com> am 4213e68f: am 3a7d5f71: Merge "Replace SEAndroid with SELinux."

* commit '4213e68f67d59c0912d2a8729fcec4539197756a':
Replace SEAndroid with SELinux.
4213e68f67d59c0912d2a8729fcec4539197756a 25-Sep-2013 Dianne Hackborn <hackbod@android.com> am 3a7d5f71: Merge "Replace SEAndroid with SELinux."

* commit '3a7d5f71456b57f712b0f878beb5317f0ce6d564':
Replace SEAndroid with SELinux.
488bb0ed6a6765b5a7c9ee73747ebc9333097267 25-Sep-2013 Mike Lockwood <lockwood@google.com> Cleanup Binder interface between sensorservice and BatteryStats

Change-Id: I6ba542cea242e252864d562ba62f3b8136f09f90
nternal/app/IBatteryStats.aidl
e38c8e28ba50d5fe7f4f2bc5fe68a9f10bafe0f0 25-Sep-2013 Jim Miller <jaggies@google.com> Fix accessibility for all-caps items in keyguard

This fixes a bug where TTS on all-caps items doesn't work for
Buttons. The fix is to use translation (ala. TextView.setAllCaps()),
which just affects rendering and not the original text string.

Fix bug 10912259

Change-Id: Id8cba927819c979fe699353219d45f8b0f9f5aac
nternal/widget/LockPatternUtils.java
23ff9f6128b5d28a99eca87bf03b221145951988 24-Sep-2013 Dianne Hackborn <hackbod@google.com> am 9b7d1484: am 5f86b90b: Merge "Fix issue #10848916: "Always" button is not working." into klp-dev

* commit '9b7d148466b1aedb24187294e0c59718afb104a0':
Fix issue #10848916: "Always" button is not working.
6d8dfbd8149942f25f2b9643a12f1fb38f3be834 24-Sep-2013 Dianne Hackborn <hackbod@google.com> Fix issue #10848916: "Always" button is not working.

The problem was that the ResolverActivity filters some activities
out of the list it shows, but it uses that display list as the
list of components the preference is set against when ultimately
setting it on the package manager... but that filtered list is *not*
the right component set, since it is not the same as the package
manager's view on it.

The fix here is to retain the original set of matching components
and use that when setting the preferred activity. Note that this
does mean that in very unusual cases where filtering is happeing
(such as one of the activities not being exported but being seen
as a possible completion from another app), then you will be setting
the preference for the complete set. Ultimately we probably need
to have the package manager apply these filtering rules up-front so
this is all consistent, but this is a very rare case so not that
important.

And then most of the change here is just improving the debug
output for intent resolution.

Change-Id: Ie35ac2c05a45946439951bbf41433c8b7de79c05
nternal/app/ResolverActivity.java
nternal/util/FastPrintWriter.java
e4039cc6bce84c1aded1ea7e18a013aa71c40615 24-Sep-2013 Chet Haase <chet@google.com> am 5c69fd7d: am cfdc0369: Merge "Disable ActionBar usage of transitions" into klp-dev

* commit '5c69fd7d36af2d186fa3b654cf8b3e6eeb5596b9':
Disable ActionBar usage of transitions
d8d7c38533d20062166e5e7ef89b80ff9dbd8903 23-Sep-2013 Chet Haase <chet@google.com> Disable ActionBar usage of transitions

Various artifacts across apps were coming from ActionBar's use of
the new transitions framework. Disabling transitions for now to get
things back to a more stable state.

Also, fixed some related bugs in transitions themselves, including
a change in TextChange to account for text selection, which was causing
errors in Keep's SearchView.

Issue #10860557 TextChange animator may old stale value
Issue #10819685 sometimes icons are lighter
Issue #10750525 Share and Settings icons overlap when stopping slideshow
Issue #10839551 Sometimes the search text box is right-aligned in Keep
Issue #10727484 Cursor incorrectly positioned after entering first letter during search action in keep app

Change-Id: Iad7cbf3297e18018308b8148b3519b032e63dace
nternal/transition/ActionBarTransition.java
nternal/view/menu/ActionMenuPresenter.java
nternal/widget/ActionBarView.java
3f943b1143239efa6319940fc61f0cfc92354a34 20-Sep-2013 Jim Miller <jaggies@google.com> am f3d1ef00: am af638c4f: Merge "Add camera affordance to navigation bar on phones" into klp-dev

* commit 'f3d1ef00c571657bd0464d157905c6b4fae2136f':
Add camera affordance to navigation bar on phones
9bef5b67dc48568e6f8be065dd7016f04058351c 20-Sep-2013 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 20021b30 to master

Change-Id: Ie758de25a277ed0a25bf08e4cd2c57c9519bd52d
af638c4f9daa74b4c8e0905f07e11290f6845abe 20-Sep-2013 Jim Miller <jaggies@google.com> Merge "Add camera affordance to navigation bar on phones" into klp-dev
caf24fc2c4bb9747eb80138bf3ce0be067851749 11-Sep-2013 Jim Miller <jaggies@google.com> Add camera affordance to navigation bar on phones

This adds a camera button on phones that can be used to show
and launch the camera.

- Minor refactoring of touch event dispatch in PagedView.
- Disables usability hints when keyguard loads.
- Only add a touch handler for camera icon once during layout.
- Update after review.
- Updated with latest UX camera and camera background assets

Change-Id: I09cd5cb0e501fd0f4659bea96d00c92b07f805c4
nternal/policy/IKeyguardService.aidl
3bc8f78d7a3d23a67c06221cc41292d04a2fd439 19-Sep-2013 Dianne Hackborn <hackbod@google.com> Implement issue #10691475: Kill cached processes if about to...

...be uncached and too large

When the device is in a low RAM state, when we go to pull a cached
process out to use for some background operation, we can now kill
the current process if we consider its size to be too large.

Note that the current implementation for killing processes is to
just use the same killUnneededProcessLocked() method that we already
have for other things like too many cached processes. This is a
little wrong here, though, because in this case we are at the
point where the caller is actually looking for a process to use.
This current code is not actually removing or cleaning up the
process, so we still need to return the now killed ProcessRecord
and let things fall out from there, which typically means the caller
trying to make an IPC on it and failing and falling into its "oh
no the process died unexpectedly" path. All code using this
*should* be able to handle this correctly, anyway, since processes
really can be killed at any time.

At some point we may to make this implementation cleaner, where it
actually tears down the process right in the call and returns a
null ProcessRecord. That is very dangerous however (we'd need to
go through all paths into this to make sure they are going to be
okay with process state changing on them like that), and I'm not
sure it is really worthwhile. This intention is that killing
processes like this is unusual, due to processes being too large,
and anyway as I wrote all of our incoming code paths must already
be able to handle the process being killed at this point and one
could argue this is just another way to excercise those code paths.
Really, the main negative to this is that we will often have spam
in the log with exceptions about processes dying unexpectedly.
If that is the only issue, we could just add some conditions to
quiet that up at in this case.

We don't want to compute the size of the process each time we try
to evaluate it here (it takes 10s or ms to do so), so there is now
a new field associated with the process to give us the last pss
size we computed for it while it was in the cached state.

To be able to have better cached pss data when we now need it, the
timing for computing process pss has been tuned to use a much
shorter delay for the situations when the process has first switch
into a new state. This may result in us having a fair amount more
pss data overall, which is good, as long as it doesn't cause us to
be computing pss excessively and burning cpu.

Procstats now also has new state to keep track of the number of
times each process has been killed by this new system, along with
the min, avg, max pss of all the times it has happened. This has
slightly changed the checkin format to include this additional data
at the end of pkgkills/prockills lines.

Other changes here:

- Fixed a problem where GPU RAM was not being seen when dumping
the full RAM details of a process. This was because in that
case the system would ask the process to compute its own MemInfo,
which it returned, but the process doesn't have permission to
access the files containing the GPU RAM data. So now the system
always computes the MemInfo and hands it to the app.

- Improved broadcast delays to not apply the delay if the next receiver
of the broadcast is going to run in the same process as the last
one. A situation I was seeing was an application that had two
receivers, one of which started a service; we are better off letting
the second receiver run while the service is running.

- Changed the alarm manager's TIME_TICK broadcast to be a foreground
broadcast. This really should have been anyway (it is supposed to
go out even minute, on the minute, very accurately, for UI elements
to update), and is even more important now that we are doing more
things to delay background broadcasts.

- Reworked how we maintain the LRU process list. It is now divided
into the two parts, the top always containing the processes holding
activities. This better matches the semantics we want (always try
to keep those around modulated by the LRU order we interleave with
other cached processes), and we now know whether a process is being
moved on the LRU list because of an activity operation so we can
only change the order of these activity processes when user operations
happen. Further, this just makes that common code path a lot simpler
and gets rid of all the old complexity that doesn't make sense any
more.

Change-Id: I04933ec3931b96db70b2b6ac109c071698e124eb
nternal/app/ProcessStats.java
8b7ea57f8e3f18580c7254455d5c167f329c6329 19-Sep-2013 Jim Miller <jaggies@google.com> am cd87d0ab: am f4292478: Merge "Fix keyguard/Keystore storage issue" into klp-dev

* commit 'cd87d0ab9623d5028d767e8167923c57aa2bac0d':
Fix keyguard/Keystore storage issue
f429247867ac524cf63bc01499ac47a90ebcaca9 19-Sep-2013 Jim Miller <jaggies@google.com> Merge "Fix keyguard/Keystore storage issue" into klp-dev
8f61c7e858f4634547089b5d1b2ced9ba8057fd9 18-Sep-2013 Amith Yamasani <yamasani@google.com> am b129e946: am a6f387a0: Merge "Don\'t handle click if the resolver is already finishing." into klp-dev

* commit 'b129e9466f9715d5729ad5bf6c96bae5164014c1':
Don't handle click if the resolver is already finishing.
a6f387a0551a82b76e86ae829ae3a39ad043c1c9 18-Sep-2013 Amith Yamasani <yamasani@google.com> Merge "Don't handle click if the resolver is already finishing." into klp-dev
07cd351b4a4900bb0e202ff50a335727d706dc30 18-Sep-2013 Amith Yamasani <yamasani@google.com> Don't handle click if the resolver is already finishing.

Fixes bug that double tapping on an entry in the intent disambig dialog
can result in the picked activity being launched twice.

Bug: 10770501
Change-Id: Ibb7c6bea5f3c25fa204a2f0e65c8044c2a2549f7
nternal/app/ResolverActivity.java
397196870e325dc6b8cdac1086c7027eccd31ca1 18-Sep-2013 Dianne Hackborn <hackbod@google.com> am 12b22479: am 222920c4: Merge "Maybe fix issue #10797796: IllegalStateException in ProcessState..." into klp-dev

* commit '12b224799626a506ff3cb3c01cdfdc5b66bce5e3':
Maybe fix issue #10797796: IllegalStateException in ProcessState...
222920c46044d4782df3cd5b3c6c7e6578659903 18-Sep-2013 Dianne Hackborn <hackbod@google.com> Merge "Maybe fix issue #10797796: IllegalStateException in ProcessState..." into klp-dev
53459a7020dbcd036e2d3418e35ebb96fadc29e3 18-Sep-2013 Dianne Hackborn <hackbod@google.com> Maybe fix issue #10797796: IllegalStateException in ProcessState...

...caused runtime restart

There were some situations where the package list could be set
with process stats when it shouldn't. Not sure if this is causing
the problem, since there is no repro.

Also some improvements to debug output -- new commands to clear
all stats, print full details of stats, and print a one-day
summary (which should match what the UI shows).

Change-Id: I9581db4059d7bb094f79f2fe06c1ccff3e1a4e74
nternal/app/IProcessStats.aidl
nternal/app/ProcessStats.java
379c21518a7ae3fe2f39c730db26fa4cfb2b1b41 17-Sep-2013 Alan Viverette <alanv@google.com> Merge "Fix default style attr in DialogPreference subclass constructors"
34155c49a5a921d8fd1300f706aa8b87139207e4 17-Sep-2013 Adam Powell <adamp@google.com> am f35621da: am 70aafea9: Merge "Action bar transitions - handle expanding/collapsing action views" into klp-dev

* commit 'f35621da26346e434d8144e5280707bddbdd5bff':
Action bar transitions - handle expanding/collapsing action views
70aafea91eedc70039818912007f43208e656240 17-Sep-2013 Adam Powell <adamp@google.com> Merge "Action bar transitions - handle expanding/collapsing action views" into klp-dev
c46d33393fcc3a497d036973cb887cdaf986eef2 17-Sep-2013 Adam Powell <adamp@google.com> Action bar transitions - handle expanding/collapsing action views

Make sure we beginDelayedTransition when we expand and collapse action
views, specifically before any callbacks go out that might alter the
hierarchy.

Change-Id: Iffc286cccd9be83ad03aeede605870ac12cc6bab
nternal/widget/ActionBarView.java
5f318189f2e14fe8ac8742942db35d384867ff8e 17-Sep-2013 Dianne Hackborn <hackbod@google.com> am bb7a51e1: am 8a7a93e2: Merge "Work on issue #10771346: runtime restart" into klp-dev

* commit 'bb7a51e1ef28e26a8ead2c0cf3d6880081526d52':
Work on issue #10771346: runtime restart
50ef0b62f076c509d5edaef5588080d685f063e8 17-Sep-2013 Dianne Hackborn <hackbod@google.com> Work on issue #10771346: runtime restart

Haven't found the underlying cause, but this will give us more
information when we get into the bad state.

Change-Id: I9aebd3a025a7c0d931f43098461b64ee3c220746
nternal/app/ProcessStats.java
de1af08dd3a073f007ae4b8a114352cae3775028 11-Sep-2013 Jim Miller <jaggies@google.com> Fix keyguard/Keystore storage issue

Keystore stored keys broke when keyguard was moved out of the system process
due to Keystore enforcing the calling app to be in the system process.

The fix moves the critical code into LockSettingsService, which continues
to live in the system process.

Fixes bug 10201270

Change-Id: I16e2de018e85b01265634dcfbefd7f06740dafa8
nternal/widget/ILockSettings.aidl
nternal/widget/LockPatternUtils.java
599d2a49e84bf0a4ee752e263a2c29d2ae942c3e 16-Sep-2013 Alan Viverette <alanv@google.com> Fix default style attr in DialogPreference subclass constructors

BUG: 10751709
Change-Id: Ia7fa91e52881b46d39711d2adc43330014234a55
nternal/preference/YesNoPreference.java
e0339ab5a37b8765795900b36c0b2a8209c42173 16-Sep-2013 Daniel Sandler <dsandler@android.com> am c1c5e117: am 311daf20: Merge "New platlogo for K." into klp-dev

* commit 'c1c5e1177d0ad675c151a7081bd42eef9b0872d2':
New platlogo for K.
80c3c4e96039fe4e620d3fedc1e3fb2d01134b61 16-Sep-2013 Daniel Sandler <dsandler@android.com> New platlogo for K.

Bug: 10605145
Change-Id: I23f285ec24118982b10f5d801b75925b9dc81c64
nternal/app/PlatLogoActivity.java
fe904ecc975310dd1dc79fb63c568df0e7bd404b 16-Sep-2013 Daniel Sandler <dsandler@android.com> am 48591ef6: am 28ed00d3: Merge "Fix RenderScript crash." into klp-dev

* commit '48591ef67e92bbb80a2a263b6813a8afcd9c2788':
Fix RenderScript crash.
a30b7035cec9d6d2bfc6a48889dc803695b26f36 16-Sep-2013 Daniel Sandler <dsandler@android.com> Fix RenderScript crash.

Also lay the groundwork for a future checkin.

Bug: 10240151
Bug: 10505742
Change-Id: I62d61c9048188c93863c8c43839e713b75a65102
nternal/app/PlatLogoActivity.java
14520b79fa584b9b0444a0649efd1132fa657782 14-Sep-2013 Dianne Hackborn <hackbod@google.com> am 38743f2a: am e39ced0f: Merge "Maybe fix issue #10748810: Runtime restart: crash under..." into klp-dev

* commit '38743f2a67259d8eab55c70cee7709ad7aac6e8f':
Maybe fix issue #10748810: Runtime restart: crash under...
a0332377e1edb95202249412ef7bb06a4e1aec03 14-Sep-2013 Dianne Hackborn <hackbod@google.com> Maybe fix issue #10748810: Runtime restart: crash under...

...ActivityManagerService.setProcessTrackerState

And if not, at least we'll have a little more debug info
when it happens again.

Change-Id: I685f0f72c2e1b17608a8d069d6c7f2cff2fd0abd
nternal/app/ProcessStats.java
d17e719da0914aaee0bf6b21e92f4f3e4a4e8293 14-Sep-2013 Alan Viverette <alanv@google.com> Merge "Clean up layout constructors, make them consistent"
f206b5935e702d9b0bf9ce23166017a54ff4880e 14-Sep-2013 Adam Powell <adamp@google.com> am 3cfc5995: am 3157e73f: Merge "Don\'t recycle action button views" into klp-dev

* commit '3cfc5995bfa5d9d4c9203991131d76947c572b58':
Don't recycle action button views
1cd9a73ac020bfb2db32da3c8e853c4a514be858 14-Sep-2013 Dianne Hackborn <hackbod@google.com> am f3b4cf7d: am 28eeb420: Merge "Implement #10749688: Improve low memory reporting" into klp-dev

* commit 'f3b4cf7d01b68418dd652e201868d140de081bd8':
Implement #10749688: Improve low memory reporting
3157e73fb0ea392b8dd2a6bbf6b74d8dfa54cc52 14-Sep-2013 Adam Powell <adamp@google.com> Merge "Don't recycle action button views" into klp-dev
8e69257a9c7e9c1781e1f53d8856358ada38921d 11-Sep-2013 Dianne Hackborn <hackbod@google.com> Implement #10749688: Improve low memory reporting

This significantly reworks the logging we do when
all cached processes are killed:

- We now collect the list of processes in-place so we
have a snapshot of exactly when the low memory situation
happened.
- In that snapshot we include the key process state: oom
adj, proc state, adj reasons.
- The report then asynchronously collects pss information
for those processes.
- The ultimate data printed to the log looks like a mix
between the "dumpsys meminfo" and "dumpsys activity"
output. This code no longer uses "dumpsys meminfo"
itself, so some of that data is no longer included,
in particular pss organized by allocation type.

In doing this, I realized that the existing code that is
supposed to run "procstats" is not currently working. And
at that point I realized, really, when we are collecting
this pss data we'd really like to include all those native
processes using ghod-only-knows how much RAM. And guess
what, we have a list of processes available in
ProcessCpuTracker.

So we now also collect and print information for native
processes, and we also do this for "dumpsys meminfo" which
really seems like a good thing when we are printing summaries
of all pss and such.

I also improved the code for reading /proc/meminfo to be
able to load all the interesting fields from there, and
am now printing that as well.

Change-Id: I9e7d13e9c07a8249c7a7e12e5433973b2c0fdc11
nternal/os/ProcessCpuTracker.java
nternal/util/MemInfoReader.java
76d915955f04f841161b054e6c249a65c78ba0fd 13-Sep-2013 Adam Powell <adamp@google.com> Don't recycle action button views

Recycling action button views interferes with transition
animations. Suppress menu item view recycling for them.

Change-Id: I69d7561e337be7e4a89b7cf30b6c9439f2d49cc2
nternal/view/menu/ActionMenuPresenter.java
d488b785dfd7aadbb4dac69eeb2537182d814979 12-Sep-2013 Adam Powell <adamp@google.com> am 179ba0c0: am a2906cb4: Merge "Show alternate menu panel on devices with menu key" into klp-dev

* commit '179ba0c04b446406d226cdfe866317d0d2bcecce':
Show alternate menu panel on devices with menu key
a2906cb4d9355b7a08e7fdec1924c2dbc7fda622 12-Sep-2013 Adam Powell <adamp@google.com> Merge "Show alternate menu panel on devices with menu key" into klp-dev
5fcf5b9fd3ff6757090c6bd166b60c18eda0b3ef 11-Sep-2013 Adam Powell <adamp@google.com> Show alternate menu panel on devices with menu key

Provide a softer transition to the overflow-everywhere world for
devices with menu keys. The panel menu will still be used on these
devices in response to a menu key press even in the presence of an
action bar with overflow.

Fix a few lingering bugs around dispatching the open-overflow
transition that caused problems with this along the way.

Change-Id: I9d77c70f6d15c47160ac06292984101d619c44e6
nternal/view/menu/ActionMenuPresenter.java
nternal/widget/AbsActionBarView.java
a395e70109c904c223bb0575e2447fd249701d0d 12-Sep-2013 Adam Powell <adamp@google.com> am 18149fcf: am 6847447d: Merge "Action bar refactoring and transitions" into klp-dev

* commit '18149fcf86eee3335b28b2c2373b585c4e18745a':
Action bar refactoring and transitions
ad79b90f21dcde6f741c47a251882c0a47c5f698 19-Jun-2013 Adam Powell <adamp@google.com> Action bar refactoring and transitions

* Remove the extra occurrence of the Up caret view and reuse the
standard home view.

* Use new transition APIs to animate changes in action bar content.

Change-Id: I7af3bb580ef4bff7d8dec9e21649b856fe73c77b
nternal/transition/ActionBarTransition.java
nternal/view/menu/ActionMenuPresenter.java
nternal/widget/ActionBarView.java
d6479ec5eec13914f656f6be996d95fe1610fd57 11-Sep-2013 Alan Viverette <alanv@google.com> Clean up layout constructors, make them consistent

All constructors now flow through to each class's own 4-argument
constructor. This ensures that theme attributes are applied even
if a base AttributeSet is not provided.

BUG: 10680863
Change-Id: I727d2961bf017c6a5e0206367081670782583394
nternal/widget/AbsActionBarView.java
nternal/widget/SizeAdaptiveLayout.java
617feb99a06e7ffb3894e86a286bf30e085f321a 10-Sep-2013 Alan Viverette <alanv@google.com> Add View constructor that supplies a default style resource

Also updates the constructor of every class that extends View.

BUG: 10676369
Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
nternal/app/AlertController.java
nternal/preference/YesNoPreference.java
nternal/view/CheckableLinearLayout.java
nternal/view/menu/ActionMenuItemView.java
nternal/view/menu/IconMenuItemView.java
nternal/view/menu/ListMenuItemView.java
nternal/widget/AbsActionBarView.java
nternal/widget/ActionBarContextView.java
nternal/widget/DialogTitle.java
nternal/widget/PasswordEntryKeyboardView.java
nternal/widget/SizeAdaptiveLayout.java
nternal/widget/SubtitleView.java
nternal/widget/TextProgressBar.java
99cea983de196aae34a39cd4eb03ae1f93cc771a 09-Sep-2013 Mindy Pereira <mindyp@google.com> Merge "Update default ramp up time for autoscroller." into klp-dev
80213adddaec79981aff47c81bdaac38725f2644 09-Sep-2013 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #10671878: Proc stats needs to remove old data structures" into klp-dev
013634cc44d62fe90cd3e80a7530cffdc79f9715 09-Sep-2013 Alan Viverette <alanv@google.com> Merge "Add WebVTT caption renderer" into klp-dev
35980b2cf51c06c1bdad66b7f8fb629d9c17052f 03-Sep-2013 Eric Rowe <erowe@google.com> Add PID and application to Java crash printout

Bug: 10568405
Change-Id: I508e89bf7ea58e15a8460099036e270139b2e2a9
nternal/os/RuntimeInit.java
498301d8b554f3806ddb01acd2ea98c27132a0e2 09-Sep-2013 Alan Viverette <alanv@google.com> Merge "Add drag-to-open for action bar submenus" into klp-dev
be4c1d74a758f40de25e796a991ccfd1fe356857 09-Sep-2013 Dianne Hackborn <hackbod@google.com> Fix issue #10671878: Proc stats needs to remove old data structures

We now keep track of which process and service states are actively
in use, and remove any that are not in use during a commit. The
activity manager needed to be tweaked to report this data, and ensure
it does not try to operate on one of these structures when not in
use.

Also some other fixes:

- We now keep track of process names associated with services, for
display in the UI.
- Keep track of total run time for each service, also for UI.
- The parceled format is more efficient, not storing duplicates of
process/package names, and writing times as ints when possible.
- Reduced commit period from 1 day to 12 hours, so that our UI can
be a little closer at its attempt to display the stats over 1 day.

Change-Id: Ifeda0ffe963a7b49d8eb2a3f6923f3a5e71a4e43
nternal/app/ProcessStats.java
d43daf361e993457e64eeeddab6d1a0ebc828c99 06-Sep-2013 Alan Viverette <alanv@google.com> Add WebVTT caption renderer

Currently missing support for region anchor points, robust layout
when snapping to lines, and vertical text.

BUG: 10260603
Change-Id: I3463b4aa0039442159144e66922d67f5dfee58ed
nternal/widget/SubtitleView.java
6a18f4ab29cbe1133f30c337e0c686b1d5e78789 06-Sep-2013 Mindy Pereira <mindyp@google.com> Update default ramp up time for autoscroller.

2500 was too much and drowning the behavior where closeness to
the edge should set the speed.

Change-Id: If32999893d9ab59a0b77bd2b79b698a3baa64113
nternal/widget/AutoScrollHelper.java
fbe4a586c29b6e415e8d39d73d19bd7f0215a851 06-Sep-2013 Alan Viverette <alanv@google.com> Add drag-to-open for action bar submenus

BUG: 10649895
Change-Id: I5076e0d09453a75ed20c44eede4b43e8a2f535fd
nternal/view/menu/ActionMenuPresenter.java
d4a8b9d3c1b2ad4a65063f867665e38b8a5f9c0f 06-Sep-2013 Dianne Hackborn <hackbod@google.com> Fix issue #10650718: Camera DOA on KLP

Methods not kept in sync.

Change-Id: I2621255707bbc569ac476b8fb0f7e82f68585b12
nternal/app/IAppOpsService.aidl
911d7f411f36f2279aae44c89ff1d33a29140046 06-Sep-2013 Jeff Sharkey <jsharkey@android.com> Provide calling package to ContentProviders.

The calling package is important for ContentProviders that want to
grant Uri permissions as a side effect of operations, so offer it
through a new API. Validates the provided package against the
calling UID before returning.

Bug: 10626527
Change-Id: I7277880eebbd48444c024bcf5f69199133cd59e4
nternal/app/IAppOpsService.aidl
f1eebfc2cf47b7fb6ed8dfd06fb124f78ca3519e 06-Sep-2013 Amith Yamasani <yamasani@google.com> Merge "Remove unused APIs and rename others based on API review" into klp-dev
d304af69891483aad808356af1ac5f00e90c8edf 05-Sep-2013 Amith Yamasani <yamasani@google.com> Remove unused APIs and rename others based on API review

Restrictions challenge is only to be used by device admins.

Bug: 10461761
Change-Id: I3db1249e2ce99f386602de59ed930302bb0a97fb
nternal/app/RestrictionsPinActivity.java
nternal/app/RestrictionsPinSetupActivity.java
e8222dddaf2e3da14380101e818d4254899e0c0d 05-Sep-2013 Chet Haase <chet@google.com> Change build version from KEY_LIME_PIE to KITKAT

Issue #10631619 Change build version to KitKat

Change-Id: I6ad13f6169ad74204078d36929479998b498ad8b
nternal/widget/ActionBarOverlayLayout.java
3cd28adc5df3cbf4a5269e30351e1f767b974036 04-Sep-2013 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #10427108: Google+ has long running process" into klp-dev
ae36b236d2b8d040f142bee169742da2f392efaa 04-Sep-2013 Dianne Hackborn <hackbod@google.com> Fix issue #10427108: Google+ has long running process

There was a bug in counting the number of starting services
in a process that would cause it to count too many (it would
increment at any state change while the service is started, not
just when starting/stopping).

Also reduce dumpsys output -- only print summaries for old
data. There is probably no utility in printing the long details
of all that data.

Change-Id: I1c1e901b0214c01eb7d071f23166fc6f3702ca67
nternal/app/ProcessStats.java
nternal/os/ProcessCpuTracker.java
4cf435a038be4731c06602785f7dab8bee0b55af 04-Sep-2013 Geoffrey Borggaard <geoffreyb@google.com> Merge "UX improvements to the restrictions PIN" into klp-dev
7eed075a43479ea646821c798b61b49bf53945b3 03-Sep-2013 Amith Yamasani <yamasani@google.com> Merge "Don't call setLastChosen if it's a chooser activity instance" into klp-dev
588dd2a3d67435652545645bca9562c066561cda 03-Sep-2013 Amith Yamasani <yamasani@google.com> Don't call setLastChosen if it's a chooser activity instance

Bug: 10605359
Change-Id: If76f5cf2f45442dc25f9bfbd20a4d671b9caa358
nternal/app/ResolverActivity.java
bc7e4b2cd5a7068fbcd9de8eb0e2e7a9f596479b 31-Aug-2013 Alan Viverette <alanv@google.com> Merge "Update internal AutoScrollHelper to match support lib version" into klp-dev
8135f3a9d306f5cd23c1a4f86c86a577060487c3 29-Aug-2013 Geoffrey Borggaard <geoffreyb@google.com> UX improvements to the restrictions PIN

As per Rachel. Remove the title, change the hint text.
Don't make the dialog disappear after failed attempts.
Bug: 10542734

Change-Id: I1cae3d74bd4da06364626d63faf945f629cf6537
nternal/app/RestrictionsPinActivity.java
nternal/app/RestrictionsPinSetupActivity.java
cb168795fecd57ea5bf28de3c4973c4bc196ea7b 30-Aug-2013 Alan Viverette <alanv@google.com> Update internal AutoScrollHelper to match support lib version

BUG: 10547956
Change-Id: I7d5b1b9fb89ae8ff4294cc2dfd01e29b55ed3eba
nternal/widget/AutoScrollHelper.java
79a45c6f1837d5921e512213904c96660b1a80b1 29-Aug-2013 Amith Yamasani <yamasani@google.com> Merge "Improve Intent disambig dialog behavior" into klp-dev
0d3da1232bf967e427477ab4d4c58eb3e933f17e 29-Aug-2013 Mindy Pereira <mindyp@google.com> Fix case when user touches the very edge of a view

This now counts touches at the exact top edge of the view as valid

Change-Id: I9e81a7001632c38d567dde40954e079e7145fa36
nternal/widget/AutoScrollHelper.java
e9ecc8b49992840249bfb9d5d52b8824dd5de39b 22-Aug-2013 Amith Yamasani <yamasani@google.com> Improve Intent disambig dialog behavior

Keep track of last chosen activity for a particular intent, similar
to how it is tracked for "Always" choices.
Pre-select the last chosen activity if previously the user picked
"Just once".
Downgrade "Always" to "Last chosen" if there's a new kid on the block,
instead of removing it entirely.
Add methods to set and get last chosen entry.

UI - switch from Grid to List.

Bug: 9958096

Change-Id: Ied57147739a3ade1d36c3a7ec1e8ce77e5c5bb16
nternal/app/ResolverActivity.java
d381680b63a36f8a4f1b07286947f1227d83139d 27-Aug-2013 Christopher Tate <ctate@google.com> Merge "Make sure to actually log when Log.wtf() hiccups" into klp-dev
941adc95e121332b49aedb5406b6037a6395aea6 27-Aug-2013 Christopher Tate <ctate@google.com> Make sure to actually log when Log.wtf() hiccups

Bug 10494724

Change-Id: I687d7df73a8f4594d42955f100d928e98bbd9b30
nternal/os/RuntimeInit.java
d220a830f4fb0e13e31d7632eb04f70fedd31e97 27-Aug-2013 Chris Wren <cwren@android.com> Merge "Change DBG to false to eliminate logcat messages." into klp-dev
6b8c69edd210ad86eb659e06681422bb29ba2123 27-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Update AccessibilityNodeInfo API as per API council request" into klp-dev
cb8ed39b3fb591be60b9fb1799d4ea4530eab758 24-Aug-2013 Svetoslav Ganov <svetoslavganov@google.com> Update AccessibilityNodeInfo API as per API council request

bug:10461302

Change-Id: I9709a271ab3720e064b98c79c0950d811fe37b73
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/ListMenuItemView.java
faf7a2087e1228599c7b08a679a764d2abb0e9ed 26-Aug-2013 Alan Viverette <alanv@google.com> Merge "Add auto-scrolling in ListPopupWindow drag-to-open mode" into klp-dev
9212e350d52ea98cb673280870c54319b03ccad3 26-Aug-2013 Alan Viverette <alanv@google.com> Merge "Reconcile drag-to-open and touch event interception" into klp-dev
63410109977a932e342a624243dbd9427e29fe36 24-Aug-2013 Scott Greenwald <greenwald@google.com> Change DBG to false to eliminate logcat messages.

DemoContactNotificationScorer was spamming logcat because DBG was
set to true. Also changed TAG to match the class name.

Bug: 10457063
Change-Id: Idca251b5b46d58ab64407e94ed4bec831e880aa4
nternal/notification/DemoContactNotificationScorer.java
f45bb403884f30ecb383698ef1bcb1c7dc1964b8 21-Aug-2013 Jim Miller <jaggies@google.com> Add setting to disable keyguard widgets

This allows disabling keyguard widgets through Settings.
On new devices, the setting is turned off by default. If the
user currently has widgets in keyguard, then we keep them
and re-enable the setting.

Change-Id: I7258921231d439925ac8627105710efa99309094
nternal/widget/LockPatternUtils.java
69960142efa8d228adbfcbabdcf618426e31e1f5 23-Aug-2013 Alan Viverette <alanv@google.com> Reconcile drag-to-open and touch event interception

Changes behavior such that dragging on a Spinner that's inside
of a ScrollView will only scroll after a tap delay.

BUG: 10442971
Change-Id: I9fa9c5f0cf99e0cd158f52b6fa7a109ce1b6b8b1
nternal/view/menu/ActionMenuPresenter.java
2b10b52f6c08eb79f48f7388e2f1c69f58a9c96d 21-Aug-2013 Satoshi Kataoka <satok@google.com> Add new API shouldOfferSwitchingToNextInputMethod

Bug: 8364845
Change-Id: I6767f5640a07aa515a930645b0cf0b36fbe94831
nternal/view/IInputMethodManager.aidl
398ec0368bc82dad6f3d120cd15e01b741320436 21-Aug-2013 Alan Viverette <alanv@google.com> Move caption view from Settings into framework

Renamed to SubtitleView, moved dimensions into resources.

BUG: 10260603
Change-Id: I5d86ee21ca260540ba3201c5295a5c1353e2d963
nternal/widget/SubtitleView.java
5e66021c8a24c27c470cc6b9fe49e5653f3fa05d 21-Aug-2013 Alan Viverette <alanv@google.com> Add auto-scrolling in ListPopupWindow drag-to-open mode

BUG: 9437139
Change-Id: I836c60b48b31d0a5cc32eef903da9dc0b9b9d8a5
nternal/widget/AutoScrollHelper.java
a2e88ef89611d69b65b1830cc5ffebfb679e9d4d 21-Aug-2013 Alan Viverette <alanv@google.com> Merge "Move forwarding code to ListPopupWindow, add drag-to-open in Spinner" into klp-dev
5feb0ad1d234cc7146286e96f96ae162bd628363 21-Aug-2013 Alan Viverette <alanv@google.com> Merge "Use MULTI_LINE and OPENS_POPUP accessibility properties" into klp-dev
fd589c1d946ca7633da43ae8e1b4989cb0a73043 21-Aug-2013 Lorenzo Colitti <lorenzo@google.com> Merge "Notify IP address changes to interface observers." into klp-dev
10fa8c0626dbc0a875fe2543bf3c14d617dee9fb 21-Aug-2013 Lorenzo Colitti <lorenzo@google.com> Merge "Make BaseNetworkObserver available to core code" into klp-dev
5c7daac2e3d9020185699ba554d763b825ab1778 05-Aug-2013 Lorenzo Colitti <lorenzo@google.com> Notify IP address changes to interface observers.

1. Add addressUpdated and addressRemoved methods to
INetworkManagementEventObserver. (The -Updated method is not
called -Added because it gets called for both adds and
changes.) Update all its callers in the tree.
2. Make NetworkManagementService parse IP address notifications
from NetlinkHandler and call the address{Removed,Updated} on
its observers.

Bug: 10232006
Change-Id: Ieb185dbba052bdbff03caafc0cf5397a7f04dc6d
erver/net/BaseNetworkObserver.java
df86a9f2e92d077386b146fe483b2cf14850737d 20-Aug-2013 Lorenzo Colitti <lorenzo@google.com> Make BaseNetworkObserver available to core code

Currently BaseNetworkObserver is in frameworks/base/services, but
there is code in frameworks/base/core that could use it. This
code typically extends INetworkManagementEventObserver.stub
because BaseNetworkObserver is not available.

Move BaseNetworkObserver to frameworks/base/core without changing
its package name, and use it to simplify two callers. The third
caller, Tethering, is much larger, and I'm not sure it's
appropriate to change it.

Bug: 10232006
Change-Id: Ifc0f2e619e3424e27e35730c048a1cc523df345e
erver/net/BaseNetworkObserver.java
058ac7cfe5bb7b9ecc411b94622ac3f31a7fa25e 20-Aug-2013 Alan Viverette <alanv@google.com> Use MULTI_LINE and OPENS_POPUP accessibility properties

BUG: 10391326
Change-Id: Ib2deeeef401802b6dde646e14ee5367141469a58
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/ListMenuItemView.java
269403b032f965ff3847eb982c2f697229dc5a92 15-Aug-2013 Svetoslav <svetoslavganov@google.com> Implemented advanced printer selection and API refactoring.

1. Added past printer history tracking and merging favorite printers
with discovered printers.

2. Added save as PDF support.

3. Added all printers activity with search capability and optional
add printers chooser (if any print service provides add printers
activity)

4. Refactored the printer discovery session APIs. Now one session
can have multiple window discovery windows and the session stores
the printers found during past discovery periods.

5. Merged the print spooler and the print spooler service - much
simpler and easier to maintain.

Change-Id: I4830b0eb6367e1c748b768a5ea9ea11baf36cfad
nternal/os/HandlerCaller.java
ca6a3611cdb28a514834adba35fcce2da6f2e7c2 16-Aug-2013 Alan Viverette <alanv@google.com> Move forwarding code to ListPopupWindow, add drag-to-open in Spinner

BUG: 9437139
Change-Id: I4599cf65a472b2ce74d2301988359d87917a6eec
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/MenuPopupHelper.java
nternal/view/menu/TouchForwardingListener.java
c05027214f1f4dda67296a072dfc9af9176dc590 16-Aug-2013 Alan Viverette <alanv@google.com> Forward events to ListPopupWindow, highlight touched items

Moves most of the drag-to-open behavior into ListPopupWindow's
particular implementation of ListView. Uses hidden View API for
forwarding events between different windows.

Overflow menu opens on first touch, closes on touch end outside
the overflow button. Clicks that occur during drag-to-open mode
result in alpha animation of the selector drawable.

BUG: 9437139
Change-Id: I70f540555a03450638a27880b3ae3b031ca6e2ed
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/MenuPopupHelper.java
b0037316c4bbaf9d5b3ee8af563caf2539def564 10-Aug-2013 Dianne Hackborn <hackbod@google.com> Merge "More stuff I need for the proc stats UI." into klp-dev
69cb00b8dda60eff7449b69723f4e73a28e944f8 10-Aug-2013 Dianne Hackborn <hackbod@google.com> More stuff I need for the proc stats UI.

Change-Id: I5f05b79bc4d5766a80f2db9d20ba8078b60c1b00
nternal/app/IProcessStats.aidl
nternal/app/ProcessStats.java
f6c7a5fd6680d74972738e60ad5c9cf34bfc43ef 09-Aug-2013 keunyoung <keunyoung@google.com> Merge "add local focus mode and input event injection API to Window" into klp-dev
60444fd594ac92aa48e229c600c2ce7de4caf2d1 09-Aug-2013 Dianne Hackborn <hackbod@google.com> Add method for adding two ProcessStats objects together.

Also move file reading code over to ProcessStats.

Change-Id: Ib42272b90a408a494044965e98beed16c0b3f8a5
nternal/app/ProcessStats.java
30f420fd6a74ffa28b351b4aba74d44f5ea48dda 02-Aug-2013 keunyoung <keunyoung@google.com> 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
nternal/widget/PasswordEntryKeyboardHelper.java
184a0100abc431fc3d6d8dd1b20212b84958cada 11-Jul-2013 Jeff Sharkey <jsharkey@android.com> 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
nternal/os/ZygoteInit.java
8a0de58ece89c467c8e7415097d193e5f8db9db8 08-Aug-2013 Dianne Hackborn <hackbod@google.com> Get ProcessStats callable from other processes.

Also fix a bug where, when parceling the stats, we were
computing the final duration values too late. We need to
do that before we write the long table.

Change-Id: Idb6c1ed95417448c56973fe5866bfb3570e525f4
nternal/app/ProcessMap.java
nternal/app/ProcessStats.java
f6971c80fd413cad8e5333cd3184f41fcf64e14b 08-Aug-2013 Daniel Sandler <dsandler@android.com> Merge "OK, now it's a release." into klp-dev
06c0e408c4f06fdb9a5785baebeb293391711e65 08-Aug-2013 Daniel Sandler <dsandler@android.com> OK, now it's a release.

Bug: 10239687
Change-Id: I38a86926f32e5877cd47ae5e4b625a811478aadc
nternal/app/PlatLogoActivity.java
b3c21ac7c661022534135bf688a75ec35fe3a8f2 07-Aug-2013 Satoshi Kataoka <satok@google.com> Reduce the transaction fee of getEnabledInputMethodSubtypeList

Bug: 8467480
Change-Id: If18cce8fbe567df51f29adcdcedff3f743460b8b
nternal/view/IInputMethodManager.aidl
23fb6e84182f325f036b1735b817ecc253e2bd19 07-Aug-2013 Dianne Hackborn <hackbod@google.com> Start adding IPC calls to retrieve proc stat data.

Also fix a bug where we were not correctly unparcelling service
duration data.

Change-Id: Ie9113b2e3a747622441b1939ffc45edb5803a10f
nternal/app/IProcessStats.aidl
nternal/app/ProcessStats.aidl
e9a6f9713ca48aab9a6c87e0645cb0a0af946a11 07-Aug-2013 Satoshi Kataoka <satok@google.com> Reduce the transaction fee of getEnabledInputMethodSubtypeList

Bug: 8467480
Change-Id: Ic1fddfe433e097041fcb09d1fd341d77d7d8b13b
nternal/view/IInputMethodManager.aidl
d2932243e3313b59e7538641731aa98852bc5ac7 06-Aug-2013 Dianne Hackborn <hackbod@google.com> Refactor ProcessStats, ProcessTracker.

ProcessStats is now called ProcessCpuTracker.

ProcessTracker is now ProcessStatsService, and its inner State
class is broken out into a separate top-level ProcessStats class.
This ProcessStats is moved to the framework, so we will be able
to use it elsewhere.

Change-Id: I6a127bcb835b6b474b72647c0b99b82c2137e5c5
nternal/os/ProcessCpuTracker.java
nternal/os/ProcessStats.java
32230ef4e67291d5dc1357bbcb452fdc9d65b1c5 05-Aug-2013 John Spurlock <jspurlock@google.com> Merge "Collapse/disable shade when hiding status bar window."
7ce7f32257a1e49493d38b96f503069226e98c9a 05-Aug-2013 Satoshi Kataoka <satok@google.com> Open an internal utility of InputMethodUtils

Change-Id: I240e914bc21efce8554145619c403d547a17ad19
nternal/inputmethod/InputMethodUtils.java
f76ff0552bbef531c33ef0cb322932d03b7e6632 04-Aug-2013 Chris Wren <cwren@android.com> disable notification scorer by default.

Bug: 10163077
Change-Id: Icd03786dfe59cb26281738ae0be28d14cb5741f9
nternal/notification/DemoContactNotificationScorer.java
0770f9ef66f6e0d8724c972fbdce81aae6de2ca1 03-Aug-2013 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of c8911ddd to master

Change-Id: I790b547268a23848577199256fc5abc9bdb7abb8
c8911ddd486776662e09a6822d4929074d40024d 03-Aug-2013 Dianne Hackborn <hackbod@google.com> am 373a2f15: am 607b414d: Add new app ops method to reset all op modes.

* commit '373a2f15667956ff8a00ba59b42972b9c930af92':
Add new app ops method to reset all op modes.
607b414d0444067e166fa54d8ea37563f2715ea3 03-Aug-2013 Dianne Hackborn <hackbod@google.com> Add new app ops method to reset all op modes.

Change-Id: I5ee6764de8dc31d812e5a788914ab0099bbef4c0
nternal/app/IAppOpsService.aidl
066f2107a1cbdf0fb877f176afdc30353e2d9d0c 02-Aug-2013 Adam Powell <adamp@google.com> Merge "Fix a regression where android:windowContentOverlay did not draw properly."
9b0dc2894df1c3d26aa6196ecdef1989967e6ec9 31-Jul-2013 Adam Powell <adamp@google.com> Fix a regression where android:windowContentOverlay did not draw properly.

This was the victim of an earlier refactoring. Have the
ActionBarOverlayLayout draw this directly over the content so that it
can stay properly in sync with any animations and also remove an extra
couple of views from the decor layout.

Some apps now expect the broken behavior in default themes. Protect
them from themselves until they bump their targetSdkVersion.

Public bug https://code.google.com/p/android/issues/detail?id=58280

Change-Id: I4284503577e322f3e68d4a7fabda8441d3749b98
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarOverlayLayout.java
87c291421544821fe9d10a08ee4e9f31b62d5052 31-Jul-2013 Satoshi Kataoka <satok@google.com> Add a debug utility for InputMethodUtils

Change-Id: I59f6001bf20640e36e19b09cf117b8579120ba7d
nternal/inputmethod/InputMethodUtils.java
9764218ff979f735aee2f1189e3547d5f3b02f83 29-Jul-2013 John Spurlock <jspurlock@google.com> Collapse/disable shade when hiding status bar window.

Provide system bar window visibility (showing/hiding) to sysui,
information it did not have before.

Use this new info to disable shade interaction when bars are hiding.

Bug: 8682123
Change-Id: I4105b789866f847582af1c68a703240d773fa71e
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
0766eb045c0e2ecbc4317743b025618654ddea38 31-Jul-2013 Satoshi Kataoka <satok@google.com> Small refactor on InputMethodUtils

Change-Id: Ie4f797508c02abb13c7fe1be162ec4dc18829925
nternal/inputmethod/InputMethodUtils.java
80e72700858eb58b379f77a0da5fd3a98e1aa07c 29-Jul-2013 Alan Viverette <alanv@google.com> Implement drag to open overflow menu, lift to select

BUG: 9437139
Change-Id: Iaa962453ba1b2c739a04b6b1be4f6de1fb2fa752
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/MenuPopupHelper.java
nternal/view/menu/TouchForwardingListener.java
eb219ee190b4ceb662b81a93e6d4369bcd5e7dc0 29-Jul-2013 Satoshi Kataoka <satok@google.com> Change visibility of the hidden input method utility

Change-Id: I66303bc9e056388fef8cc884d7d98b0660ccdd15
nternal/inputmethod/InputMethodUtils.java
bd19b9ee305c11d8aa3cbb105bf2d3a6b06389b5 12-Apr-2013 Stephen Smalley <sds@tycho.nsa.gov> Replace SEAndroid with SELinux.

Change-Id: Ibbe544a9f025d71ad416bc01cee2145b62d7b2d4
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
nternal/os/ZygoteConnection.java
c7e9e8b4f3e264375b416eff830739ecf0dc206c 15-Jan-2013 Sungmin Choi <sungmin.choi@lge.com> handle negative temperature

When the battery temperature drops to below zero, BatteryLevelInit()
fails to show negative temperature. Because the type is unsigned
and the size of bit field is 10 bits.
So to handle negative temperature, change the type of battery temperature
from "char" to "short". And extend the size of temperature bit field
from 10 to 11 bits, which first bit is used for the sign bit.

Before:
31 24 14 0
+---------------+---------------------+-----------------+
| Battery Level | Battery temperature | Battery Voltage |
+---------------+---------------------+-----------------+

After:
31 25 14 0
+-------------+-----------------------+-----------------+
|Battery Level| Battery temperature | Battery Voltage |
+-------------+-----------------------+-----------------+

Bits 31..25: battery level percentage (7 bits unsigned)
Bits 24..14: battery temperature (11 bits signed)
First bit is used for the sign and others for the temperature
Bits 13..0: battery voltage in 0.001 volt units (14 bits unsigned)

Becuase of changing the format, let the BatteryStatsImpl.VERSION field
increment.

Bug: 8009514
Change-Id: Iaa12f4d3f14e6cf4d73bc1a23d81c60f9677a499
nternal/os/BatteryStatsImpl.java
9a05b31aab8b4f2c431fda8c14aa7816eb4a91ad 28-Jun-2013 Scott Greenwald <greenwald@google.com> Add support for notification scorers.

This CL adds an interface and classes for scoring notifications.
The NotificationManagerService initializes an array of scorers
specified as a resource. When a Notification is enqueued, the
getScore() method is called successively on the scorers, each
getting the Notification to be scored, and the score outputted
by the previous scorer. At present there is a single scorer
which prioritizes Notifications that mention the display name of
a starred contact.

To turn off the StarredContactNotificationScorer:
adb shell settings put global contact_scorer_enabled 0

Change-Id: Ic16c80952e7c85bdde292ebb3f7900efb01f2e29
nternal/notification/DemoContactNotificationScorer.java
nternal/notification/NotificationScorer.java
1b6868cc4b8455e8660ba35ccdcc34abbaa43ffa 23-Jul-2013 Geremy Condra <gcondra@google.com> Merge "Support multiple Vpn ManageDialogs"
1a7472e7220a2b027464fb4a2281550f784a2ca3 02-Jul-2013 Amith Yamasani <yamasani@google.com> Have UserManagerService clear the restrictions and unblock apps

Since this is an operation that could take a few seconds to run and needs to be
completed even if Settings dies, best to do it in the user manager.

Refactored PIN challenge/setup UI with a field to verify existing pin
when changing to a new one.

Change-Id: I0b7df5b2ccb7f343aa9282a9245d3bc2b577a794
nternal/app/RestrictionsPinActivity.java
nternal/app/RestrictionsPinSetupActivity.java
06f2122050da10eae25c6a292c7ef92c49e3c311 18-Jul-2013 Dianne Hackborn <hackbod@google.com> Merge "Make it safe to use start/stop app ops outside of system proc"
4c8dfabff440aa7dd6fd23187c300855db8882e6 18-Jul-2013 Elliott Hughes <enh@google.com> am e9643874: am 0bad5370: Merge "Handle missing and invalid numeric values in XmlUtils."

* commit 'e964387466e380f17e28ab3dd75139509d043ffd':
Handle missing and invalid numeric values in XmlUtils.
e964387466e380f17e28ab3dd75139509d043ffd 18-Jul-2013 Elliott Hughes <enh@google.com> am 0bad5370: Merge "Handle missing and invalid numeric values in XmlUtils."

* commit '0bad537093ed5b493e4c2af778cf802a2cf2c15f':
Handle missing and invalid numeric values in XmlUtils.
0bad537093ed5b493e4c2af778cf802a2cf2c15f 18-Jul-2013 Elliott Hughes <enh@google.com> Merge "Handle missing and invalid numeric values in XmlUtils."
e98f5dbe6b6f9f2cb6a73ee750faacda2596b34f 18-Jul-2013 Dianne Hackborn <hackbod@google.com> Make it safe to use start/stop app ops outside of system proc

We now keep track of all of the active start operations per
non-system process, so they can be cleaned up if the process
goes away.

Change-Id: I9d05f1e0281c47dbe1213de014f0491f1359685c
nternal/app/IAppOpsService.aidl
bf6ff2c025405a3af496fe558dfc4468a9b45cc8 17-Jul-2013 Chad Brubaker <cbrubaker@google.com> Support multiple Vpn ManageDialogs

Move away from storing the configs in the Intent to prevent issues with
PendingIntents and multiple configs.

The Dialog now queries ConnectivityService for the configuration to
display in the management dialog.

Change-Id: I0e0ef52db840152914d117a24f776d8106e836ff
nternal/net/VpnConfig.java
2dc27f22c9f2ff5de9f9e7d578391ba2abb9815c 16-Jul-2013 Adam Powell <adamp@google.com> Fix collapsible action views.

Fix a regression caused by a previous overzealous refactoring. (Oops.)
Watch those conditionals, everyone!

Bug 9866559

Change-Id: Ia88a4ee38edef378e70bdc7151c825375a3d482d
nternal/view/menu/MenuItemImpl.java
08ec9b2f93a6196b49fe6adc3d98b1ad38b068b2 16-Jul-2013 Alan Viverette <alanv@google.com> Merge "Revert "Update ListMenuItemView to use a single RelativeLayout""
d9ddf52c1281db14d9243ecef6c07bdeed1e6e34 16-Jul-2013 Alan Viverette <alanv@google.com> Revert "Update ListMenuItemView to use a single RelativeLayout"

This reverts commit 8933efd49a0b2c10ddb30b23b57f5676634d0277.

BUG: 9774755
Change-Id: Ib6481e396092da81edd2c69f619f45f61e8fa393
nternal/view/menu/ListMenuItemView.java
045ad910b7efb912725b4fdc9e710d9a1d3d9d65 15-Jul-2013 Geremy Condra <gcondra@google.com> Merge changes Ia6646363,I94389b64

* changes:
Add per user VPN support
Add NetworkUtil function for marking sockets
4ca19e8377f33e8a80684fb4ee67f5a4bdc9ea76 14-Jun-2013 Chad Brubaker <cbrubaker@google.com> Add per user VPN support

VPNs are now per user instead of global. A VPN set by user A routes only
user A's traffic and no other user can access it.

Change-Id: Ia66463637b6bd088b05768076a1db897fe95c46c
nternal/net/VpnConfig.java
cc5b49f07ff856677cdfdbb0ecff1dcaeaaedc66 12-Jul-2013 Adam Powell <adamp@google.com> Merge "Fix MenuItemImpl#hasCollapsibleActionView for action providers"
b4c8ba49ac6ccce8e5c7904741f4adff05e37640 12-Jul-2013 Adam Powell <adamp@google.com> Fix MenuItemImpl#hasCollapsibleActionView for action providers

hasCollapsibleActionView was previously checking only that mActionView
was not null, even if the item had a valid ActionProvider that would
later lazily create an action view when prompted. Account for this and
attempt to create the action view if needed when
hasCollapsibleActionView is called.

Bug 8732876

Change-Id: Idf7b329770f686208882509b82a4cb13c70ef32c
nternal/view/menu/MenuItemImpl.java
ea04f3cfc6e245fb415fd352ed0048cd940a46fe 11-Jul-2013 Adam Powell <adamp@google.com> Always show overflow buttons on action bars

The menu button is not pining, it's passed on! This button is no more!
It has ceased to be! It's expired and gone to meet its maker! It's a
stiff! Bereft of life, it rests in peace! If you hadn't nailed it to a
flagship device it'd be pushing up the daisies!

THIS IS AN EX-BUTTON!!

Change-Id: Id523ef8efa7d0fa7120f8430222ac892fcafefda
nternal/view/ActionBarPolicy.java
9865ef1ba5800ec4ab82936eb016c3f563b07cbf 11-Jul-2013 Dianne Hackborn <hackbod@google.com> Merge "Add -c option to meminfo to dump a compact form."
20cdcee47d10986969e7e2a53a40a6ecabae3827 11-Jul-2013 Dianne Hackborn <hackbod@google.com> Add -c option to meminfo to dump a compact form.

Also fix a bug in FastPrintWriter where println(long) was
not printing the newline.

Change-Id: Idcb4eaab0c1ec4b992032b5e36478ef11a6533d9
nternal/util/FastPrintWriter.java
c39451267bd0c484f7d9a7ae6475533268be6640 10-Jul-2013 Adam Powell <adamp@google.com> Fix ListMenuItemView regression from patch 8933efd49

Passing 'true' as the third parameter of LayoutInflater#inflate does
cause it to add the inflated view to the parent in a single step, but
it also changes the return value to be the root of the resulting
hierarchy after the add rather than the root of the inflated layout.

Return to adding the view to its parent as a separate step.

Bug 9754101

Change-Id: I7ca4c921993594931f5007af69d45e9ff06065df
nternal/view/menu/ListMenuItemView.java
42e230cdb4dbd9c84456bfe3d60fb9115be44fe8 09-Jul-2013 Satoshi Kataoka <satok@google.com> Merge "Consolidate InputMethodUtils"
b282726d8604dad3ac06e9d8bf167f19332a05d7 04-Jul-2013 Satoshi Kataoka <satok@google.com> Consolidate InputMethodUtils

Change-Id: Ib5a5f3af8ea9eaaa81697d13c20abe28121e7373
nternal/inputmethod/InputMethodUtils.java
a2bbb9a7d1a65eff929bb280201fd07c30ee35d1 08-Jul-2013 Jean-Baptiste Queru <jbq@google.com> am 6cd4281d: am 65ba6d11: am 1e7276ce: Merge "Fix typo in AlertController.java"

* commit '6cd4281dae6c1de0196f79c6c155f75602de64f6':
Fix typo in AlertController.java
6cd4281dae6c1de0196f79c6c155f75602de64f6 08-Jul-2013 Jean-Baptiste Queru <jbq@google.com> am 65ba6d11: am 1e7276ce: Merge "Fix typo in AlertController.java"

* commit '65ba6d11e1f3ecf33a5b6e68ab8a6322e993b4d8':
Fix typo in AlertController.java
65ba6d11e1f3ecf33a5b6e68ab8a6322e993b4d8 08-Jul-2013 Jean-Baptiste Queru <jbq@google.com> am 1e7276ce: Merge "Fix typo in AlertController.java"

* commit '1e7276ce35f68c2df10b52c8adf8adc2882b8671':
Fix typo in AlertController.java
1e7276ce35f68c2df10b52c8adf8adc2882b8671 08-Jul-2013 Jean-Baptiste Queru <jbq@google.com> Merge "Fix typo in AlertController.java"
2ddce3226e2a1f380dfc4ad3f7e962dfdbfc39dd 01-Jul-2013 Vladimir Marko <vmarko@google.com> Handle missing and invalid numeric values in XmlUtils.

Convert these errors to XmlPullParserException.

Bug: 8584433
Change-Id: I070ed517682e7f047ec00271db26110da2bebb09
nternal/util/XmlUtils.java
f406e230125bc0328e80ffbc2ede92e61affe733 29-Jun-2013 Dianne Hackborn <hackbod@google.com> Merge "More work on procstats: save/restore state, fixes."
904a857d5a319e32d1df065b38e3191324b35b0f 29-Jun-2013 Dianne Hackborn <hackbod@google.com> More work on procstats: save/restore state, fixes.

We now persistent the current procstats to storage
to keep them across boots. Still need to do division
and pruning across days; right now they will just keep
collecting forever.

Also fix some bugs in the checkin output.

Change-Id: I4dd9317dbe2ee0642af8f2f0be1f2bd9c4055e80
nternal/os/BatteryStatsImpl.java
6e7affeb3d0d026db20690072d8a661847888a42 29-Jun-2013 Elliott Hughes <enh@google.com> am b8292830: resolved conflicts for merge of a920f25f to jb-mr2-dev-plus-aosp

* commit 'b8292830f79fc76ffb9a1be5cd316212ac494d03':
Switch frameworks/base over from @hidden Charsets to public StandardCharsets.
b8292830f79fc76ffb9a1be5cd316212ac494d03 29-Jun-2013 Elliott Hughes <enh@google.com> resolved conflicts for merge of a920f25f to jb-mr2-dev-plus-aosp

Change-Id: I3349f8d2e6715171e2677c1385122ceb2810c1f6
a920f25fe55fc9afc7640902a200f19ce278588b 29-Jun-2013 Elliott Hughes <enh@google.com> resolved conflicts for merge of fca0f92e to stage-aosp-master

Change-Id: I4791f0ffa324a313b8390fbde6d8f82f716ecf74
d396a448b2e36e29598c954b64bfddef73f3fae0 29-Jun-2013 Elliott Hughes <enh@google.com> Switch frameworks/base over from @hidden Charsets to public StandardCharsets.

Bug: 3484927
Change-Id: I5d136d2ee629588538602766a182ae14ce5fc63c
nternal/net/VpnProfile.java
nternal/util/ProcFileReader.java
afb292a23cd56e6f328164ede81522afe7ef1f89 28-Jun-2013 Jim Miller <jaggies@google.com> Merge "Simplify wake management code in keyguard."
e51cf7aeb6157017801a802b4c1d74cbf51b7a01 26-Jun-2013 Jim Miller <jaggies@google.com> Simplify wake management code in keyguard.

Removes onWakeKey/Motion handling from keyguard since it's no longer used.
The legacy code was originally intended to have keyguard filter wake events
which is now done in PhoneWindowManager. Ultimately it just needs to call
PowerManager.wakeUp() since keyguard no longer filters these keys.

Change-Id: I5b8ef9b422abf850a85b57f21944e5eb09fbedc2
nternal/policy/IKeyguardService.aidl
673e64dd627d4d6effc17648b2246d3b0af679b7 27-Jun-2013 Alan Viverette <alanv@google.com> Merge "Optimize width measurement and cache result in MenuPopupHelper"
62339911badb1fea2333cc6622a72c9a81b90659 27-Jun-2013 Alan Viverette <alanv@google.com> Merge "Update ListMenuItemView to use a single RelativeLayout"
053f61d6a6e23825e680dc49982e55c5b4299d61 27-Jun-2013 Dianne Hackborn <hackbod@google.com> Work on issue #9586838: Crash after waking up Hammerhead device

I made the power manager more rigid, not allowing different uids
to use the same wake lock. This never should happen. I would
guess there is somewhere that the activity manager is acquiring
the wake lock without clearing the calling identity... but it is
hard to follow all the paths this may happen in. So here we add
some checks when acquiring/releasing the wake lock to make sure
it is being done as the system uid.

Also:

- Protect the new activity stack calls with a permission, and
make sure to clear the calling uid once past that.
- Collect uid data from process stats so we can correctly
associate CPU use with a uid even if we don't know about the
pid for some reason.
- Fix battery stats dump commands to clear calling uid before
executing so they aren't broken.

Change-Id: I0030d4f7b614e3270d794ecfc3669139a5703ce9
nternal/os/ProcessStats.java
0bce6ab8cd8aadc9784dda2f3f4cc9dd91b796c7 27-Jun-2013 Alan Viverette <alanv@google.com> Optimize width measurement and cache result in MenuPopupHelper

BUG: 9591217
Change-Id: I0cc2fad39f967e92b2c954f6417430a42dce8e43
nternal/view/menu/MenuPopupHelper.java
8933efd49a0b2c10ddb30b23b57f5676634d0277 27-Jun-2013 Alan Viverette <alanv@google.com> Update ListMenuItemView to use a single RelativeLayout

BUG: 9591217
Change-Id: If5d301f70ac3806ab14e309affa57c625d897c7d
nternal/view/menu/ListMenuItemView.java
5fa9f2b127c2d7c40da419540f3425ac45a89439 27-Jun-2013 Amith Yamasani <yamasani@google.com> Merge "Single-user restrictions"
13ac041b9f21043bc7c848a743be618bfd7a67e9 26-Jun-2013 Dianne Hackborn <hackbod@google.com> Update procstats to start collecting/reporting pss.

Completely reworked how it manages its data, since trying
to keep track of all of the possible pss data with the old
data structures would have made it huge. Now we have a sparse
data structure for pss and process times. (Will switch service
times over to it soon.)

Currently the only thing that collects pss data is running
"dumpsys meminfo". More will be added later.

Modified checkin output to also scale better as more distinct
data categories are added, and added output of pss data. Now
instead of dumping every possible entry as a comma-separated
list, it dumps a comma-separated list of only the entries with
data, tagged with the state they go with.

Also fixed some problems in the checkin reporting of batterystats
(it needs to escape commas), added checkin reporting of the history
list, fixed parsing of kernel wake locks to strip quotes, fixed
wake lock name that the sync manager generates to be more sane.

Change-Id: Ibf4010838a9f685ebe1d93aff86c064ccc52b861
nternal/os/BatteryStatsImpl.java
655d0e2029e6ae77a47e922dce4c4989818b8dd1 12-Jun-2013 Amith Yamasani <yamasani@google.com> Single-user restrictions

Introduces a new "blocked" state for each package. This is used to temporarily
disable an app via Settings->Restrictions.

PIN creation and challenge activities for use by Settings and other apps. PIN
is stored by the User Manager and it manages the interval for retry attempts
across reboots.

Change-Id: I4915329d1f72399bbcaf93a9ca9c0d2e69d098dd
nternal/app/AlertActivity.java
nternal/app/RestrictionsPinActivity.java
nternal/app/RestrictionsPinSetupActivity.java
8c84109b9fbbf473b225707a38261ff5f99d95fb 24-Jun-2013 Dianne Hackborn <hackbod@google.com> Use FastPrintWriter... everywhere.

One problem this turned up is, because FastPrintWriter does
its own buffering, a lot of code that used to use PrintWriter
would fail -- if it pointed to a StringWriter, there was no
buffering, so it could just immediately get the result. Now
you need to first flush the FastPrintWriter.

Also added some new constructors to specify the size of buffer
that FastPrintWriter should use.

Change-Id: If48cd28d7be0b6b3278bbb69a8357e6ce88cf54a
nternal/logging/AndroidHandler.java
nternal/os/BatteryStatsImpl.java
nternal/os/ProcessStats.java
nternal/util/DumpUtils.java
nternal/util/FastPrintWriter.java
e5a9c92377e035b24f50f9f66f4cdfd9cf79c2dd 25-Jun-2013 Dianne Hackborn <hackbod@google.com> Improve FastPrintWriter.

Change-Id: I23acb8d4c3db1f2f8e2f8003296f8c253e2ae7d2
nternal/util/FastPrintWriter.java
142dd91583f429db43017ada2497d0ecfdc2b392 22-Jun-2013 Dianne Hackborn <hackbod@google.com> Merge "Faster PrintWriter."
db4e33f1f1d766afa3218a6bbdbb561e7962c854 02-Apr-2013 Dianne Hackborn <hackbod@google.com> Faster PrintWriter.

Change-Id: I4e1ae7e0357214deb7e19ae65f8701b69b347c6e
nternal/util/FastPrintWriter.java
76936eb96acdaf7feb221000be3e0d154fa5000c 22-Jun-2013 Michael Wright <michaelwr@google.com> Paint current points a different color in PointerLocation

Change-Id: I05be4ce1886f944cd948ded4d9ace08d70cdb00e
nternal/widget/PointerLocationView.java
32fa567b52b4082a1f5d2672e792c77819e435d7 17-Jun-2013 Adam Powell <adamp@google.com> Don't flip action bar main content and tabs

Nobody ever used or liked this "feature" anyway. Onward and upward!

Change-Id: Ica65c413d13ddb998992c7d8761ad5134f75e4fd
nternal/widget/ActionBarContainer.java
df1c0bf7744d4abd3e2000fcfec01c119b857c75 13-Jun-2013 Dianne Hackborn <hackbod@google.com> Add scheme specific part to IntentFilter.

Change-Id: I063d086cdc742800b8e31ddf2942f2e9230e2785
nternal/app/ResolverActivity.java
2f1cd7e68bc1f45243191f63984523ba6d36b590 12-Jun-2013 Michael Wright <michaelwr@google.com> Fix possible NPE in PointerLocationView

Change-Id: I36577d6882db898ff4d4d9090454cdf71a440fd5
nternal/widget/PointerLocationView.java
cbfd23ee6f14445c3e17c5169abbc80c216fa137 11-Jun-2013 Dianne Hackborn <hackbod@google.com> Add new API to retrieve a dumpsys of a single package.

Adds a platform API, and pm command. Fixes some issues with
dumping per-package data in package manager, makes battery
stats able to dump per-package state.

Change-Id: I76ee6d059f0ba17f7a7061886792b1b716d46d2d
nternal/os/BatteryStatsImpl.java
nternal/os/TransferPipe.java
7a1c3fce478122b9f03464117dc94d44f7c1995e 04-Jun-2013 Jeff Sharkey <jsharkey@android.com> Accumulate network statistics based on deltas.

Network stats are now read out of the kernel in one sweep, instead of
reading per-UID. We now accumulate the delta traffic between each
stats snapshot using the well-tested SamplingCounter pattern.

Since Wi-Fi and mobile traffic have different costs, track each
separately. Avoids counting misc interfaces like loopback and
ethernet under total.

Bug: 5543387
Change-Id: I642004dc530113c27ef79f2abbae51d8af30117f
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
84f3c5689cffbfc1e45a0101d5bb636323769f54 05-Jun-2013 Jeff Sharkey <jsharkey@android.com> am ffbbe945: am d293d229: Merge "Create missing Uids when recording network stats." into jb-mr2-dev

* commit 'ffbbe945066bf0b295ff65edfb1c49f7a4311718':
Create missing Uids when recording network stats.
ffbbe945066bf0b295ff65edfb1c49f7a4311718 05-Jun-2013 Jeff Sharkey <jsharkey@android.com> am d293d229: Merge "Create missing Uids when recording network stats." into jb-mr2-dev

* commit 'd293d229493a2d661ebb1776a0915297927a5ca6':
Create missing Uids when recording network stats.
51797ed706e6e30cddfc0c1e3a9865064f8cdd6e 04-Jun-2013 Jeff Sharkey <jsharkey@android.com> Create missing Uids when recording network stats.

Bug: 5543387
Change-Id: I138c8d2f84e6fd737f2f6ef0945e75ca31256e3d
nternal/os/BatteryStatsImpl.java
3f7a6935d37e36190a7d131a0193739c272fbe05 01-Jun-2013 Adam Powell <adamp@google.com> Merge "Fix a bug resolving the correct icon/logo in action bars"
04fe6ebb9f919f196ec06a19bebc09b8e943f95b 31-May-2013 Adam Powell <adamp@google.com> Fix a bug resolving the correct icon/logo in action bars

Remove some abstraction-breaking magic in ActionBarView and replace it
with proper resolution of the icon/logo when creating a window. The
old implementation relied on the ActionBarView's context being an
Activity.

Bug 9171554

Change-Id: Idbbb1942622195dcb55e8119f2d64287b07bb509
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarView.java
718aefb6ff11d16ce7412c81e4d4d9c29124eead 31-May-2013 Jeff Brown <jeffbrown@google.com> am 6474d840: am 636af7a1: Merge "Rename CALLBACK_FLAG_ACTIVE_SCAN for clarity." into jb-mr2-dev

* commit '6474d8407cb1551608fc403861e11cf514f8558e':
Rename CALLBACK_FLAG_ACTIVE_SCAN for clarity.
6474d8407cb1551608fc403861e11cf514f8558e 31-May-2013 Jeff Brown <jeffbrown@google.com> am 636af7a1: Merge "Rename CALLBACK_FLAG_ACTIVE_SCAN for clarity." into jb-mr2-dev

* commit '636af7a1cb90bb2f422bc85356d30f5b4e9342e6':
Rename CALLBACK_FLAG_ACTIVE_SCAN for clarity.
14507e257af5d71577574e25cbd690c4b54c9272 30-May-2013 Jeff Brown <jeffbrown@google.com> Rename CALLBACK_FLAG_ACTIVE_SCAN for clarity.

Bug: 9210033
Change-Id: I973c03b3a37e12af72a27c46d7da7fb59a30b606
nternal/app/MediaRouteChooserDialogFragment.java
087d2b2df78e44b92e02a241ba6e7f917f63bac6 30-May-2013 Adam Powell <adamp@google.com> Merge "Optimizations for ResolverActivity"
0256c6f8d31c95f730d286b9e2ebae94736f7098 30-May-2013 Adam Powell <adamp@google.com> Optimizations for ResolverActivity

Load app icons using AsyncTask instead of during list item binding.

Make sorting resolved components by display name case insensitive.

Change-Id: I8e69781ed021035b9f0dac349791b3d8a674cf60
nternal/app/ResolverActivity.java
6196cfdb528d662741c68126062dd34d78641a5b 30-May-2013 Svetoslav <svetoslavganov@google.com> Merge "Remove Auto-rotate screen setting if a required feature is missing."
4759c35e423a949699d7b3438e0239e33452af7a 24-May-2013 Michael Wright <michaelwr@google.com> am bf0d561c: Merge "Pipe through bounding box information (DO NOT MERGE)" into jb-mr2-dev

* commit 'bf0d561c73abd97a1a3794e9aa62b21911279a12':
Pipe through bounding box information (DO NOT MERGE)
5e025eb1dc151a158d2fd7b12bb3a1c891b25d81 16-May-2013 Michael Wright <michaelwr@google.com> Pipe through bounding box information (DO NOT MERGE)

Bug: 9110236
Change-Id: I7aefe6589fbaf92e5c71a0ba5425623578bafe95
nternal/widget/PointerLocationView.java
86172f6252fe2ed49a1cdea5cafd0ba2e049255d 16-May-2013 Michael Wright <michaelwr@google.com> Pipe through bounding box information

Change-Id: Ic09f2f8f18e21f9582e4ed10aad3b7ec1cc41ddc
nternal/widget/PointerLocationView.java
fee8cd75823413a28f004d13e1f25a8954ac2900 10-May-2013 Dianne Hackborn <hackbod@google.com> am e8c9b39e: am 83d6df27: Merge "Help on issue #8863955: Google Services keeping phone awake..." into jb-mr2-dev

* commit 'e8c9b39ec976029d3571f8904a3db21d6514ecf6':
Help on issue #8863955: Google Services keeping phone awake...
e8c9b39ec976029d3571f8904a3db21d6514ecf6 10-May-2013 Dianne Hackborn <hackbod@google.com> am 83d6df27: Merge "Help on issue #8863955: Google Services keeping phone awake..." into jb-mr2-dev

* commit '83d6df27d40aed18a7dc42c9320f83656cc81ea0':
Help on issue #8863955: Google Services keeping phone awake...
89efc6e6c1bba5866e7bdb1bb9e009022ec9d691 10-May-2013 Jeff Brown <jeffbrown@google.com> am da58f92b: am b2f6842d: Merge "Add an API to allow a callback to request active scans." into jb-mr2-dev

* commit 'da58f92bfaf875074656a55103c819e6f4dda341':
Add an API to allow a callback to request active scans.
83d6df27d40aed18a7dc42c9320f83656cc81ea0 10-May-2013 Dianne Hackborn <hackbod@google.com> Merge "Help on issue #8863955: Google Services keeping phone awake..." into jb-mr2-dev
da58f92bfaf875074656a55103c819e6f4dda341 10-May-2013 Jeff Brown <jeffbrown@google.com> am b2f6842d: Merge "Add an API to allow a callback to request active scans." into jb-mr2-dev

* commit 'b2f6842d5528345e02a91218fbe58c3e0ca8bafb':
Add an API to allow a callback to request active scans.
af17baa27196e785989e99b0ecbe7f1c98a1f0cb 10-May-2013 Dianne Hackborn <hackbod@google.com> Help on issue #8863955: Google Services keeping phone awake...

...because of Google Play Services

Raise the limit on the number of wake locks we track per uid.

Get rid of the separate limit for the system process, since it
now isn't any larger than the new limit for regular processes.

Change-Id: Ic10c81cad7d4ad4aabf1f53f78191a0973a1d784
nternal/os/BatteryStatsImpl.java
66f3b39ec452a8a03e3254e77e19ccb764ee931f 09-May-2013 Jeff Brown <jeffbrown@google.com> Add an API to allow a callback to request active scans.

This API is needed by the support library media router to ensure
that wifi display routes can be discovered while the route
chooser dialog is open.

Bug: 8175766
Change-Id: I3773773d93384aa4a3c009e71a5444ee8ce37caf
nternal/app/MediaRouteChooserDialogFragment.java
ed96ea2a07ae20c186ad9073d8f0b26419eb35f8 09-May-2013 Romain Guy <romainguy@google.com> Merge "Add the ability to disable OpenGL drivers preloading Bug #8888857"
c5e3638c06f30827cdc6eb0d987adb677e900487 09-May-2013 Romain Guy <romainguy@google.com> Add the ability to disable OpenGL drivers preloading
Bug #8888857

Set ro.zygote.disable_gl_preload to true in the build properties.

Change-Id: Idd93ebb4bbd2861ce60af03ed14819a5cfa70dec
nternal/os/ZygoteInit.java
dad7bd706a4ecca245b4dbe770862874e1854225 09-May-2013 Romain Guy <romainguy@google.com> Merge "Load OpenGL drivers libraries in Zygote"
74c691221b620d74eafff315bf7c8ed8c4b58f3a 09-May-2013 Romain Guy <romainguy@google.com> Load OpenGL drivers libraries in Zygote

This does not initialize EGL/GL.

Change-Id: I951ae0b7defee86eb06821ea807af3e829f4a73c
nternal/os/ZygoteInit.java
dbcf2d7482562eff45ac727cea799b37a260e399 18-Apr-2013 Nick Kralevich <nnk@google.com> PowerManagerService: Don't reboot directly.

Instead of calling the reboot system call ourselves, send
a message to init asking it to reboot the system. Init is in
a better position to make sure the system is cleanly shutdown.

Get rid of CAP_SYS_BOOT from system_server.

Bug: 8646621
Change-Id: I200722412844ad8d99e35a442021c6263c3ebc05
nternal/os/ZygoteInit.java
ef5352c3a18c41e74afcb3609ef99942634d15d6 06-May-2013 Adam Powell <adamp@google.com> am f581b533: am 2b662e8e: Merge "Fix a NPE in MenuItemImpl when setting null ActionProvider" into jb-mr2-dev

* commit 'f581b533cf0ff774405bae057f5883fe9768c6a8':
Fix a NPE in MenuItemImpl when setting null ActionProvider
f581b533cf0ff774405bae057f5883fe9768c6a8 06-May-2013 Adam Powell <adamp@google.com> am 2b662e8e: Merge "Fix a NPE in MenuItemImpl when setting null ActionProvider" into jb-mr2-dev

* commit '2b662e8ef96c645e38a3debc29afa7454664f6cb':
Fix a NPE in MenuItemImpl when setting null ActionProvider
2b21dd0bbe389bd3d88d296b2d8d23bd6eea0286 03-May-2013 Kenny Root <kroot@google.com> resolved conflicts for merge of ee0a5faf to master

Change-Id: Iba0ad9e665ad98379761995cb7c32415bcf50e48
2b662e8ef96c645e38a3debc29afa7454664f6cb 03-May-2013 Adam Powell <adamp@google.com> Merge "Fix a NPE in MenuItemImpl when setting null ActionProvider" into jb-mr2-dev
ee0a5fafa75bcae10aaee645ee3543c61d5aeecf 03-May-2013 Satoshi Kataoka <satok@google.com> am 245a3e1c: Merge "Change the initial disabled state of disabled IMEs" into jb-mr2-dev

* commit '245a3e1c1ed265a13d07000ef6e786ec321b85c4':
Change the initial disabled state of disabled IMEs
dcc55855bc660fc2f45d02a1398be2e4fcf5fcb5 03-May-2013 Adam Powell <adamp@google.com> Fix a NPE in MenuItemImpl when setting null ActionProvider

Change-Id: I00be010b2197d0f41d0e45b3814474d3ad0c3295
nternal/view/menu/MenuItemImpl.java
c9dc93e5ca71ce1df792e6ac9fcfe8d9eda4f96c 03-May-2013 Dianne Hackborn <hackbod@google.com> Merge "Start combining threads in system process."
8d044e8bc287c1a567d82aedbe30085b011544c3 01-May-2013 Dianne Hackborn <hackbod@google.com> Start combining threads in system process.

This introduces four generic thread that services can
use in the system process:

- Background: part of the framework for all processes, for
work that is purely background (no timing constraint).
- UI: for time-critical display of UI.
- Foreground: normal foreground work.
- IO: performing IO operations.

I went through and moved services into these threads in the
places I felt relatively comfortable about understanding what
they are doing. There are still a bunch more we need to look
at -- lots of networking stuff left, 3 or so different native
daemon connectors which I didn't know how much would block,
audio stuff, etc.

Also updated Watchdog to be aware of and check these new
threads, with a new API for other threads to also participate
in this checking.

Change-Id: Ie2f11061cebde5f018d7383b3a910fbbd11d5e11
nternal/content/PackageMonitor.java
nternal/os/BackgroundThread.java
ed1cdb24ba986231629fbfb244ed758fc2add0fc 17-Apr-2013 Satoshi Kataoka <satok@google.com> Change the initial disabled state of disabled IMEs

Bug: 8365223

This change is a supplement for I77f01c70610d82ce9070d4a
The disabled state of disabled pre-installed imes should be changed
to ENABLED_STATE_DISABLED_UNTIL_USED on boot or user switch.

Change-Id: If8ff1b2b95c36d33148def2ab87bd006aa520cc0
nternal/inputmethod/InputMethodUtils.java
79578b29bf4ba1d210586b9d7bb832eddf0960b7 30-Apr-2013 Svetoslav <svetoslavganov@google.com> Remove Auto-rotate screen setting if a required feature is missing.

It is possible that a device running Android does not support rotation,
for example a Google TV box. The change adds a check to the rotation
policy to take this into account.

The SystemUI was not respecting the fact that the user has turned off
screen rotation, i.e. locked the rotation, from the accessibility
settings. In this case we should not show the affordance to toggle
screen rotation in the quick settings to minimize the risk of a blind
user accidentally turning screen rotation on. For a blind person
screen rotation adds 2X complexity since he/she should learn two
different layouts for the app.

bug:8051556

Change-Id: If1b3c092476932f91b0345fb9bfbbf6ed33d0df9
nternal/view/RotationPolicy.java
d9ad188a180072b3e9df4c09544174497e58e7af 01-May-2013 Casey Burkhardt <caseyburkhardt@google.com> am dd7d8ec1: am 203aa72e: Merge "Rebuilds ActionBar accessibility description as needed" into jb-mr2-dev

* commit 'dd7d8ec17ec1129f33764e025366129d3562ea7e':
Rebuilds ActionBar accessibility description as needed
dd7d8ec17ec1129f33764e025366129d3562ea7e 01-May-2013 Casey Burkhardt <caseyburkhardt@google.com> am 203aa72e: Merge "Rebuilds ActionBar accessibility description as needed" into jb-mr2-dev

* commit '203aa72e747794a64a8262ceb6c9cdc8381e77cb':
Rebuilds ActionBar accessibility description as needed
8452a7f2f6cb5a67535ac3a0af3c46b3c16996ec 01-May-2013 Casey Burkhardt <caseyburkhardt@google.com> Rebuilds ActionBar accessibility description as needed

Previously, ActionBarView only updated the contentDescription for the navigate
up/home affordance when it is enabled or disabled. This causes that description
to be rebuilt and applied whenever the title or subtitle of the view is changed.
This also inadvertantly removes whitespace in ActionBarView.

Bug: 8757286
Change-Id: I1ea02cad20e0d5c0c57d071727cc647c4dd52d44
nternal/widget/ActionBarView.java
ec43a6bc17d90058ba2c00e016846c863ab239bc 30-Apr-2013 Jeff Sharkey <jsharkey@android.com> Better --unplugged support when dumping battery.

Also fixes logBatteryStatsLocked() to output valid dump data, instead
of just a usage message.

Bug: 8708665
Change-Id: Ie0d8d90e1a470b7e1e902643333309c2cf7bdb72
nternal/os/BatteryStatsImpl.java
3e013e85b0dfb9db58a4401b80d672a7eeb09d47 25-Apr-2013 Jeff Sharkey <jsharkey@android.com> Track foreground activities in battery stats.

To help correlate battery usage against actual foreground app usage,
start tracking time on a per UID basis. It uses the nesting feature
of StopwatchTimer to track multiple PIDs inside the same UID.

Improves units on docs, and persists foreground CPU time with a
consistent ordering. Reports foreground activities time and
foreground CPU time.

Change-Id: I95d12963923e3fd421730f6fbfc842dfd8d3a055
nternal/os/BatteryStatsImpl.java
nternal/os/ProcessStats.java
c56b831a1f6f044451df69aafaea1b37c780a360 24-Apr-2013 Alex Klyubin <klyubin@google.com> am 50289346: am a6436526: Merge "Human-readable POSIX capabilities for SystemServer."

* commit '50289346b3010e24b6a7b86a774d88b81fc28f3b':
Human-readable POSIX capabilities for SystemServer.
50289346b3010e24b6a7b86a774d88b81fc28f3b 24-Apr-2013 Alex Klyubin <klyubin@google.com> am a6436526: Merge "Human-readable POSIX capabilities for SystemServer."

* commit 'a643652680486bd1009248d1bd8fcea7da92d661':
Human-readable POSIX capabilities for SystemServer.
48a06e740782184bd126ab743150b474abc9e6a4 19-Apr-2013 Alex Klyubin <klyubin@google.com> Human-readable POSIX capabilities for SystemServer.

Change-Id: I8fecdc55b2cf0041ceed643eb48df53d22ecd600
nternal/os/ZygoteInit.java
4173a89d120f89d3d96eac74684640093e437707 18-Apr-2013 Adam Powell <adamp@google.com> am 61a826ef: am 70e37696: Merge "Fix ActionBar#setHomeActionContentDescription(0)" into jb-mr2-dev

* commit '61a826eff10c4b275a9569a0edd6301924a6d4e7':
Fix ActionBar#setHomeActionContentDescription(0)
2eeb419e55e0467e04ca054a2de04b725604da27 18-Apr-2013 Adam Powell <adamp@google.com> Fix ActionBar#setHomeActionContentDescription(0)

This call should be analogous to calling
setHomeActionContentDescription(null) and not throw an exception.

Bug 8657256

Change-Id: Ifa9c7b999f4bf1a31fba43f869e234b1f1861512
nternal/widget/ActionBarView.java
3569e9e50c3a467e9094d24272b8e1f091ac8d86 17-Apr-2013 Jim Miller <jaggies@google.com> resolved conflicts for merge of 2f6a2526 to master

Change-Id: Ie51d3a63f4d4d5bad7ef16ad84ef6ad5acdaa64a
b1e5137a807d19a9cbc241c0ba84c3c49b32fceb 17-Apr-2013 Jim Miller <jaggies@google.com> Merge "Move owner info from Settings.Secure to LockSettings" into jb-mr2-dev
187ec581c66fec49a5ee7db8edec6d9eb0e209fc 16-Apr-2013 Jim Miller <jaggies@google.com> Move owner info from Settings.Secure to LockSettings

Fixes bug 8512972

Change-Id: Ic046aff0332b78489dda08b1e9e71f4c16154f10
nternal/widget/LockPatternUtils.java
a720a87fded1704d1a7490956bc5ec682b67a4fb 17-Apr-2013 Jamie Gennis <jgennis@google.com> am a0b28ca7: am 95a869f9: Merge "Disable tracing from Zygote" into jb-mr2-dev

* commit 'a0b28ca74806dcf46300d82ebb689b002bd36955':
Disable tracing from Zygote
6ad0452e6301c0650f58f3991f7c523f6f279ddb 16-Apr-2013 Jamie Gennis <jgennis@google.com> Disable tracing from Zygote

This change disables all atrace tracing in Zygote immediately after it is
initialized. This is necessary because Zygote has no way to receive
notifications that the enabled trace tags have been changed. Tracing is
re-enabled when other processes fork from Zygote.

Change-Id: If2983858fb0c4890ba9ab041849b1c4d98f66c13
nternal/os/ZygoteInit.java
c06464acf014950dd06455dc28aa05d025a6aadb 16-Apr-2013 Svetoslav Ganov <svetoslavganov@google.com> am 84677dff: am ad435ba7: Merge "Send tab selection event from ScrollingTabContainerView." into jb-mr2-dev

* commit '84677dff59a663204743343e92fcab1ddbd057f4':
Send tab selection event from ScrollingTabContainerView.
ad435ba7fff45b8a15ebda08f88767511935a5d7 16-Apr-2013 Svetoslav Ganov <svetoslavganov@google.com> Merge "Send tab selection event from ScrollingTabContainerView." into jb-mr2-dev
b436a328a5392b3ed33ca1186c85b71af61497d1 16-Apr-2013 Wink Saville <wink@google.com> am bab00057: am c6f2d17a: Merge "Add mHasQuit to fix an NPE in StateMachine." into jb-mr2-dev

* commit 'bab000578d7ad6b380c558f28685d2303b64abc8':
Add mHasQuit to fix an NPE in StateMachine.
03812c7894bd51ffc27aece5933791e4a00d679b 16-Apr-2013 Wink Saville <wink@google.com> Add mHasQuit to fix an NPE in StateMachine.

After quiting mStateStack and other variables become
null so ignore all messages.

Bug: 8627228
Change-Id: I60150fb8023340768b38c2e72a8cbc982a59e0a8
nternal/util/StateMachine.java
b9f2e99f26c5cd3546235a183bb3402a2f1e82f8 16-Apr-2013 Alan Viverette <alanv@google.com> Send tab selection event from ScrollingTabContainerView.

BUG: 8185409
Change-Id: I37c59906d2950d09e0e39ca91ffad34279dd9526
nternal/widget/ScrollingTabContainerView.java
328ebf222167ee1d25a54fd34c8293e183303752 22-Mar-2013 Jeff Sharkey <jsharkey@android.com> Support persistable Uri permission grants.

When granting a Uri permission with new PERSIST_GRANT_URI_PERMISSION
flag, persist that grant across device reboots until explicitly
revoked. Adds new persistedModeFlags dimension to UriPermission,
and moves all flag mutation into UriPermission for clarity. Adds
flag documentation. Only inflate HashSet as needed.

Write persisted grants into XML file, saving based on source and
target package name and user handle. Sanity check grants when
parsing.

Wipe all grants from/to a package when uninstalled, and wipe any
transient grants when a package or user is force stopped.

Persistable grants are always considered "needed."

Change-Id: I3f001571b498fd607456a1257a6383f904d19497
nternal/util/IndentingPrintWriter.java
1dbc9ec38fd424766c41ecf7d289730d2a40d8f1 12-Apr-2013 Jim Miller <jaggies@google.com> am cda71226: am eec68e55: Merge "Fix keyguard pattern invalidate bug" into jb-mr2-dev

* commit 'cda712266f88e05195018dce31cf76511e0e3637':
Fix keyguard pattern invalidate bug
eec68e55cc6661837030c8ecb4386d05b1d31685 12-Apr-2013 Jim Miller <jaggies@google.com> Merge "Fix keyguard pattern invalidate bug" into jb-mr2-dev
e7086a47e337decb4cb4477e9fd37d2fcf0308b6 12-Apr-2013 Benjamin Poiesz <bpoiesz@google.com> am b3ebc306: am fc9f07dd: Merge "Adding LocalePicker support for the zz_ZZ pseudolocale" into jb-mr2-dev

* commit 'b3ebc306c256bb75282da23e5e3995fca6680ba0':
Adding LocalePicker support for the zz_ZZ pseudolocale
39f96f95c3ee5e6c2f2e96f2bdf4ba29d18840fe 05-Apr-2013 Benjamin Poiesz <bpoiesz@google.com> Adding LocalePicker support for the zz_ZZ pseudolocale

Bug #8556677

Change-Id: I47244765b240f1ba66eadbef4ac712cf4367566e
nternal/app/LocalePicker.java
9ddfeb83aa071990110c0dac7f9280d35ebf2239 11-Apr-2013 Jim Miller <jaggies@google.com> Fix keyguard pattern invalidate bug

The framework used to invalidate both the previous invalidate
region and the current one. However, with change I9fb96f99
this is no longer the case (it was always true for software
rendering, but never showed because most platforms use
acceleration).

The fix is to invalidate the union of the old region and
the new region ourselves.

Fixes bug 8503031

Change-Id: If303e0892772dd9d6915efa55118d054a742c1a5
nternal/widget/LockPatternView.java
865ec9d9682c73e72e542988d09c1cbbde8903bc 10-Apr-2013 Adam Powell <adamp@google.com> am 3431f7ed: am 2c966932: Merge "Fix for ActionBar#setSelectedNavigationItem() in collapsed tab mode" into jb-mr2-dev

* commit '3431f7ed1527061a3ad02b3562c1e1b9700f789d':
Fix for ActionBar#setSelectedNavigationItem() in collapsed tab mode
daa1d56726358c4db476dff75c7fd0be201c64c5 09-Apr-2013 Adam Powell <adamp@google.com> Fix for ActionBar#setSelectedNavigationItem() in collapsed tab mode

Make sure the selected item is properly propagated to the collapsed
spinner.

Bug 6754308

Change-Id: Iaa4e331b00106b31c5984980d33e3ac88853ae4d
nternal/widget/ScrollingTabContainerView.java
e6bec854d5730426a5338b873490d8963da88471 08-Apr-2013 Dianne Hackborn <hackbod@google.com> am 3793b928: am bc948101: Merge "Have audio service clean up new receivers in crashing processes." into jb-mr2-dev

* commit '3793b92816d940b265468e9f2f071fbf35db534d':
Have audio service clean up new receivers in crashing processes.
bc948101043b3c4b57eb6e0e2421494fd7c1d41e 08-Apr-2013 Dianne Hackborn <hackbod@google.com> Merge "Have audio service clean up new receivers in crashing processes." into jb-mr2-dev
79f7ec70ebd5758ce54fd5b6fcd60fd27457cba6 05-Apr-2013 Dianne Hackborn <hackbod@google.com> Have audio service clean up new receivers in crashing processes.

The new media button receiver with only a pending intent (no
component name) could be left hanging if the process that
registered it went away. These semantically need to be tied
to the calling process's lifetime; we now clean them up when
the calling process goes away.

Also added some additional cleanup of media button receivers
when packages change (updated, cleared).

And on top of that, a new "media" command for doing media
things. Currently lets you send media keys and monitor
remote display data.

Oh and finally added a new BaseCommand base class for
implementing these command line utilities.

Change-Id: Iba1d56f10bab1eec4a94a7bb1d1c2ae614c8bcf5
nternal/os/BaseCommand.java
d7fd69c04567b375844a7653a485324434f78813 06-Apr-2013 Adam Powell <adamp@google.com> am dddd59ff: am e0e2f4fd: Fix accessibility in action bars and add extra customization

* commit 'dddd59ff63c3121b53e790bb20b5b5d735036c30':
Fix accessibility in action bars and add extra customization
e0e2f4fd3ac8e70e341ae52d6376d8d67bd9edce 06-Apr-2013 Adam Powell <adamp@google.com> Fix accessibility in action bars and add extra customization

Fix a bug where the content description of the big unified Home/Up
button was not getting set properly.

Add the ability to change the home-as-up glyph from ActionBar.

Add the ability to set a custom action description for the home-as-up
button, useful if the above functionality is used.

Bug 8548229

Change-Id: I0635799772c7234b68247dfc105dce7f11acda32
nternal/app/ActionBarImpl.java
nternal/view/menu/ActionMenuItem.java
nternal/widget/ActionBarView.java
ae9d6aa6d96ad382bba27e8104ea99ad06d81008 05-Apr-2013 Jeff Brown <jeffbrown@google.com> am 4c2a7b23: am 4a706bc6: Merge "Correctly manage the lifecycle of IME InputChannels." into jb-mr2-dev

* commit '4c2a7b23f5f012cf00357035f840a32d4da20eb5':
Correctly manage the lifecycle of IME InputChannels.
4a706bc6f1dcf4483b282d5758e22482cf02506f 05-Apr-2013 Jeff Brown <jeffbrown@google.com> Merge "Correctly manage the lifecycle of IME InputChannels." into jb-mr2-dev
8740cb1da6adb71a4e195774801c97db5853b097 05-Apr-2013 John Spurlock <jspurlock@google.com> resolved conflicts for merge of 29211d3a to master

Change-Id: I9691f41b12fbf52d0ef35a9bf5223edef7afdfd2
5feceebb892d4cb5777cea3c6174b206705d456b 23-Mar-2013 Daniel Sandler <dsandler@android.com> New NotificationListenerService.

This is the best and only way for apps to listen for
notifications: create a NotificationListenerService, wait
for the NoMan to bind to you (as a result of the user
checking a box somewhere in Settings and agreeing to a
scary dialog box), and you'll start receiving notification
posted and dismissed callbacks. Your service, while enabled,
will also be able to clear one or all notifications.

Use this power wisely.

This change moves StatusBarNotification out of
com.android.internal into android.service.notification.
[Internal customers, including System UI and early users of
the system-only listener binder API, will need to be
updated.]

Bug: 8199624
Change-Id: I1be46f823d4b3ddc901109ec1e085cd6deb740c2
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
nternal/statusbar/StatusBarNotification.aidl
nternal/statusbar/StatusBarNotification.java
1951ce86c21445ac191e4d2d95233f4f5c096b56 05-Apr-2013 Jeff Brown <jeffbrown@google.com> Correctly manage the lifecycle of IME InputChannels.

InputChannels are normally duplicated when sent to a remote process
over Binder but this does not happen if the recipient is running within
the system server process. This causes problems for KeyGuard because the
InputMethodManagerService may accidentally dispose the channel
that KeyGuard is using.

Fixed the lifecycle of InputChannels that are managed by the IME
framework. We now return a duplicate of the channel to the application
and then take care to dispose of the duplicate when necessary.
In particular, InputBindResult disposes its InputChannel automatically
when returned through Binder (using PARCELABLE_WRITE_RETURN_VALUE).

Bug: 8493879
Change-Id: I08ec3d13268c76f3b56706b4523508bcefa3be79
nternal/view/InputBindResult.java
5677e78863cc00bbe5ef0fa66f3e1da287b18f97 04-Apr-2013 Adam Powell <adamp@google.com> am 2987c218: am 728827ff: Merge "Uphold common ordering expectations around action bar Home/Up dispatch" into jb-mr2-dev

* commit '2987c218e351c76941f09bddb3eb46a572ca6644':
Uphold common ordering expectations around action bar Home/Up dispatch
8c16aa9fa225c277c3ead605b16dc697709bda27 04-Apr-2013 Adam Powell <adamp@google.com> Uphold common ordering expectations around action bar Home/Up dispatch

Some apps aren't particularly happy if a stray key event is dispatched
to a newly created window before its menu is prepared, causing the
action bar's Home/Up event to be dispatched. Ignore these clicks on
the Home/Up button before the menu goes through its initial prepare
step.

Note that it is still possible (and valid!) for Home/Up to be
dispatched even if the app chose to return false from
onCreateOptionsMenu or similar.

Bug 7085070

Change-Id: If4b7d5f8c5a08ce8a094f1919347604d78ddedfb
nternal/widget/ActionBarView.java
3261b537c5fdec824575a1f6ad6d8942715e82e2 01-Apr-2013 Jean-Michel Trivi <jmtrivi@google.com> RemoteControlClient receives playback position change requests

RemoteControlClient defines two listener interfaces for playback
position, one to let the framework query the current playback
position, the other to request playback to seek to a given
position.

Updated IRemoteControlDisplay interface to support passing info
about whether the user of RemoteControlClient can provide a
playback position, and receive a new one.
Updated implementations of IRemoteControlDisplay to new
interface.

Bug 8120740

Change-Id: I1a5a969da4d0f8c9ad27f691919dd08f8653982b
nternal/widget/TransportControlView.java
bc43b4c2f24fd03c0d0546895c97918c1736d9fb 22-Mar-2013 Jean-Michel Trivi <jmtrivi@google.com> RemoteControlClient can report current position, speed

Extend RemoteControlClient class to support reporting the
current playback position, and the playback speed.
Define listener for an application to receive new playback
position to seek to (use of listener to be implemented).
Update IRemoteControlDisplay implementations to new interface.

bug 8120740

Change-Id: I2654daeca1ac49713d325df8226dceb85943c020
nternal/widget/TransportControlView.java
62a2cb09026bf7b0658c1e41c905f38649a3c77c 28-Mar-2013 Robert Greenwalt <rgreenwalt@google.com> am 766991ae: am 5acc8632: Merge "Add BT - DataTracker connection" into jb-mr2-dev

* commit '766991ae212f50695754c3ded5d9815fb0d99b24':
Add BT - DataTracker connection
665e1aed5e99af1e66af56c0d73e32fd86f57273 22-Aug-2012 Robert Greenwalt <rgreenwalt@google.com> Add BT - DataTracker connection

Allows the external BT stack the means to communicate with
ConnectivityService during reverse tethering.

bug:8445208
Change-Id: Ice7dfb0b50c9481d359aed14a51372878185171c
nternal/util/Protocol.java
c5ebd80c43e388977e4ef978f18fa5fc36bd8650 27-Mar-2013 Jeff Brown <jeffbrown@google.com> am 901b77c6: am ca3d655d: Merge "Use input transport for communications between app and IME." into jb-mr2-dev

* commit '901b77c63bc707c5785a149975e2113a43e38ad6':
Use input transport for communications between app and IME.
ca3d655d20c13c71972a4475cec3b98efa7dbdd0 27-Mar-2013 Jeff Brown <jeffbrown@google.com> Merge "Use input transport for communications between app and IME." into jb-mr2-dev
20bf8338d1b1fc7c9aaec8f52afd25f1f1633fd5 26-Mar-2013 Adam Powell <adamp@google.com> am 36375eca: am 7f51ae71: Merge "Fix some visibility state transition issues with ActionBarView" into jb-mr2-dev

* commit '36375eca1afee18786d5446ccc040d7a072dd663':
Fix some visibility state transition issues with ActionBarView
7f51ae71f170f61439516321a107507c4d1c0ac0 26-Mar-2013 Adam Powell <adamp@google.com> Merge "Fix some visibility state transition issues with ActionBarView" into jb-mr2-dev
c28867a1d67121ce5963de135e3ae2b1dbd9a33d 26-Mar-2013 Jeff Brown <jeffbrown@google.com> Use input transport for communications between app and IME.

The input method manager service now supplies an input channel for
communication while creating an IME session on behalf of the
application.

This change significanly reduces the overhead of IME event dispatch
by using a standard input channel to send input events rather than
using binder. This results in fewer thread context switches
and fewer object allocations.

What's more, the IME may perform additional batching of the motion
events that it receives which may help it catch up if it is
getting behind while processing them.

Bug: 7984576
Bug: 8473020
Change-Id: Ibe26311edd0060cdcae80194f1753482e635786f
nternal/view/IInputMethod.aidl
nternal/view/IInputMethodCallback.aidl
nternal/view/IInputMethodSession.aidl
nternal/view/InputBindResult.java
6684e92ae83fab00108bf2964e703d1037c0b882 26-Mar-2013 Adam Powell <adamp@google.com> Fix some visibility state transition issues with ActionBarView

Restore state as expected for titles and expanded action views.

Bug 8246128

Bug 8479205

Change-Id: Icad59685c5eab241f19ecd94479dc5e7a9f678b6
nternal/widget/ActionBarView.java
d5444c6699416f58c280fcd2e9cfb904bcbf473a 26-Mar-2013 Geremy Condra <gcondra@google.com> am e76fab2a: am df4144f4: am 9fa57b74: am 2aee33c1: Merge "BackupManagerService files need new security labeling."

* commit 'e76fab2a426e57e8186e4c53f15164ca3818a889':
BackupManagerService files need new security labeling.
df4144f4dfaa3a344cfdf923121f6113463978da 26-Mar-2013 Geremy Condra <gcondra@google.com> am 9fa57b74: am 2aee33c1: Merge "BackupManagerService files need new security labeling."

* commit '9fa57b74d8acb99c86f761a98f6e76998de8aff2':
BackupManagerService files need new security labeling.
2aee33c1cdf89c0754bb660cd2e0ec95a007d4a8 26-Mar-2013 Geremy Condra <gcondra@google.com> Merge "BackupManagerService files need new security labeling."
29b89acee34f59461ca54169bf3df7bef35c9662 22-Mar-2013 Christopher Tate <ctate@google.com> am a35c0c04: am 57b0f363: Merge "Throw on illegal arguments to ArrayUtils.equals(a1, a2, len)" into jb-mr2-dev

* commit 'a35c0c0475d66921c933b93c262bf3e8721e3710':
Throw on illegal arguments to ArrayUtils.equals(a1, a2, len)
57b0f3638297242baca5db3e8ab4b5aab151f09e 22-Mar-2013 Christopher Tate <ctate@google.com> Merge "Throw on illegal arguments to ArrayUtils.equals(a1, a2, len)" into jb-mr2-dev
fc054349089563699349c161011f378c67d15587 22-Mar-2013 Christopher Tate <ctate@google.com> Throw on illegal arguments to ArrayUtils.equals(a1, a2, len)

Specifically, throw an explicit IllegalArgumentException if
'len' is negative, rather than falling over in some other
way further down the line.

Change-Id: If955de7ec1a15aa9aa8c42b6994b059e0cdffcee
nternal/util/ArrayUtils.java
ac8bb39de5e2713c8f0c445e5ab8640c9b5c9e9e 22-Mar-2013 Jeff Sharkey <jsharkey@android.com> am 527b2578: am 9da8c37a: Merge "Move XML utility methods into shared location." into jb-mr2-dev

* commit '527b2578d4cde9639d9c7b833bd85a659d7829e0':
Move XML utility methods into shared location.
9da8c37ab8bb29c813d08a8c7e4fd6431fc52191 22-Mar-2013 Jeff Sharkey <jsharkey@android.com> Merge "Move XML utility methods into shared location." into jb-mr2-dev
ded7b75d1a353856ad8f126d171d598d15b97760 22-Mar-2013 Jeff Sharkey <jsharkey@android.com> Move XML utility methods into shared location.

Change-Id: I15e8f0e4a6c5546d9be956ca0d46715d3441458c
nternal/util/XmlUtils.java
0878312fd96be3499d982dd4029ffc8cdd487bab 22-Mar-2013 Michael Wright <michaelwr@google.com> am 621c35e4: am 765ddb4b: Merge "Separate sessionCreated and finishedEvents callbacks" into jb-mr2-dev

* commit '621c35e4fc83c2864a82da31aac767832ce86df6':
Separate sessionCreated and finishedEvents callbacks
52a53526265c801b70eaf6dab1acf5c3f628f8a6 14-Mar-2013 Michael Wright <michaelwr@google.com> Separate sessionCreated and finishedEvents callbacks

Bug: 8276952
Change-Id: If7051086c060fcce5d1e958ebbddec0784c851da
nternal/view/IInputMethod.aidl
nternal/view/IInputMethodCallback.aidl
nternal/view/IInputSessionCallback.aidl
c7fd2e9f7fcb6e4016d3c2a5c71f414f70abfb49 17-Mar-2013 Wink Saville <wink@google.com> am 16489892: am b8c5ce29: Merge "Add new StateMachine constructor with name and handler params." into jb-mr2-dev

* commit '1648989280877426b32147d83f0f330e62bd7da1':
Add new StateMachine constructor with name and handler params.
24d248acdf5eee9fc9a209d5207eaeceb00fa3e3 17-Mar-2013 Wink Saville <wink@google.com> Add new StateMachine constructor with name and handler params.

Change-Id: Ic252de6cac24a043050b37d81767d19e2739b2fc
nternal/util/StateMachine.java
d99b26285d840cb7d7a1f9976eb00f7f1d7c38e9 15-Mar-2013 Craig Mautner <cmautner@google.com> am 20a402e0: am 8dfe99ce: Merge "Catch BadTokenException and continue." into jb-mr2-dev

* commit '20a402e0dc8d3052ac317e6c13afee22a9502c35':
Catch BadTokenException and continue.
e4bbb1cc451c7ebdad9f92968732fc4f6c21a70c 15-Mar-2013 Craig Mautner <cmautner@google.com> Catch BadTokenException and continue.

BadTokenException is a normal consequence of swapping IMEs while there
is a DO_SHOW_SOFT_INPUT message in the IIMethodWrapper queue. This
race condition cannot be avoided without an unacceptable lock down of
InputMethodManagerService.

Fixes bug 8387663.
Fixes bug 8263462.

Change-Id: I2c21573cf972145ab08e66604cdb9344139a3f31
nternal/view/IInputMethod.aidl
fd5c559d6383607757228e28cee2d4afc52bd489 14-Mar-2013 Irfan Sheriff <isheriff@google.com> am 370d3904: am 11aefad9: Add support for scan always available mode

* commit '370d3904f7f3360f7e2aa637795d197c84924886':
Add support for scan always available mode
11aefad94de6569c4c7394e7bc5fdeb0ae60d5bb 06-Mar-2013 Irfan Sheriff <isheriff@google.com> Add support for scan always available mode

Modify WifiService to add a controller to track the various
desired states and let the WifiStatemachine actually control
the bring up.

Bug: 8141918

Change-Id: I6e98fd5a29b43c3c50c315eff5255cd0a3eaebcd
nternal/util/Protocol.java
4471f15ec5533ae04012be44b2e5feec8f726394 14-Mar-2013 Irfan Sheriff <isheriff@google.com> am 2290e295: am 1c80a051: Merge "Add all variations message parameters for send/obtain." into jb-mr2-dev

* commit '2290e295d3250db0fb44ad0445c33429cbf9b62f':
Add all variations message parameters for send/obtain.
1c80a05176c9a6cdef2975cc655f34588275194e 14-Mar-2013 Irfan Sheriff <isheriff@google.com> Merge "Add all variations message parameters for send/obtain." into jb-mr2-dev
8b0db520405c88414bcf8fdcb96293fb7075e524 14-Mar-2013 Wink Saville <wink@google.com> Add all variations message parameters for send/obtain.

Change-Id: Ib8f3b66650d2ae2a8af7a537871361613e65b48e
nternal/util/StateMachine.java
0317f6db1aac545ce727812f5988b6ccd8584d90 14-Mar-2013 Craig Mautner <cmautner@google.com> am b7ca6804: am 67bea2ef: Merge "Remove WindowManager messages from remote queue." into jb-mr2-dev

* commit 'b7ca680485f90c2507d969d7d64e5bec3acc3c33':
Remove WindowManager messages from remote queue.
ca0ac718cbc2ad3e7ad2400f5fa34068f154ee20 14-Mar-2013 Craig Mautner <cmautner@google.com> Remove WindowManager messages from remote queue.

When a new IME is attached it is not enough to remove the
WindowManager messages from the local queue, but the ones in
the previous IME queue must also be removed.

Fixes bug 8263462.

Change-Id: I9e916c6052a83dc7691bcba0b6ab8328b9b7cc36
nternal/view/IInputMethod.aidl
1636c2a4d3a8a0b9ba2e27d5767d4eec5e03fa6f 13-Mar-2013 Michael Wright <michaelwr@google.com> am d1bb4d4b: am 999c2a69: Merge "Remove unused interface IInputConnectionCallback" into jb-mr2-dev

* commit 'd1bb4d4be20f3538d1a7ed4ec2736c10ca1a565e':
Remove unused interface IInputConnectionCallback
e8cc96b8f8b26d0dcf3a2abff9104ed0bb6f6bbd 12-Mar-2013 Michael Wright <michaelwr@google.com> Remove unused interface IInputConnectionCallback

Bug: 8276952
Change-Id: I3755df557388bee55f0cc4780adc300672cbe9a1
nternal/view/IInputConnectionCallback.aidl
d00879058c04ba82d971ff53f66fb43c358502a3 11-Mar-2013 Wink Saville <wink@google.com> am 1fb80006: am 614edf58: Merge "Add additional message methods." into jb-mr2-dev

* commit '1fb800061726e1b53a2e185e377316b6e87c93ad':
Add additional message methods.
614edf5833826da373cd88476e73147afbc0dc95 11-Mar-2013 Wink Saville <wink@google.com> Merge "Add additional message methods." into jb-mr2-dev
4753cd2014b3db7ab47a9d408601e9e17f790a21 06-Mar-2013 Wink Saville <wink@google.com> Add additional message methods.

Change-Id: Iac96815f7b72bcb3b9c658a24c24e0733e0ea1b0
nternal/util/StateMachine.java
403901d94d214ac31c6e1d6918f7ce1e7988afd0 09-Mar-2013 Jim Miller <jaggies@google.com> am 8fdc7be4: am 6e5d6492: Merge "Fix long-standing bug with LockPatternView drawing artifacts" into jb-mr2-dev

* commit '8fdc7be406b120df97c6494d5c253fc0c3c15911':
Fix long-standing bug with LockPatternView drawing artifacts
6e5d6492db4f0bed604e67ee53b0c99e0685c55f 09-Mar-2013 Jim Miller <jaggies@google.com> Merge "Fix long-standing bug with LockPatternView drawing artifacts" into jb-mr2-dev
b1af7f3d4be6cd6bc6e1e805f22c209e19bf928f 08-Mar-2013 Chet Haase <chet@google.com> add getAlpha() to Drawable

Drawable has setAlpha(int), but no getAlpha() (although some subclasses have added the
method). This makes it more tedious to use the property. For example, animations that wish to
animate this property must explicitly give it a start value since this value cannot be queried
from the object.

The trick is that setAlpha(int) is abstract, only implemented by subclasses. We cannot take this
approach for getAlpha(), as we would break all subclasses of Drawable until they implemented the
method. Instead, we'll add a default method which returns an invalid value, making it easier for
clients of the method to detect whether the value is valid.

All subclasses of Drawble in frameworks have been changed to add an override of getAlpha() when
appropriate.

Issue #7485875 Drawables is missing getAlpha()

Change-Id: I06b6e35f1a56d202838eca44759c85c82595020a
nternal/widget/multiwaveview/TargetDrawable.java
294b512ecaa98a6a8ef12285ad14e7a4091b5d57 19-Feb-2013 Christopher Tate <ctate@google.com> DO NOT MERGE - Full backup/restore now handles OBBs sensibly

OBB backup/ restore is no longer handled within the target app
process. This is done to avoid having to require that OBB-using
apps have full read/write permission for external storage.

The new OBB backup service is a new component running in the
same app as the already-existing shared storage backup agent.
The backup infrastructure delegates backup/restore of apps'
OBB contents to this component (because the system process
may not itself read/write external storage).

From the command line, OBB backup is enabled by using new
-obb / -noobb flags with adb backup. The default is noobb.

Finally, a couple of nit fixes:

- buffer-size mismatch between the writer and reader of chunked
file data has been corrected; now the reading side won't be
issuing an extra pipe read per chunk.

- bu now explicitly closes the transport socket fd after
adopting it. This was benign but triggered a logged
warning about leaked fds.

(Cherrypicked)

Change-Id: I471f6348abcccb7bf1e1710b7beda9f23de53e14
nternal/backup/IObbBackupService.aidl
0caa377f4688f175ae22229a10294468610a116e 08-Mar-2013 Jim Miller <jaggies@google.com> Fix long-standing bug with LockPatternView drawing artifacts

Moving very slowly in LockPatternView would often draw discontinuous
lines and have missing wedges in the pattern rings.

This fixes the problem by correctly accounting for the invalidate
region. The invalidate region is constrained to the last registered
pattern cell and the current point. When a new pattern cell is added,
the bounding region expands to refresh it once.

Fixes bug 8315830

Change-Id: I72342535ae292fcadb02d96b89665ba8431886b2
nternal/widget/LockPatternView.java
aa8a2e46f4965472b0e81768343479b49dde4f51 08-Mar-2013 Christopher Tate <ctate@google.com> Merge "Full backup/restore now handles OBBs sensibly"
46cc43c6fa7623820d4ae9149496cf96bb15f8a3 19-Feb-2013 Christopher Tate <ctate@google.com> Full backup/restore now handles OBBs sensibly

OBB backup/ restore is no longer handled within the target app
process. This is done to avoid having to require that OBB-using
apps have full read/write permission for external storage.

The new OBB backup service is a new component running in the
same app as the already-existing shared storage backup agent.
The backup infrastructure delegates backup/restore of apps'
OBB contents to this component (because the system process
may not itself read/write external storage).

From the command line, OBB backup is enabled by using new
-obb / -noobb flags with adb backup. The default is noobb.

Finally, a couple of nit fixes:

- buffer-size mismatch between the writer and reader of chunked
file data has been corrected; now the reading side won't be
issuing an extra pipe read per chunk.

- bu now explicitly closes the transport socket fd after
adopting it. This was benign but triggered a logged
warning about leaked fds.

Bug: 6718844
Change-Id: Ie252494e2327e9ab97cf9ed87c298410a8618492
nternal/backup/IObbBackupService.aidl
99438af8924b6881caabcccffe76d68dddf13290 07-Mar-2013 Jeff Sharkey <jsharkey@android.com> am 73a3754c: am 4861966c: Merge "ArrayUtils.indexOf(), containsAll() with tests." into jb-mr2-dev

* commit '73a3754c6766b7220878983317b3d56ce7fc6e58':
ArrayUtils.indexOf(), containsAll() with tests.
94c91dca55de9ffdbe072fcc5dd6dbf1efe5e4c1 07-Mar-2013 Jeff Sharkey <jsharkey@android.com> ArrayUtils.indexOf(), containsAll() with tests.

Change-Id: I040164d4e45126e4a6c1df54bd114f47951da560
nternal/util/ArrayUtils.java
44920907cec31a8b4ee1345bce4ef9fddea86a83 06-Mar-2013 Dianne Hackborn <hackbod@google.com> am 95529f73: am f6fcea60: Merge "Fix issue #8325007: EyeEm app crashes on launch- NPE at..." into jb-mr2-dev

* commit '95529f730ccd7dfafb4bc2024aa156928db3c04c':
Fix issue #8325007: EyeEm app crashes on launch- NPE at...
474690caf8b3bece133b40914979ac2520036989 06-Mar-2013 Dianne Hackborn <hackbod@google.com> Fix issue #8325007: EyeEm app crashes on launch- NPE at...

...android.view.ViewGroup.measureChildWithMargins

The app is doing grungy stuff with trying to insert its own
views inside the window decor. This new custom layout of the
action bar was assuming it would get fitSystemWindows() called
at which point it would retrieve all of its child views... but
with the app doing this, it blocks the call down to
fitSystemWindows() and breaks us. So we now make the layout
manager more robust and ensure it has retrieved its children
when measuring.

Also fix an issue where the xlarge layouts were not updated.

Change-Id: I6c69f26f26b59a6aa8fa1e5788288ffce0b490ca
nternal/widget/ActionBarOverlayLayout.java
12e08ca9873050e20b1fdbdb59f8b0ffdbc37719 06-Mar-2013 Dianne Hackborn <hackbod@google.com> am 01412780: am f217145b: Merge "A few small missing things from the custom action bar layout." into jb-mr2-dev

* commit '01412780212c70c34e727ac92d40d416cbc0c188':
A few small missing things from the custom action bar layout.
7cf71fbdc3225778d0397b22cdaf40c812c15afb 06-Mar-2013 Dianne Hackborn <hackbod@google.com> A few small missing things from the custom action bar layout.

Change-Id: I91e0b43ccf92d5c9541f80220922951acb0795e7
nternal/widget/ActionBarOverlayLayout.java
9dd28324a307f6e254ff0c2bc7776e487b7b7525 05-Mar-2013 Dianne Hackborn <hackbod@google.com> am 4d1079d4: am 9c9aec72: Merge "Fix issue #8311263: Corrupted UI across all tabs in People app" into jb-mr2-dev

* commit '4d1079d4102c591846b777a84a988e18cf8d3c7e':
Fix issue #8311263: Corrupted UI across all tabs in People app
9c9aec721a78f23b4315ac920c26b109999a07f1 05-Mar-2013 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #8311263: Corrupted UI across all tabs in People app" into jb-mr2-dev
1dc5f92716189da02aa62f508adb6099061668b5 05-Mar-2013 Dianne Hackborn <hackbod@google.com> Fix issue #8311263: Corrupted UI across all tabs in People app

The problem is that there are other configurations that the
action bar can be in that ActionBarOverlayLayout didn't account
for -- such as here, the nav part visible but the rest hidden.

Fixing this was non-trivial because it means that to correctly
implement fitSystemWindows() we need to in these cases take the
actual measured height of the action bar for positioning the
content view... but that is not yet available, since
fitSystemWindows() must run before layout.

To solve this, ActionBarOverlayLayout now inherits directly from
ViewGroup and implements its own custom layout. In its measure
pass it does all of the fitSystemWindows() work that is dependent
on the measured sizes of the action bar child views after those
are measured and applies them to the content view before it is
measured.

Change-Id: Ie327075d502e9c348aa80b0968c6b0403478301e
nternal/widget/ActionBarOverlayLayout.java
68da4dabfe2b97587786c25f047fb42755dbc919 02-Mar-2013 Jim Miller <jaggies@google.com> Merge "Fix multi-user support in keyguard."
e0c5569d92faff509cf65ec80414d9c252ebc2b5 02-Mar-2013 Justin Koh <justinkoh@google.com> am 76f065d2: Merge "Add policy check to always show overflow menu button on TV devices." into jb-mr2-dev

* commit '76f065d2e9d6354a59bb233b969c8417aff7223b':
Add policy check to always show overflow menu button on TV devices.
78c48f6c1700ab8d507dd7bf7ebef404913648bd 02-Mar-2013 Jim Miller <jaggies@google.com> Fix multi-user support in keyguard.

This fixes a bug where user0's credentials were required of all users.

LockPatternUtils used to check for the system process of the caller
to determine which user id to use. Now that keyguard is in its own
process, this can no longer be used.

The fix is to use the permission system to see if the calling process
is allowed to interact across users and if so, use the id of the current
user.

Change-Id: I2d7111938bb3bf381f72698c9fa4fb848d237153
nternal/widget/LockPatternUtils.java
4207fda51babb3892652fcdc901295c81876a38f 01-Mar-2013 Justin Koh <justinkoh@google.com> Add policy check to always show overflow menu button on TV devices.

Add policy check to always show overflow menu button on TV devices.
Bug: 8236681

Change-Id: I4f92eef7a6d530feb698f83b0720b36115f7a04a
nternal/view/ActionBarPolicy.java
25190577cc69eaa5930c6fbdc2fcca03afc84982 01-Mar-2013 Jim Miller <jaggies@google.com> Post-review Keyguard cleanup.

- remove userActivity() from KeyguardService interface and call it
on PowerManager directly
- Split IKeyguardResult into two parts: IKeyguardShowCallback and
IKeyguardExitCallback.
- Misc other changes from the review.

Change-Id: I3f679cfa5d3f8bc742f2b2259ac354045e89a87b
nternal/policy/IKeyguardExitCallback.aidl
nternal/policy/IKeyguardResult.aidl
nternal/policy/IKeyguardService.aidl
nternal/policy/IKeyguardShowCallback.aidl
1010a6ec6717ba75e2ea1dfe2865d453a98dd1b5 28-Feb-2013 Dianne Hackborn <hackbod@google.com> am d6a3e485: Merge "Unify normal and overlay action bar layouts." into jb-mr2-dev

* commit 'd6a3e485b58e23808b44b8f2374e67e891cfae05':
Unify normal and overlay action bar layouts.
df7221ced3b7cd807f14e84c302fc09fd659fd68 26-Feb-2013 Dianne Hackborn <hackbod@google.com> Unify normal and overlay action bar layouts.

Switch the action bar to always use the overlay layout, and
make it smarter to do the right thing depending on whether the
action bar is in overlay mode or not.

This allows apps to use the system UI magic flags without
having to worry about whether the action bar is configured
in overlay mode or note -- just select a stable layout and it
will automatically go into overlay mode.

In the future this should also allow us to simplify the action
bar code, since it is all sitting on one common implementation.
For example, much of the logic in ActionBarImpl can be moved
to the root action bar layout, and that layout can be optimized
to do custom layout with all of the known elements it has.

Also fixed a little bug in the performance tests.

Change-Id: Iec0c0c0699754f0d1ce37402d786b4966e052a56
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarOverlayLayout.java
5ecd81154fa039961f65bb4e36d18ac555b0d1d6 10-Jan-2013 Jim Miller <jaggies@google.com> Move keyguard to its own process.

This is in preparation to moving keyguard into its own process.

Moved keyguard source and resources into new .apk.

Got basic test app working. Still need to implement MockPatternUtils
and means to pass it into KeyguardService with local binder interface.

Added new ACCESS_KEYGUARD_SECURE_STORAGE permission.

Temporarily disabled USER_PRESENT broadcast.

Remove unintentional whitespace changes in PhoneWindowManager, etc.

Checkpoint basic working version.

Move to systemui process.

Synchronize with TOT.

Sync with recent user API changes.

Fix bug with returing interface instead of stub for IKeyguardResult. Create KeyguardServiceDelegate to allow
for runtime-selectable local or remote interface.

More keyguard crash robustness.

Keyguard crash recovery working. Currently fails safe (locked).

Fix selector view which was still using frameworks resources.

Remove more references to internal framework variables. Use aliases for those we should move but
currently have dependencies.

Allow runtime switching between service and local mode.

Fix layout issue on tablets where orientation was reading the incorrect constant
from the framework. Remove more framework dependencies.

Fix PIN keyboard input.

Remove unnecessary copy of orientation attrs.

Remove unused user selector widget and attempt to get multi user working again.

Fix multi-user avatar icon by grabbing it from UserManager rather than directly since
keyguard can no longer read it.

Merge with AppWidget userId changes in master.

Change-Id: I254d6fc6423ae40f6d7fef50aead4caa701e5ad2
nternal/policy/IKeyguardResult.aidl
nternal/policy/IKeyguardService.aidl
nternal/widget/TransportControlView.java
4d85af68a4aeb6a860c34415de7618947e296af5 26-Feb-2013 Daniel Sandler <dsandler@android.com> Spurious file removed.

Change-Id: I2ac3f417553aea806ad570e247afc985e9ececb3
nternal/statusbar/INotificationListener.java
ff4fcdb98c9575642c48f1daeafff4b257769e81 24-Feb-2013 Wink Saville <wink@google.com> Tweak logging and some code reformatting.

Add logAndAddLogRec method that logs a string and adds it to LogRecords.
Add loge(s, e)
Add missing javadoc to the logging methods
Reformatted the code.

Change-Id: I42f39e45aae77e5b6968f16b6b83f4804ccb7e73
nternal/util/StateMachine.java
c4aad01cbbb69c916ef323693e1fd0560b0eccba 23-Feb-2013 Dianne Hackborn <hackbod@google.com> Formalize overscan metrics.

The window manager now maintains and reports a new formal
"overscan insets" for each window, much like the existing
content and visible insets. This is used to correctly
position the various UI elements in the various combination
of layout options. In particular, this allows us to have
an activity that is using fitSystemWindows to have the content
of its UI extend out to the visible content part of the screen
while still positioning its fixed UI elements inside the
standard content rect (and the entire window extending all
the way into the overscan area to fill the screen as desired).

Okay, maybe that is not written so clearly. Well, it made
my head hurt too, so suffer!

The key thing is that windows now need to know about three
rectangles: the overall rectangle of the window, the rectangle
inside of the overscan area, and the rectangle inside of the
content area. The FLAG_LAYOUT_IN_OVERSCAN option controls
whether the second rectangle is pushed out to fill the entire
overscan area.

Also did some improvements to debug dumping in the window
manager.

Change-Id: Ib2368c4aff5709d00662c799507c37b6826929fd
nternal/os/SomeArgs.java
nternal/view/BaseIWindow.java
nternal/widget/ActionBarOverlayLayout.java
ab8e936e852b984624087c97dffc4c74b250fc68 21-Feb-2013 Jim Miller <jaggies@google.com> Merge "Add explicit userId to AppWidget binder calls"
a75a883fe9ea1790803148f0a561473073e3f264 08-Feb-2013 Jim Miller <jaggies@google.com> Add explicit userId to AppWidget binder calls

Keyguard currently relies on being in the system process to grab the
given user's widgets. When we split keyguard into a new process,
it will need to have access to user-specific info to instantiate a
specific user's widgets. In order to accomplish this, we add an
explicit userid to each binder call as well as new permission
check to allow keyguard access.

This also fixes a potential race condition of having an incorrect user id
due to an async call to change the user. Every binder call now has a specific
user id. The user id is either the calling process user's id or an explicit
one passed by applications like keyguard. It is created once when an
AppWidgetManager is instantiated and remains for the lifetime of the object.

Fixed bug where widgets sometimes didn't show up for secondary users.

Moved permission check in AppWidgetService into getImplForUser()

Refactored to use userid from context associated AppWidgetManager instance.

Clean up AppWidgetHost to use userId from Context.

Remove redundant userId check in checkPermission since it's handled by
ActivityManager.handleIncomingUser()

Removed redundant userid check.

Upload after rebase...

Change-Id: Iae3e20f2b342c323bb58768b3d22051510f8268b
nternal/appwidget/IAppWidgetHost.aidl
nternal/appwidget/IAppWidgetService.aidl
50c291b653062e7356fd8764bf625a1e1f2c678d 21-Feb-2013 Fabrice Di Meglio <fdimeglio@google.com> Merge "SystemUI optimization - rely on inheritance for layout direction"
09a247e9a86df068422cbe8b60430fb6583c028c 14-Feb-2013 Daniel Sandler <dsandler@android.com> New INotificationListener interface.

Use with INotificationManager.registerListener(). Limited to
system only right now.

Change-Id: I65b6a8778267022cdc5e58eb75ae607a54b1cc52
nternal/statusbar/INotificationListener.java
b5fe52b389d92c067b19217429a2812a9d0ea9dd 15-Feb-2013 Fabrice Di Meglio <fdimeglio@google.com> SystemUI optimization - rely on inheritance for layout direction

- this CL purpose is to fully rely on inheritance for setting the
SystemUI views layout direction. This is the default case for layout
direction and should stay like that.

Change-Id: I8efb6ab6e5bd10f519c7a27e8837efb69631940e
nternal/widget/SizeAdaptiveLayout.java
3079e587bd519ba78cb34b1bd0b869e2879458ab 15-Feb-2013 Sangkyu Lee <sk82.lee@lge.com> Fix typo in AlertController.java

If whichButtons is BIT_BUTTON_NEGATIVE, the negative button should be centered.

Change-Id: Ia34daf8c80704204a4f1cf71c642114005559d5d
Signed-off-by: Sangkyu Lee <sk82.lee@lge.com>
nternal/app/AlertController.java
9a2c2a6da90abbcc9a064c20e93ed885651f4ae1 15-Jan-2013 Jeff Sharkey <jsharkey@android.com> Parse network stats using native code.

Switch to parsing detailed network stats with native code, which
is 71% faster than ProcFileReader.

Change-Id: I2525aaee74d227ce187ba3a74dd08a2b06514deb
nternal/net/NetworkStatsFactory.java
nternal/os/BatteryStatsImpl.java
d7d28e675ea7aac151c0c302d233b476537af946 12-Feb-2013 Dianne Hackborn <hackbod@google.com> App ops: media ops, set up to be callable from native code.

This is to help implementation of bug #8181262 and maybe
bug #8181261

Adds some definition for media ops (though nothing is yet using
them), and re-arranges things a bit so we can implement native
calling in to the app ops service.

Also add some java docs.

Change-Id: I637959745db820e676f23a35a5d2224f51bc6689
nternal/app/IAppOpsCallback.aidl
nternal/app/IAppOpsService.aidl
f643069ad56763732a06ab601cea1272e4c1827a 12-Feb-2013 Wink Saville <wink@google.com> Fix record logging.

Change-Id: I246159dec9522e58ee88593000ac0f86aff4bb25
nternal/util/StateMachine.java
e8c8ae401b6f0d894a766a1601f55f0fe567df02 09-Feb-2013 Adam Powell <adamp@google.com> Fix setting action bar backgrounds after layout

Fix a bug that would prevent the drawable bounds from being set
correctly for action bar containers.

Change-Id: I396aa40e3d8f6e3b47bcd438e1f26bbfc7b20a7f
nternal/widget/ActionBarContainer.java
fde19b106b2b77bc3540b04445357870caf878b5 17-Jan-2013 Daniel Sandler <dsandler@android.com> New API to request a list of current notifications.

The ACCESS_NOTIFICATIONS permission is signature|system only.

Change-Id: I41338230aee9611117cbdac251c1b6b6c3cebf00
nternal/statusbar/StatusBarNotification.java
c2293025a25e04b26bf53713d71f85fd9ca5e8e9 07-Feb-2013 Dianne Hackborn <hackbod@google.com> App ops: track system windows, monitoring changes.

Change-Id: I273e82bdad66ada3bf0f7ec9176bc304b9ee1ee8
nternal/app/IAppOpsCallback.aidl
nternal/app/IAppOpsService.aidl
1fb69f0f354cf6743e1f30b55e9ca2f9252cf99e 06-Feb-2013 Adam Powell <adamp@google.com> am 0714e37c: am a7e028a9: am cef582ab: am 07cf971e: Fix re-enabled state of up after action view collapse

# Via Android Git Automerger (3) and Adam Powell (1)
* commit '0714e37cb7acafbc93f2fac40dbb200cd2a96514':
Fix re-enabled state of up after action view collapse
0714e37cb7acafbc93f2fac40dbb200cd2a96514 06-Feb-2013 Adam Powell <adamp@google.com> am a7e028a9: am cef582ab: am 07cf971e: Fix re-enabled state of up after action view collapse

# Via Android Git Automerger (2) and Adam Powell (1)
* commit 'a7e028a976c3f3692fa3c72f0ae11c01354e4c9a':
Fix re-enabled state of up after action view collapse
a7e028a976c3f3692fa3c72f0ae11c01354e4c9a 06-Feb-2013 Adam Powell <adamp@google.com> am cef582ab: am 07cf971e: Fix re-enabled state of up after action view collapse

# Via Adam Powell (1) and Android Git Automerger (1)
* commit 'cef582ab0346afdaff9190565d432a9468ecdd7d':
Fix re-enabled state of up after action view collapse
07cf971e58aecab76f2b5b575cfe62120005c6e4 06-Feb-2013 Adam Powell <adamp@google.com> Fix re-enabled state of up after action view collapse

A certain call ordering to the action bar could cause the record of
the pre-action view expanded home button enabled state to be
incorrect. Store this in all cases, not just when the action view is
initially expanded. (Except for when we actually disable it for the
expanded view.)

If an action view is already expanded when we get a call to change the
enabled state of the home/up button, don't modify the state of the up
container or other accessibility info, but record the new state if
requested.

Bug 8142097

Change-Id: I070c151aa9f2046d2114ee541d964bf68c6f0def
nternal/widget/ActionBarView.java
9c684aab21b095a936e5753fbba378c0a27aa254 05-Feb-2013 Adam Powell <adamp@google.com> am 638af2fb: am 6a33c403: am 569f138e: am 67389e0a: Merge "Fix regression in expanded action view up" into jb-mr1.1-dev

# Via Android Git Automerger (3) and others
* commit '638af2fbb6ecb6ca0e58b06d5b2c6ecabbc7f812':
Fix regression in expanded action view up
638af2fbb6ecb6ca0e58b06d5b2c6ecabbc7f812 04-Feb-2013 Adam Powell <adamp@google.com> am 6a33c403: am 569f138e: am 67389e0a: Merge "Fix regression in expanded action view up" into jb-mr1.1-dev

# Via Android Git Automerger (2) and others
* commit '6a33c4031de8f0b323855c6db8d6ee0c812b0f00':
Fix regression in expanded action view up
6a33c4031de8f0b323855c6db8d6ee0c812b0f00 04-Feb-2013 Adam Powell <adamp@google.com> am 569f138e: am 67389e0a: Merge "Fix regression in expanded action view up" into jb-mr1.1-dev

# Via Adam Powell (1) and others
* commit '569f138ef1a94e6d6cfc0587f06b396a77f00c1c':
Fix regression in expanded action view up
62f33030b9fb6be893e20b563e3ba1800e3e63e8 04-Feb-2013 Adam Powell <adamp@google.com> Fix regression in expanded action view up

A bug was introduced when these views were restructured. Make sure that the
Up button for expanded action views functions/focuses correctly.

Bug 8124825

Change-Id: I0a886e62fca21dbb9a173db87642bb79ce9245e7
nternal/widget/ActionBarView.java
8e7b3b15f7a4f888d55f080d3ed61860cd5fab55 01-Feb-2013 Jeff Sharkey <jsharkey@android.com> Support optional values in ProcFileReader.

When new values are added to proc files, we need to handle reading
them from both old and new kernels. This change supports optionally
reading long values. Tests to verify.

Bug: 7903145
Change-Id: I9fe250c0486c3cce3cf3d8624f01af01128d1191
nternal/util/ProcFileReader.java
ed1ad7fadae1ed0fae2946dbe3e3ee9eea299bde 31-Jan-2013 Jeff Sharkey <jsharkey@android.com> Merge "Add wrapping support to IndentingPrintWriter."
71cb446f010e791ca77a27c416a79b5ccb3f075b 31-Jan-2013 Jeff Sharkey <jsharkey@android.com> Add wrapping support to IndentingPrintWriter.

When created with a wrapping width, any content longer than the
requested width will be wrapped onto additional lines. This supports
use-cases like dumping lots of data with printPair().

Improve documentation and add tests to verify behavior.

Change-Id: Ibdfce198f0e69f4df7725544fd1cd02fa029c647
nternal/util/IndentingPrintWriter.java
d21e24bccec8309839a264da95c5dc1573fc65c3 30-Jan-2013 Wink Saville <wink@google.com> Merge "Cleanup StateMachine LogRec handling and get tests working."
efcc3d35661c0cd978bb2b2f808fade4c4734e21 30-Jan-2013 Wink Saville <wink@google.com> Cleanup StateMachine LogRec handling and get tests working.

Change-Id: I13107e846812b16f1c95be11626500dbd7a13b2a
nternal/util/StateMachine.java
1410db83f97bf69a1a461cc20fd6d5b7b0ef08c0 30-Jan-2013 Jeff Sharkey <jsharkey@android.com> Merge "Check text length when testing for newline."
3029bf225cfa2c4b5b6e76303b0eba0d91c21026 30-Jan-2013 Jeff Sharkey <jsharkey@android.com> Check text length when testing for newline.

Also add tests to verify.

Bug: 8102140
Change-Id: I7e5dbff53caeb50bfa0fb4ea5dce73e3c742986a
nternal/util/FastXmlSerializer.java
cae3d9f0ab2756e3659efc7a08830d2d7b43a05e 30-Jan-2013 Nick Kralevich <nnk@google.com> ZygoteInit: more dead code cleanup

ZYGOTE_FORK_MODE has been set to false since 2009, and the
code indicates that runForkMode() was "retained for reference only."
Remove this dead code. There will always be a reference to this code
in git.

Change-Id: Iddfdca8379fdc6521febea81e553de763b6f4fd0
nternal/os/ZygoteInit.java
4ec799d4c6de7e626363659508f21ee5c3c173aa 30-Jan-2013 Nick Kralevich <nnk@google.com> Merge "Remove dead code."
de3c608864be0fece8a27ef9cca8fac8b5292f5b 30-Jan-2013 Nick Kralevich <nnk@google.com> Merge "ZygoteConnection.java: Remove dead code --peer-wait"
40779e50f04b0d03b49836c640308061f88ff0be 30-Jan-2013 Nick Kralevich <nnk@google.com> Remove dead code.

Setting capabiltities is handled by dalvik. This code
is never called.

Change-Id: I903952c43cf60ea59ec954c9168a7604d05ccaf7
nternal/os/ZygoteInit.java
468f6c15d2a8d6d1c60c941d7ef77efc30d9cdc1 30-Jan-2013 Nick Kralevich <nnk@google.com> ZygoteConnection.java: Remove dead code --peer-wait

The last caller of this option was removed in
system/core commit b94fd1abcbff1eacb8a2ad79c51de21ecf8f6d65

Change-Id: I9f3540c9e61b4a93038b43983fbb8badac08a2e3
nternal/os/ZygoteConnection.java
da01da176d4798d293c90d6280ddc59c780baaa3 30-Jan-2013 Satoshi Kataoka <satok@google.com> Merge "Do not turn on imes unexpectedly with unit tests"
8a2ed1d7c0c4f6476e39cc37d9ebd29c7562ce01 30-Jan-2013 Dianne Hackborn <hackbod@google.com> Improve configuration of default preferred apps.

The file that defines default preferred apps is now more
robust. It is no longer a raw dump of the package
manager settings, but instead a more general list of a
target activity and filter. When reading it, the remaining
information (match value, set of potential matches) is
determined dynamically.

Change-Id: I0edc6e0d2ed3dd2a6e2238992f18f7fc1f51d8d4
nternal/util/FastXmlSerializer.java
2602030a007d902ace3fc573b2820cee31eefc95 28-Jan-2013 Wink Saville <wink@google.com> Merge "Add protected log methods to StateMachine"
58c73c3f76c231cf128041aefadd4b6a6bcefac2 28-Jan-2013 Wink Saville <wink@google.com> Add protected log methods to StateMachine

This allow child classes to Override the logging and
have consistent behavior across StateMachines.

Change-Id: I7e23a44d08ca304ade2d7830fd0e307f63f1879e
nternal/util/StateMachine.java
f1367b7e903a2a69a8f833bb272e91d77abd57c6 25-Jan-2013 Satoshi Kataoka <satok@google.com> Do not turn on imes unexpectedly with unit tests

Bug: 7872918

Change-Id: Ie1d74c9fac27de140e7aa85f2eaefcb89aa06ea7
nternal/inputmethod/InputMethodUtils.java
b9781fe08c5b1afba086857aa18b46862550ae88 25-Jan-2013 Dianne Hackborn <hackbod@google.com> Merge "App ops: you can now turn off operations."
5e45ee6752528791deb66b83d76250685de15d47 25-Jan-2013 Dianne Hackborn <hackbod@google.com> App ops: you can now turn off operations.

Also add new ops for calendar and wi-fi scans, finish
implementing rejection of content provider calls, fix
issues with rejecting location calls, fix bug in the
new pm call to retrieve apps with permissions.

Change-Id: I29d9f8600bfbbf6561abf6d491907e2bbf6af417
nternal/app/IAppOpsService.aidl
7195c8f25b6bfc7564701683d3e2e1ed1bdcfcc6 24-Jan-2013 Adam Powell <adamp@google.com> am a41f9cfb: am 53d49f17: am 17f05497: am c2469500: Merge "Touch action bar title text: you will go to space today!" into jb-mr1.1-dev

# Via Android Git Automerger (3) and others
* commit 'a41f9cfbbd1d137bf1baab49e0d453a40a0ecd33':
Touch action bar title text: you will go to space today!
a41f9cfbbd1d137bf1baab49e0d453a40a0ecd33 24-Jan-2013 Adam Powell <adamp@google.com> am 53d49f17: am 17f05497: am c2469500: Merge "Touch action bar title text: you will go to space today!" into jb-mr1.1-dev

# Via Android Git Automerger (2) and others
* commit '53d49f1702df41a4ca342a1df6e720b16e094797':
Touch action bar title text: you will go to space today!
53d49f1702df41a4ca342a1df6e720b16e094797 24-Jan-2013 Adam Powell <adamp@google.com> am 17f05497: am c2469500: Merge "Touch action bar title text: you will go to space today!" into jb-mr1.1-dev

# Via Adam Powell (1) and others
* commit '17f05497be90004c0263c6de173af8c19ece07b0':
Touch action bar title text: you will go to space today!
27cba3895282ac1da1f1d43d37d53f8113527569 23-Jan-2013 Adam Powell <adamp@google.com> Touch action bar title text: you will go to space today!

Title/subtitle text in an action bar is now a full alias for home/up.

Add some prototype ActionBar functionality around titles for future
API consideration.

Bug 7966136

Change-Id: I14377121dcb976d0a5f1e1862f35c3d267eb5458
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarView.java
fd7adedebf88427162a3ce27fcc9cfd3893c869d 23-Jan-2013 Dianne Hackborn <hackbod@google.com> Add new disabled state for "optional" built-in apps.

The disabled state allows you to make an app disabled
except for whatever parts of the system still want to
provide access to them and automatically enable them
if the user want to use it.

Currently the input method manager service is the only
part of the system that supports this, so you can put
an IME in this state and it will generally look disabled
but still be available in the IME list and once selected
switched to the enabled state.

Change-Id: I77f01c70610d82ce9070d4aabbadec8ae2cff2a3
nternal/content/PackageMonitor.java
nternal/inputmethod/InputMethodUtils.java
72e3983d38f656cfa8c7a038eb80bdd9ea06768e 19-Jan-2013 Dianne Hackborn <hackbod@google.com> New API to get app op information about a single package.

Change-Id: I986453d9bb4161da467fb820b12502464e936483
nternal/app/IAppOpsService.aidl
ec6afcc69ae35a0b1f22f44a70fbe4ce5a17be41 17-Jan-2013 Elliott Hughes <enh@google.com> am 8c27d0b3: am 686fad5e: am b1e16f11: Merge "Track a typo fix in hidden libcore API."

* commit '8c27d0b3093593fe0d2c229ffcc9a35dbaf5fc59':
Track a typo fix in hidden libcore API.
8c27d0b3093593fe0d2c229ffcc9a35dbaf5fc59 17-Jan-2013 Elliott Hughes <enh@google.com> am 686fad5e: am b1e16f11: Merge "Track a typo fix in hidden libcore API."

* commit '686fad5e2367fe08afe6e219d460be994127fb5e':
Track a typo fix in hidden libcore API.
686fad5e2367fe08afe6e219d460be994127fb5e 17-Jan-2013 Elliott Hughes <enh@google.com> am b1e16f11: Merge "Track a typo fix in hidden libcore API."

* commit 'b1e16f11ffd3a391be1a44a352c122b6dad1e8a5':
Track a typo fix in hidden libcore API.
26df61683a6dacc3cf193e647f9de91d683772ca 17-Jan-2013 Elliott Hughes <enh@google.com> Track a typo fix in hidden libcore API.

Change-Id: I6fa3c2ef7f4d73bbf6557560e46c7c11bff74a32
nternal/os/SamplingProfilerIntegration.java
35654b61e8fe7bc85afcb076ddbb590d51c5865f 15-Jan-2013 Dianne Hackborn <hackbod@google.com> More work on App Ops service.

Implemented reading and writing state to retain information
across boots, API to retrieve state from it, improved location
manager interaction to monitor both coarse and fine access
and only note operations when location data is being delivered
back to app (not when it is just registering to get the data at
some time in the future).

Also implement tracking of read/write ops on contacts and the
call log. This involved tweaking the content provider protocol
to pass over the name of the calling package, and some
infrastructure in the ContentProvider transport to note incoming
calls with the app ops service. The contacts provider and call
log provider turn this on for themselves.

This also implements some of the mechanics of being able to ignore
incoming provider calls... all that is left are some new APIs for
the real content provider implementation to be involved with
providing the correct behavior for query() (return an empty
cursor with the right columns) and insert() (need to figure out
what URI to return).

Change-Id: I36ebbcd63dee58264a480f3d3786891ca7cbdb4c
nternal/app/IAppOpsService.aidl
8e303cc5dd4860b6050d5725ce60ca7e6fb00c7b 11-Jan-2013 Satoshi Kataoka <satok@google.com> Refactor utilities for InputMethodManagerSerivce that we want to share with the Settings application

Bug: 7872918

Change-Id: I0bc9954f163a3ec38d08b9ba842a8a31176eb6a6
nternal/inputmethod/InputMethodUtils.java
e886d3d33b3630dc6013688cee4364bc532f7815 11-Jan-2013 Adam Powell <adamp@google.com> am 79cc4a2a: am d1779207: am 0bf63a9a: am d29f2d26: Merge "Make action bar title a valid touch target for up when relevant" into jb-mr1.1-dev

* commit '79cc4a2ab0130acca83de5945a43adf9925beac1':
Make action bar title a valid touch target for up when relevant
a06de0f29b58df9246779cc4bfd8f06f7205ddb6 12-Dec-2012 Dianne Hackborn <hackbod@google.com> New "app ops" service.

Initial implementation, tracking use of the vibrator, GPS,
and location reports.

Also includes an update to battery stats to also keep track of
vibrator usage (since I had to be in the vibrator code anyway
to instrument it).

The service itself is only half-done. Currently no API to
retrieve the data (which once there will allow us to show you
which apps are currently causing the GPS to run and who has
recently accessed your location), it doesn't persist its data
like it should, and no way to tell it to reject app requests
for various operations.

But hey, it's a start!

Change-Id: I05b8d76cc4a4f7f37bc758c1701f51f9e0550e15
nternal/app/IAppOpsService.aidl
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
79cc4a2ab0130acca83de5945a43adf9925beac1 09-Jan-2013 Adam Powell <adamp@google.com> am d1779207: am 0bf63a9a: am d29f2d26: Merge "Make action bar title a valid touch target for up when relevant" into jb-mr1.1-dev

* commit 'd17792073fd3ab963bd5e0a7edcb312720fcea26':
Make action bar title a valid touch target for up when relevant
d17792073fd3ab963bd5e0a7edcb312720fcea26 09-Jan-2013 Adam Powell <adamp@google.com> am 0bf63a9a: am d29f2d26: Merge "Make action bar title a valid touch target for up when relevant" into jb-mr1.1-dev

* commit '0bf63a9a76ba513b5f6c603857bcd4d3e4506566':
Make action bar title a valid touch target for up when relevant
4dca8636f8c674a7770031c71bc785ef05f22ff9 09-Jan-2013 Adam Powell <adamp@google.com> Make action bar title a valid touch target for up when relevant

arubin bug 7966136

Change-Id: Iea5b85852cc1664f1390a6f8b6179d63b50857e4
nternal/widget/ActionBarView.java
8ca2fc10ceac645a04c8223947df03f359441115 12-Dec-2012 Jim Miller <jaggies@google.com> Remove unused keyguard code

This change removes the old keyguard code because it's obsolete and doesn't run
anymore.

Change-Id: I8ed93f507378a17cf834d2ee9284c098eb8efffe
nternal/widget/DigitalClock.java
8afcd149970c79054a3a16377834aa0aec35eee0 28-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Make SystemUI RTL aware

- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: Ica88ed68f893d5272691a9207788b65623849dee
nternal/widget/SizeAdaptiveLayout.java
7a96c39c510923ef73bbb06ab20109f0168b8eb1 15-Nov-2012 Jeff Sharkey <jsharkey@android.com> Move lingering services to services.jar.

This helps reduce the pressure on framework.jar, and makes it clear
that it should only be used by the system_server.

Bug: 7333397
Change-Id: I0858904239535380fbf30562b793e277d8c3f054
nternal/widget/LockPatternUtils.java
nternal/widget/LockSettingsService.java
d44280e28884085f014806d53413ec5a68d0ac25 11-Dec-2012 Mita Yun <mitayun@google.com> resolved conflicts for merge of ebcbfb3f to master

Change-Id: I0658dd4a1418fbad91d9663e5b52418a979dc683
29c04ef841fe22785e2fd3348c653bd8a5240aae 11-Dec-2012 Adam Powell <adamp@google.com> Set an ID for the action bar's Spinner

This ensures state is preserved properly.

Change-Id: I4bdccaf9b8a30a0a38466a5615cebbb596d80fb4
nternal/widget/ActionBarView.java
ebcbfb3fc7750e2873a3e7c6c707fa4e203089b6 11-Dec-2012 Mita Yun <mitayun@google.com> am a98cd512: Merge "Use asynchronous messages for input method events." into jb-mr1-aah-dev

* commit 'a98cd5122be643a51f563d02069e8f9409d44394':
Use asynchronous messages for input method events.
ed218c706d9e91e75b94c448cee2e6150aaee57f 07-Dec-2012 Mita Yun <mitayun@google.com> Use asynchronous messages for input method events.

Improves the throughput of IME event handling by ensuring that
input events do not get serialized behind UI traversal and
drawing messages such as when the UI is animating.

Added support for creating an asynchronous Handler as part of a
HandlerCaller. It turns out we should be using an asynchronous
Handler not only in IME dispatch but also in accessibility and
wallpaper events where HandlerCaller is used. So fixed those
services to also use an asynchronous Handler.

Change-Id: I0b19140c9d5ca6ee300c1a150c48312fd55ed8eb
nternal/os/HandlerCaller.java
4bbfa9dbb08c815b890bcc1dc1759ca335b568f8 06-Dec-2012 Irfan Sheriff <isheriff@android.com> am 628ba035: am 1612e298: Merge "AsyncChannel to support remote death notification and post a disconnect message to the source handler."

* commit '628ba035b3c0636826f3eee3ae78da628cc1a8c8':
AsyncChannel to support remote death notification and post a disconnect message to the source handler.
628ba035b3c0636826f3eee3ae78da628cc1a8c8 06-Dec-2012 Irfan Sheriff <isheriff@android.com> am 1612e298: Merge "AsyncChannel to support remote death notification and post a disconnect message to the source handler."

* commit '1612e29826dfe55f8deca27374046c5931ce5335':
AsyncChannel to support remote death notification and post a disconnect message to the source handler.
1612e29826dfe55f8deca27374046c5931ce5335 06-Dec-2012 Irfan Sheriff <isheriff@android.com> Merge "AsyncChannel to support remote death notification and post a disconnect message to the source handler."
56a715ef7af1e8e808ac6274e0456d9731b97e7a 04-Dec-2012 Irfan Sheriff <isheriff@google.com> Merge "Fix NPE in StateMachine"
f98facaf808df28c54101c57097506d5f7709a4a 04-Dec-2012 Irfan Sheriff <isheriff@google.com> Fix NPE in StateMachine

Bug: 7661311
Change-Id: I8645692baf43aced1f4b364bbf13275646754b63
nternal/util/StateMachine.java
ebab0ae105f1a6df593a4bc2549fae3ee8b2ade4 04-Dec-2012 rpcraig <rpcraig@tycho.ncsc.mil> BackupManagerService files need new security labeling.

Use restorecon to label files and directories
specific to BMS.

* /data/backup : provide default type labeling
for all files/dirs used by BMS.

* /data/secure/backup : provide default type
labeling used by BMS when encrypted
file system is enabled.

* /cache/<package name>.{data|restore} :
specifically target files opened and
passed by BMS to apps that have backup
capabilities.

* /cache/backup : default labeling for the
directory used by the LocalTransport
that stores backup files for local testing.

Change-Id: Id4d46e82cd13abc2e395e0c30c515f0a33df93e7
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
nternal/backup/LocalTransport.java
2c5f782094c5668a9615e2f9f41063386ae52b28 04-Dec-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Refactoring of the screen magnification feature."
897ccbbdd822057d55c96e89f897be18c02c19cb 03-Dec-2012 Adam Powell <adamp@android.com> am e4db4e2b: am 05c8f17f: Merge "resolver list is not cleared on rebuild"

* commit 'e4db4e2b9dca065fbbf9f10dd5b9e961a9acef46':
resolver list is not cleared on rebuild
e4db4e2b9dca065fbbf9f10dd5b9e961a9acef46 03-Dec-2012 Adam Powell <adamp@android.com> am 05c8f17f: Merge "resolver list is not cleared on rebuild"

* commit '05c8f17f05ca83573f7670191e6dec91497dc742':
resolver list is not cleared on rebuild
152e9bb81aa5b2ab4637f4b2dae04b3ce89fa891 13-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Refactoring of the screen magnification feature.

1. The screen magnification feature was implemented entirely as a part of the accessibility
manager. To achieve that the window manager had to implement a bunch of hooks for an
external client to observe its internal state. This was problematic since it dilutes
the window manager interface and allows code that is deeply coupled with the window
manager to reside outside of it. Also the observer callbacks were IPCs which cannot
be called with the window manager's lock held. To avoid that the window manager had
to post messages requesting notification of interested parties which makes the code
consuming the callbacks to run asynchronously of the window manager. This causes timing
issues and adds unnecessary complexity.

Now the magnification logic is split in two halves. The first half that is responsible
to track the magnified portion of the screen and serve as a policy which windows can be
magnified and it is a part of the window manager. This part exposes higher level APIs
allowing interested parties with the right permissions to control the magnification
of a given display. The APIs also allow a client to be registered for callbacks on
interesting changes such as resize of the magnified region, etc. This part servers
as a mediator between magnification controllers and the window manager.

The second half is a controller that is responsible to drive the magnification
state based on touch interactions. It also presents a highlight when magnified to
suggest the magnified potion of the screen. The controller is responsible for auto
zooming out in case the user context changes - rotation, new actitivity. The controller
also auto pans if a dialog appears and it does not interesect the magnified frame.

bug:7410464

2. By design screen magnification and touch exploration work separately and together. If
magnification is enabled the user sees a larger version of the widgets and a sub section
of the screen content. Accessibility services use the introspection APIs to "see" what
is on the screen so they can speak it, navigate to the next item in response to a
gesture, etc. Hence, the information returned to accessibility services has to reflect
what a sighted user would see on the screen. Therefore, if the screen is magnified
we need to adjust the bounds and position of the infos describing views in a magnified
window such that the info bounds are equivalent to what the user sees.

To improve performance we keep accessibility node info caches in the client process.
However, when magnification state changes we have to clear these caches since the
bounds of the cached infos no longer reflect the screen content which just got smaller
or larger.

This patch propagates not only the window scale as before but also the X/Y pan and the
bounds of the magnified portion of the screen to the introspected app. This information
is used to adjust the bounds of the node infos coming from this window such that the
reported bounds are the same as the user sees not as the app thinks they are. Note that
if magnification is enabled we zoom the content and pan it along the X and Y axis. Also
recomputed is the isVisibleToUser property of the reported info since in a magnified
state the user sees a subset of the window content and the views not in the magnified
viewport should be reported as not visible to the user.

bug:7344059

Change-Id: I6f7832c7a6a65c5368b390eb1f1518d0c7afd7d2
nternal/policy/PolicyManager.java
c72beac860d98cf7e58b2473ff2602b191b46d16 01-Dec-2012 Amith Yamasani <yamasani@google.com> am 0f469f4f: am 32df98d5: am c566b43d: Fix crosstalk between users for widgets hosted in lockscreen

* commit '0f469f4f7eff8faee4350a0d82af325d4ae10b43':
Fix crosstalk between users for widgets hosted in lockscreen
0f469f4f7eff8faee4350a0d82af325d4ae10b43 01-Dec-2012 Amith Yamasani <yamasani@google.com> am 32df98d5: am c566b43d: Fix crosstalk between users for widgets hosted in lockscreen

* commit '32df98d52d482498d998b424684610c15098897a':
Fix crosstalk between users for widgets hosted in lockscreen
c566b43d02596cba437e9a2723e9f989297cca72 01-Dec-2012 Amith Yamasani <yamasani@google.com> Fix crosstalk between users for widgets hosted in lockscreen

This was initially about the Clock widget crashing repeatedly on some
devices with multiple users. Turned out that there were race conditions
when switching users that could result in remote views of one user calling
back to the RemoteViewsAdapter in keyguard that in turn sent an incorrect widget id
to a different user's widget, resulting in a crash.

Since KeyguardHostView is instantiated in the same process for different users,
it needs to carry a user identity to pass along to AppWidgetService so that
remote views services were bound to the correct user and callbacks were attached and
detached properly.

Added some aidl calls that take the userId to do the binding properly. A more
complete fix might be needed in the future so that all calls from Keyguard carry
the user id.

Also, there was a problem in comparing host uid for secondary users, since Settings
for a secondary user has a different uid than keyguard. Not an issue on single-user
systems. Changed the host.uid comparison to accomodate for the secondary user.

Bug: 7450247
Change-Id: Idbc36e3c60023cac74174f6cb7f2b2130dd3052c
nternal/appwidget/IAppWidgetService.aidl
38ddedc8adfc4d58f4bebe4a51149e4768d42f70 30-Nov-2012 Irfan Sheriff <isheriff@google.com> Merge "Support for dumping transition only messages"
ef8da9fe0b70fdbbb54bb0645ac66f75f58f31b8 29-Nov-2012 Irfan Sheriff <isheriff@google.com> Support for dumping transition only messages

Change-Id: I4968e28334f9dd49bd8fb81d04b25d62ca6da300
nternal/util/StateMachine.java
223172045f215cee03dbbc515cc18d433c9ea919 30-Nov-2012 Michael Jurka <mikejurka@google.com> am 4ed32c24: am d2de8033: am a8d63ec9: Merge "Disable adding keyguard widgets until setup is done" into jb-mr1.1-dev

* commit '4ed32c248a70fb3ab4d36def8f73e5b88b7fc3d5':
Disable adding keyguard widgets until setup is done
4ed32c248a70fb3ab4d36def8f73e5b88b7fc3d5 30-Nov-2012 Michael Jurka <mikejurka@google.com> am d2de8033: am a8d63ec9: Merge "Disable adding keyguard widgets until setup is done" into jb-mr1.1-dev

* commit 'd2de8033a304e951426e66e1f2c800402271c5e3':
Disable adding keyguard widgets until setup is done
03919d4084ba187d17d960ac27ba5631e8fface6 29-Nov-2012 Adam Powell <adamp@google.com> am 2a1f11e9: am 57c23a46: am 10479a29: Merge "Clean up behavior of type arguments for MediaRouter#getSelectedRoute" into jb-mr1.1-dev

* commit '2a1f11e9750951d072d04155cfe3b7b7f7b96bb7':
Clean up behavior of type arguments for MediaRouter#getSelectedRoute
70a649ca510704ccee5c6795803b3ab56082dad4 29-Nov-2012 Adam Cohen <adamcohen@google.com> am 20b9edd8: am 224daede: am 035352b4: Merge "Making sure keyguard and homescreen only display eligible widgets (issue 7550090)" into jb-mr1.1-dev

* commit '20b9edd805777bf9e603d8008650c23b031dac79':
Making sure keyguard and homescreen only display eligible widgets (issue 7550090)
36893b16ce8f7e4525685721eb336e114ae11958 29-Nov-2012 Dianne Hackborn <hackbod@google.com> am 221d59f7: am afdd978c: am 68e0da7e: Merge "Quiet down a lot of logging." into jb-mr1.1-dev

* commit '221d59f723584d316ea225bdaf1bc75cbfd7a794':
Quiet down a lot of logging.
2a1f11e9750951d072d04155cfe3b7b7f7b96bb7 29-Nov-2012 Adam Powell <adamp@google.com> am 57c23a46: am 10479a29: Merge "Clean up behavior of type arguments for MediaRouter#getSelectedRoute" into jb-mr1.1-dev

* commit '57c23a464a8428f089531a5d3cab20c81eb6ccee':
Clean up behavior of type arguments for MediaRouter#getSelectedRoute
20b9edd805777bf9e603d8008650c23b031dac79 29-Nov-2012 Adam Cohen <adamcohen@google.com> am 224daede: am 035352b4: Merge "Making sure keyguard and homescreen only display eligible widgets (issue 7550090)" into jb-mr1.1-dev

* commit '224daede9e49f53ca5246aed66d152bfcc6d64e1':
Making sure keyguard and homescreen only display eligible widgets (issue 7550090)
221d59f723584d316ea225bdaf1bc75cbfd7a794 29-Nov-2012 Dianne Hackborn <hackbod@google.com> am afdd978c: am 68e0da7e: Merge "Quiet down a lot of logging." into jb-mr1.1-dev

* commit 'afdd978ccd8d45ac789873dd4cf0ab0dd3f46d20':
Quiet down a lot of logging.
fff5614caecb0d2944b1bc206aaab0d3acb17670 29-Nov-2012 Michael Jurka <mikejurka@google.com> Disable adding keyguard widgets until setup is done

Bug: 7504154

Change-Id: I865f0139bb328e6b9b19493e0d8f9f086e2ebc38
nternal/widget/LockPatternUtils.java
10479a29cbdc55cfd25b30cd792a151234b55fa6 29-Nov-2012 Adam Powell <adamp@google.com> Merge "Clean up behavior of type arguments for MediaRouter#getSelectedRoute" into jb-mr1.1-dev
035352b4d62e259c86576dd3d1495b21bed172ff 29-Nov-2012 Adam Cohen <adamcohen@google.com> Merge "Making sure keyguard and homescreen only display eligible widgets (issue 7550090)" into jb-mr1.1-dev
d9e5af3851f592a00549b689dec325dc46268606 29-Nov-2012 Adam Cohen <adamcohen@google.com> Making sure keyguard and homescreen only display eligible widgets (issue 7550090)

Change-Id: I25acb7bde2e8e5ac3185a009f5c7151b81f0ae19
nternal/appwidget/IAppWidgetService.aidl
1cf2ca83584a4cf0aa3ded787bd191b9a60e3521 28-Nov-2012 Adam Powell <adamp@google.com> Clean up behavior of type arguments for MediaRouter#getSelectedRoute

MediaRouter's policy so far has been around a single selected route,
but when route types are entirely orthogonal this should not be the
case. However we still don't want to get into a situation where we
have multiple, very different routes selected for different types at
the same time, we still want to have more of an element of
predictability.

Behavior of getSelectedRoute is now:

* If the selected route matches at least one type with the requested
type flags, it is still considered selected for that request.

* If the caller specifically requested the selected user route and the
currently selected route is not a user route, return null.

* If the requested type flags do not match any types with the selected
route, return the default system route.

Note that this is "any" behavior instead of "all" - this matches
existing usage of the method. We may consider adding an "all" variant
later on.

Bug 7588042

Change-Id: I3a79d8153ca6b882fd3ef6b9b1de8f538873dec2
nternal/app/MediaRouteChooserDialogFragment.java
40e9f2922cae76ffcbc521481e5be8e80e8744ef 28-Nov-2012 Dianne Hackborn <hackbod@google.com> Quiet down a lot of logging.

Also fix a little problem where the USER_STARTED broadcasts
were not being sent as ordered broadcasts(!).

Change-Id: I3aa3e0a9b3900967cdd2d115ee103371b0a50c41
nternal/content/PackageHelper.java
816a5d9c27890fab17e2884fa3a67e4154ce8196 28-Nov-2012 Dianne Hackborn <hackbod@google.com> am 360acd03: am 78551bc7: am ba4ac518: Merge "Improve debugging for issue #7586414: AlarmManager wakelocks held" into jb-mr1.1-dev

* commit '360acd03bfe0d597ee845d2392d715633a89e12b':
Improve debugging for issue #7586414: AlarmManager wakelocks held
fb8ca912e8005faa61fdddde752962171b738a9e 28-Nov-2012 Winson Chung <winsonc@google.com> am d0079891: am 9f6e8ddf: am 2b847c39: Merge "Removing unecessary additional lock metadata from QuickSettings user tile." into jb-mr1.1-dev

* commit 'd0079891e3a8034f560eaf88d5be692b61ca4b9a':
Removing unecessary additional lock metadata from QuickSettings user tile.
a8f6d5f0720f400b6f59b0809aaefea83c5f51d4 27-Nov-2012 Romain Guy <romainguy@google.com> Add support for face attribute to HTML string resources
Bug #7480719

This change also adds the alias "color" for the attribute "fgcolor".
This change also unifies HTML colors parsing between the Html class
and StringBlock for consistency.

Change-Id: I696a6e080387901d88e9baf7cb989b892f14b9db
nternal/util/XmlUtils.java
360acd03bfe0d597ee845d2392d715633a89e12b 27-Nov-2012 Dianne Hackborn <hackbod@google.com> am 78551bc7: am ba4ac518: Merge "Improve debugging for issue #7586414: AlarmManager wakelocks held" into jb-mr1.1-dev

* commit '78551bc7d5541c86503b32db0e3e2564218bf179':
Improve debugging for issue #7586414: AlarmManager wakelocks held
d0079891e3a8034f560eaf88d5be692b61ca4b9a 27-Nov-2012 Winson Chung <winsonc@google.com> am 9f6e8ddf: am 2b847c39: Merge "Removing unecessary additional lock metadata from QuickSettings user tile." into jb-mr1.1-dev

* commit '9f6e8ddf5d48a695b26f1d9759696b56952177bd':
Removing unecessary additional lock metadata from QuickSettings user tile.
ba4ac51823c59152e2167365b81ac56857b6b4d0 27-Nov-2012 Dianne Hackborn <hackbod@google.com> Merge "Improve debugging for issue #7586414: AlarmManager wakelocks held" into jb-mr1.1-dev
8103890a59de6ed4abaedaad80e66666ea59f9b5 27-Nov-2012 Dianne Hackborn <hackbod@google.com> Improve debugging for issue #7586414: AlarmManager wakelocks held

In alarm manager, print a summary of the top 10 alarms by time
being executed. Keep track of execution time (and wake count) of
each type of alarm for each application so this can be printed in
the summary (and used to compute the top 10 alarms). Rework how
the alarm summary stats are tracked so that we don't need to hold
on to the full Intent for each stat and can get the Intent information
at the time the alarm is sent rather than waiting for whatever Intent
comes back in the result.

Also in the battery stats: sort the kernel wake locks by time, add
a new section showing all partial wake locks across all applications
sorted by time.

Finally a new LocalLog class that is used by AlarmManager to log
important warning messages, so these can also be later found in
its dumpsys output.

Change-Id: Icc07810053e60fb623a49937e696819cb8352b06
nternal/util/LocalLog.java
f7614fc7442e9cf2df89d4230af3f56f03a74c6e 26-Nov-2012 Winson Chung <winsonc@google.com> Removing unecessary additional lock metadata from QuickSettings user tile.

Change-Id: I89ec94385eb3cdd46ad6942bf8989fb04d5c0370
nternal/widget/LockPatternUtils.java
43a5070e06802734a1e5ea30eb5185dc7a581905 21-Nov-2012 You Kim <you.kim72@gmail.com> resolver list is not cleared on rebuild

Refactoring ResolverActivity.java

Change-Id: I84e6420ff98ddcafd27a52b041ddb1c50e7d7362
Signed-off-by: You Kim <you.kim72@gmail.com>
nternal/app/ResolverActivity.java
732e589c1040cb29deac499ae155bbb7c7358def 21-Nov-2012 Adam Powell <adamp@android.com> am 6e8c1495: Merge "Re-read shortcut labels if the language has changed"

* commit '6e8c1495f6a65124750155409ce326736744a42b':
Re-read shortcut labels if the language has changed
eb573418a7a727fb44720514da8ebc1dc37388f7 19-Apr-2011 Mattias Falk <mattias.falk@sonyericsson.com> Re-read shortcut labels if the language has changed

The shortcut label isn't updated to the current language
if the phone's language has changed.

The problem was that the shortcut label is stored in a
static variable which is set once and kept throughout the
life time of the process.

Change-Id: I89c5875fbf28fb82e073166c472ca205d28674fb
nternal/view/menu/MenuItemImpl.java
3366a5d54eccbbe861bcc765653664d80eae5398 17-Nov-2012 Michael Jurka <mikejurka@google.com> am cf474b1a: am 7b0c8779: Merge "Delete appWidgetId when removing lockscreen widgets" into jb-mr1.1-dev

* commit 'cf474b1a10a1349d0d6d6f7cbb5d48489bacfb09':
Delete appWidgetId when removing lockscreen widgets
75b5cfb4a41030333820d072578a288d4ec9899c 16-Nov-2012 Michael Jurka <mikejurka@google.com> Delete appWidgetId when removing lockscreen widgets

Bug: 7550012

Change-Id: Ia9f5266256016eb91bfd6a2d5a7f910c42948f1e
nternal/appwidget/IAppWidgetService.aidl
9634e970679c687572e2da84250adc8baf91a8c3 15-Nov-2012 Jeff Sharkey <jsharkey@android.com> am bfea4f04: am f5377a72: Merge "Useful annotations for code documentation." into jb-mr1.1-dev

* commit 'bfea4f04f226f1adf374412628d5945c380382a7':
Useful annotations for code documentation.
8b2c3a14603d163d7564e6f60286995079687690 12-Nov-2012 Jeff Sharkey <jsharkey@android.com> Useful annotations for code documentation.

Bug: 6537978
Change-Id: I806c3c09e3255f8789455f13bf37c1dde2a93f1f
nternal/annotations/GuardedBy.java
nternal/annotations/Immutable.java
nternal/annotations/VisibleForTesting.java
nternal/net/NetworkStatsFactory.java
e0d454d2e86f4170bdab68d45696fb2eb9a87f9f 09-Nov-2012 Dianne Hackborn <hackbod@google.com> am 72325cdb: am 63bc6c12: am a46a74fc: Merge "Remove extraneous logs." into jb-mr1-dev

* commit '72325cdb65a321df7755ba214efd9be42ce828d5':
Remove extraneous logs.
23b94022ba4cdd0b45c2c2835d45921423d916c8 09-Nov-2012 Jim Miller <jaggies@google.com> am 3a191b49: am f3add313: am 3c9297c3: Merge "Attempt to fix NegativeArraySizeException crash in keyguard" into jb-mr1-lockscreen-dev

* commit '3a191b495c886a654f33fe717467a74975137e58':
Attempt to fix NegativeArraySizeException crash in keyguard
09b6f4bbff67f210aa135d0158985cb3c47f95a4 09-Nov-2012 Svetoslav Ganov <svetoslavganov@google.com> am 8fa69381: am 0e538548: am cd1f3095: Merge "Slide unlock cannot get accessibility focus." into jb-mr1-lockscreen-dev

* commit '8fa69381f212b85ec9156e0a95382cd3ff312444':
Slide unlock cannot get accessibility focus.
92f828f2a4f873871ddd4b6f81812f94cc0bd227 09-Nov-2012 Adam Cohen <adamcohen@google.com> am 24b1764e: am 9477f8de: am 3e66286f: Merge "Fixing up glowpad scaling issues (issue 7494378)" into jb-mr1-lockscreen-dev

* commit '24b1764e6c1996926ecba280f236ab05cec68b2c':
Fixing up glowpad scaling issues (issue 7494378)
9d15b4cb70e0141bb5fe4e266bb505b4f84eb1ec 09-Nov-2012 Michael Jurka <mikejurka@google.com> am 5dc8ce48: am c7037934: am cabcc590: Merge "Allowing rotation while adding lockscreen widgets" into jb-mr1-lockscreen-dev

* commit '5dc8ce48d80c339070b626903a57846d4357c2f2':
Allowing rotation while adding lockscreen widgets
0c06c2b35c50a8391fb95e8f9b277e0b9899c1c1 09-Nov-2012 Adam Cohen <adamcohen@google.com> am 580657a3: am 96c3f7e5: am 1361758f: Merge "Giving glow pad the brains to scale itself dynamically (issue 7449554)" into jb-mr1-lockscreen-dev

* commit '580657a34851c29f013586578241d2f4d6dc4f5d':
Giving glow pad the brains to scale itself dynamically (issue 7449554)
d31bc8ca2ce4c1288f14cf650944c9b65a588b72 09-Nov-2012 Michael Jurka <mikejurka@google.com> am f1424272: am 1aad5be9: am 835579e8: Merge "Removing sticky widgets in lockscreen" into jb-mr1-lockscreen-dev

* commit 'f142427244dde3e467b126df4840f496e09cef56':
Removing sticky widgets in lockscreen
fcb8042316bad141cab189de6dfacd60e8d09848 09-Nov-2012 Jim Miller <jaggies@google.com> am 8920c259: am 259e3121: am 51117262: Handle DevicePolicyManagement and safe mode when inflating widgets

* commit '8920c259c8f5c63e4fae40f00afb185daa8008fb':
Handle DevicePolicyManagement and safe mode when inflating widgets
a46a74fcd61d2b4e72b6027625a471f10b21b1c9 08-Nov-2012 Dianne Hackborn <hackbod@google.com> Merge "Remove extraneous logs." into jb-mr1-dev
7ff30113de68539ec840c524b8f1561f938f96c5 08-Nov-2012 Dianne Hackborn <hackbod@google.com> Remove extraneous logs.

Change-Id: I4c47d36748de91bd6fddc419afbf59552bf63e9a
nternal/widget/TransportControlView.java
3c9297c3cb739b9aec9ccff7e4e3e05006edb836 08-Nov-2012 Jim Miller <jaggies@google.com> Merge "Attempt to fix NegativeArraySizeException crash in keyguard" into jb-mr1-lockscreen-dev
7ce0c13c0e5a1413ecde1a5c36510d22979f9012 08-Nov-2012 Svetoslav Ganov <svetoslavganov@google.com> Slide unlock cannot get accessibility focus.

1. There are two overlaid views, one is the GlowPadView and the
other is the SlidingChallengeLayout. Since the GlowPadView is
on top of the other view it has to consume the hover events or
they will be dispatched to the view behind it which results
the the GlowPadView not getting accessibility focus.

bug:7496770

Change-Id: Iae3b1777e490c56e33560a016fc04a92226bfb66
nternal/widget/multiwaveview/GlowPadView.java
3e66286f7cf33ef13fd9f4f033816b84828c1f2b 07-Nov-2012 Adam Cohen <adamcohen@google.com> Merge "Fixing up glowpad scaling issues (issue 7494378)" into jb-mr1-lockscreen-dev
f988bdfbaebe8ee94f6459f3c8d964467f2c62c9 07-Nov-2012 Adam Cohen <adamcohen@google.com> Fixing up glowpad scaling issues (issue 7494378)

Change-Id: I55c0f7a3774d42d4f5893b12bc0c08690268e351
nternal/widget/multiwaveview/GlowPadView.java
58ed5d748c0b9b64845975ef5844ad313de7c3f6 07-Nov-2012 Kenny Root <kroot@google.com> am 768d9e1a: Merge "Correct executable bit for source files"

* commit '768d9e1a72ceee7d4a5f608776b87b62d6ce4a04':
Correct executable bit for source files
3a084af2e90849aaa8beb3a610189e3399c63ea0 07-Nov-2012 Kenny Root <kroot@google.com> Correct executable bit for source files

Many media files and source code files were marked as executable in Git.
Remove those.

Also a shell script and python script were not marked as executable.

Change-Id: Ieb51bafb46c895a21d2e83696f5a901ba752b2c5
nternal/app/IMediaContainerService.aidl
nternal/app/IUsageStats.aidl
nternal/app/NetInitiatedActivity.java
nternal/os/PkgUsageStats.aidl
nternal/os/PkgUsageStats.java
cabcc5900790daaa9ca4d080848c9b505c3de126 07-Nov-2012 Michael Jurka <mikejurka@google.com> Merge "Allowing rotation while adding lockscreen widgets" into jb-mr1-lockscreen-dev
192d6d4ee271c0782a3bf5d8c64e42eb22d1a6fa 07-Nov-2012 Michael Jurka <mikejurka@google.com> Allowing rotation while adding lockscreen widgets

Also cleaning up some unused code

Bug: 7468012
nternal/widget/LockPatternUtils.java
e41dd0f195d77329bdf686af1dcbfd92bdbb5373 07-Nov-2012 Adam Cohen <adamcohen@google.com> Giving glow pad the brains to scale itself dynamically (issue 7449554)

Change-Id: I44f31d354171c01b607871d6a9e1e9d06a49ffc8
nternal/widget/multiwaveview/GlowPadView.java
a97686096265c2b718e15f806bca352675e5cd2d 07-Nov-2012 Jim Miller <jaggies@google.com> Attempt to fix NegativeArraySizeException crash in keyguard

Fixes bug 7490924

Change-Id: I974c9b7a4fb3de536efe9d47cdd480190772a1be
nternal/widget/LockPatternUtils.java
76017cad4f7af95380ee5eaf6dc610bb46088a9c 07-Nov-2012 Michael Jurka <mikejurka@google.com> Removing sticky widgets in lockscreen

Also adding mechanism to show a widget after
adding it

Change-Id: Ic4d49e6ef1343c38fa731b0ed2a327c55b678abf
nternal/widget/LockPatternUtils.java
51117262c8fadb6d227d137e83ad66996b013141 05-Nov-2012 Jim Miller <jaggies@google.com> Handle DevicePolicyManagement and safe mode when inflating widgets

Bug 7459120
Bug 7444159
Bug 7444016

Change-Id: I7966ec510da8113ac571b5a4b9dc48dd291396e8
Conflicts:
policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java
nternal/widget/LockPatternUtils.java
67a871d85732e582c70a2a1d85ef4419eb658a12 02-Nov-2012 Michael Jurka <mikejurka@google.com> Use clock's widget as the default keyguard widget

Also, if we have no widgets in lockscreen,
reinflate the default widget. If that fails,
inflate the built-in clock (KeyguardStatusView)

Change-Id: I2e90ab0893c993a755700e075e4a8ac5a685e0f2
nternal/widget/LockPatternUtils.java
667b5d58b9e8b77221c87811c5c9aab1bfe44ffa 01-Nov-2012 Brian Colonna <bcolonna@google.com> Suppressing FUL after going to backup fixes b/7449820

Face Unlock would reappear when rotating a tablet after it had already
fallen back to the backup unlock method. This change suppresses Face
Unlock after going to the backup so it isn't seen again until the user
leaves and revisits keyguard.

This change also removes the exposeFallback() callback from Face
Unlock. It has been unnecessary for a long tiem since Face Unlock no
longer covers the backup. The Face Unlock service was therefore
making unnecesaary calls via the AIDL interface.

Note that the AIDL interface change broke obsolete keyguard stuff.
That is being deleted soon anyway, so code has just been commented out
of the obsolete files to make it compile.

Change-Id: Ia5c451cce1703b3bc03e27a35c6b38373e944d1b
nternal/policy/IFaceLockCallback.aidl
c4842c11932ea4f60fe7ae09b0a59660207e1587 31-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Accessibility support for the lockscreen - phone.

Change-Id: Idc99f1322a1d635dd07e1f5efa1665a4676267c2
nternal/widget/LockPatternView.java
fc753c0cf676000b1c2d3cb2728af85a9b49f795 31-Oct-2012 Michael Jurka <mikejurka@google.com> Use new keyguard appwidget picker

Also, remove ability to filter widgets by feature
in appwidget picker in anticipation of api change

Change-Id: I325de0b98f03d3a250758d504229ea27794b5330
nternal/widget/LockPatternUtils.java
a0a230abf3aef48ab984b844a00e9ca194722623 31-Oct-2012 Danielle Millett <dmillett@google.com> Merge "Removed makeInvisible() function" into jb-mr1-lockscreen-dev
54d181db0e7a4335918b4c38f4418430ca99b6c1 31-Oct-2012 Danielle Millett <dmillett@google.com> Removed makeInvisible() function

This is now being done inside stopUI instead of its own separate
call since it needs to be done on the UI thread inside FaceLockService.

Change-Id: Iaf3a203f7f201ba4dde4c878f457e765f11e6c0e
nternal/policy/IFaceLockInterface.aidl
ddbf138d11d9ad4fa9ec871b2fc5862dad20f02c 30-Oct-2012 Brian Colonna <bcolonna@google.com> Fixed misplacement of cancel(X) button for Face Unlock

Before the FUL service started, the FUL cancel button was positioned
off of the right side of the window. This was because the
FaceUnlockView (derived from RelativeLayout) was calling
super.onMeasure() incorrectly, preventing it from using the new
'square' size when laying out child views.

Change-Id: I2f1e86617da5c8f37123febab2e433288bdea062
nternal/widget/FaceUnlockView.java
68d257d788f5154922cd605ab8079a5c0815dffc 30-Oct-2012 Brian Colonna <bcolonna@google.com> FUL uses square aspect ratio for all layouts fixes b/7426399

When the referenced bug was filed, face unlock was only showing as a
tiny sliver on tablet layouts. Due to other changes in the lockscreen
branch, it was no longer a sliver, but was still an incorrect layout,
with a width much greater than height. This change makes face unlock
square for all layouts.

The face unlock RelativeLayout was replaced with a custom
FaceUnlockView derived from RelativeLayout. The new view forces a
square layout using the same technique used by LockPatternView.

Note that there is still a bug where the pattern view covers the widget
area on portrait tablet layouts. The face unlock view has this same
issue, but may resolve itself when the pattern bug is fixed.

Also note there are two other Face Unlock tablet bugs that existed
before this change (and therefore are not caused by this change):
- flash during transition from spotlight animation to camera preview
- PIN backup is upper-left instead of centered

Change-Id: I550eccfa3924f230a9dc43f0a9b59f1ea55a9273
nternal/widget/FaceUnlockView.java
1108a2cb412b054cc9e4acc48182c46c45180c0c 30-Oct-2012 Danielle Millett <dmillett@google.com> Added a makeInvisible call to Face Unlock

This makes it so that the view is hidden immediately when
a call to stop is made. This also changes the call in onPause to
only stop and not go to the backup because we still want Face Unlock
to show as the view is being dragged down.

Change-Id: I66d8fc24e82dc3a0155f7d59d8ced932cb584660
nternal/policy/IFaceLockInterface.aidl
5f050e5c2c1616c7f0795c4f13e42a5d150b8015 27-Oct-2012 John Spurlock <jspurlock@google.com> Use settings to persist sticky widget.

Addressing some comments:
- Sticky widget is now saved in a user-scoped setting.
- Removed multi-user widget from computation (obsolete).
- Removed status widget from computation (just use right-most).
- Removed duplicate isMusicPlaying logic.

(frameworks/base)

Change-Id: I8ef8f826677d78ac24da52adf2d99d47c8d965ac
nternal/widget/LockPatternUtils.java
1d269e8e8fc508f59e4010777f4da6a2feafb0a4 27-Oct-2012 Chris Wren <cwren@android.com> Merge "single unlock target with honycomb semantics" into jb-mr1-lockscreen-dev
68b14054b96571d4009c6c5a9b4c3413d908a523 27-Oct-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Revert "Fix bug #7325234 LayoutParams are not resolved correctly (Settings apps looks broken on Manta in Arabic)"" into jb-mr1-dev
bb4b601673a4f910d3e467bc5ce39538438859ce 27-Oct-2012 Fabrice Di Meglio <fdimeglio@google.com> Revert "Fix bug #7325234 LayoutParams are not resolved correctly (Settings apps looks broken on Manta in Arabic)"

This reverts commit 6bf6eb7d5f9207d6a3e1d6b61f17a8654d06fbdb.
and also fbc21e126f329b7b7c161858c1390ccb023be07e

I have also removed all unnecessary calls to resolveLayoutDirection(int). This is possible as
we are resolving layout params on every child of a ViewGroup as of commit
fcc3348f61b2992f0b84e8e8dcb3535fc715298f

Change-Id: I262a375b03fcc3c9261cbe2edebb6ec42ec2e186
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
229dd8b3559257ba31f31299d1d2fc4d1ba14bbb 27-Oct-2012 Michael Jurka <mikejurka@google.com> Fix bug where it wasn't possible to add widgets

- Happened when you were down to 0 widgets (which
won't be possible in future, but fixing this as
well)
nternal/widget/LockPatternUtils.java
f0ee5b813597e97123d518b227c555c0ea0c0f29 26-Oct-2012 Chris Wren <cwren@android.com> single unlock target with honycomb semantics

Bug: 7411431
Change-Id: I27a86041c93369df2be2d53cb81c29658e70bcca
Proto-Id: I631fa48da4c67351366bcc1002a01dfa66a34d8c
nternal/widget/multiwaveview/GlowPadView.java
358148e386a20801430aaf6f3f7ca02807cd71c3 26-Oct-2012 John Spurlock <jspurlock@google.com> Implement "sticky" widget logic.

(frameworks/base)
Used after screen-off, and after launching camera.

Bug: 7418847
Change-Id: I5179e6af13be4494fde77fde2cdb5610ab888dac
nternal/widget/LockPatternUtils.java
1254f2f42f7173ef51d0034975ab5cb7d44f8209 25-Oct-2012 Michael Jurka <mikejurka@google.com> Persist reordering/deleting widgets on keyguard

Also, clean up warnings from unused imports

Change-Id: Id0ef12a584ffdaa8a4fb64ffe93d0dda0af398ec
nternal/widget/LockPatternUtils.java
8b3dd40019db2c5744b3adceb75a231311bc00b7 25-Oct-2012 Michael Jurka <mikejurka@google.com> Fix build
nternal/widget/LockPatternUtils.java
aa2859ae61098509495b7938e32a6d59d37561be 24-Oct-2012 Michael Jurka <mikejurka@google.com> Adding ability to add multiple widgets to keyguard

Bug: 7381803
nternal/widget/LockPatternUtils.java
962159addd6705d11bdd4c0fa3b83c0b7d95b28a 24-Oct-2012 Adam Powell <adamp@google.com> Fix up GlowPadView attributes

Change-Id: I98c14177753e713fcdaaf886c44ce10ab49eebc9
nternal/widget/multiwaveview/GlowPadView.java
9bef3294d3660a85442829a25c9777e25d3c3cc8 20-Oct-2012 Kenny Root <kroot@google.com> Merge changes Ie3c8ca8d,Ia175b36d into jb-mr1-dev

* changes:
Try to free cache before giving up on install
Robustly add symlink and add for non-primary users
6e7aa77565553e487a1e14478d9c30f512156232 19-Oct-2012 Jeff Sharkey <jsharkey@android.com> Parcel VpnProfile without using disk format.

The on-disk format of VpnProfile only stores the username/password
when saveLogin is set, which was dropping them across IPC boundaries.

Bug: 7378327
Change-Id: I30c16efb358ab8f8d3d9229bbf9811146fe034ce
nternal/net/VpnProfile.java
cea3743499f4bb8e5f28a2e57686d7af313169c5 18-Oct-2012 Kenny Root <kroot@google.com> Try to free cache before giving up on install

Try to get installd to free up cache before giving up when there is too
little space free.

Bug: 7232123
Change-Id: Ie3c8ca8dfc190abbb9a29a7baee31f32e9de7d69
nternal/app/IMediaContainerService.aidl
95cccb9d6175cb80d9312fadbe40cf7c4ec9f949 12-Oct-2012 Jeff Sharkey <jsharkey@android.com> Merge "Make all lockscreen widgets follow haptic flag." into jb-mr1-dev
723a725e790d269f32980116e775d3d7f0037865 12-Oct-2012 Jeff Sharkey <jsharkey@android.com> Make all lockscreen widgets follow haptic flag.

Bug: 7337006
Change-Id: I782e498b7528e612c4b06a75b77f5521c951cbd6
nternal/widget/RotarySelector.java
nternal/widget/SlidingTab.java
nternal/widget/WaveView.java
nternal/widget/multiwaveview/GlowPadView.java
nternal/widget/multiwaveview/MultiWaveView.java
6bf6eb7d5f9207d6a3e1d6b61f17a8654d06fbdb 11-Oct-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #7325234 LayoutParams are not resolved correctly (Settings apps looks broken on Manta in Arabic)

Part 2

- fix remaining UI widgets by asking layout params resolution when needed

Change-Id: I97c41639da645d77eeda85feec3bbcc7fc1260b9
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
b8021a88e5c00ebd985a348b56af29c95a178a90 11-Oct-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #7326778 Rename LayoutParams.onResolveLayoutDirection(int)" into jb-mr1-dev
2918ab6c3258639148b8a5c78a34483af195246e 11-Oct-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #7326778 Rename LayoutParams.onResolveLayoutDirection(int)

- rename to LayoutParams.resolveLayoutDirection(int)
- upate 17.txt too

Change-Id: I54fe28dc47cfdb65ef0b5b0244dabbe1d675c781
nternal/widget/ActionBarView.java
5ed9d680409c83fbfd7b617d7f257305d3c34b62 10-Oct-2012 Jeff Sharkey <jsharkey@android.com> Move lockscreen to using haptic feedback setting.

This removes lockscreen-specific "Vibrate on touch" setting, and
changes it to use the haptic feedback setting instead.

Bug: 7318772
Change-Id: I637c392a1aaa22403cb20da4723f90c3b2e3de19
nternal/widget/LockPatternUtils.java
14c4669916ae993b248f00c55daf0f17069903d9 10-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Cannot force a shown item from an ActionMode into the overflow menu.

1. An app showing an action mode with a visible item that decides to move this item
to the overflow menu cannot do so since the action menu is not updated properly.
Specifically, ActionMenuPresenter does not clear the "is action button" property
of a menu item neither requires nor requests an action button, i.e. the item's
"show as action" property changed to be never shown on the action bar.

bug:7319766

Change-Id: I5cfda6269466fafca1f039a3bab6397392ae9f17
nternal/view/menu/ActionMenuPresenter.java
245b453733d0b611960844d939e0013f285a5a9a 08-Oct-2012 Jim Miller <jaggies@google.com> Properly handle cancel event in GlowPadView

There was a workaround used in a previous release where we effectively
ignored cancel events to work around another bug. This change removes
the workaround and GlowPadView correctly handles the event.

Bug 6903638

Change-Id: I9b510985c6da346a4e10cf2535267c8d5efa5871
nternal/widget/multiwaveview/GlowPadView.java
f752202bee88e31ce765483ba2efa6999ae9c9ad 04-Oct-2012 Adam Cohen <adamcohen@google.com> Plumbing to allow keyguard to be shown with user switcher (issue 7175023)

-> Also reduced calls to lockNow, and moved this call in ActivityManagerService

Change-Id: I9ba34ca902f7c0f71fa4ec302104688ca8d11f55
nternal/widget/LockPatternUtils.java
203a2f464cef0d873ba8a6193e288fd25b6dc907 04-Oct-2012 Amith Yamasani <yamasani@google.com> Fix launching home when there are multiple launchers installed

Bug: 7283782

Since ResolverActivity now runs in the correct user, it doesn't need to explicitly
pass in the calling userId. In fact, for the Home case, since ActivityManager is
the one requesting resolution of Home activity, Resolver is running as user 0
instead of the current user.

Removing explicit calls based on the launchingUid fixes the problem.

Change-Id: I4676c155aafaa0dd5cefb1acefa0e7e9c1e20f25
nternal/app/ResolverActivity.java
e303c5c3eb2f65ef3c6fc2693cc3cbcee92d63b7 03-Oct-2012 alanv <alanv@google.com> Send LockPatternView accessibility announcements before callbacks

This allows the pattern's listener to optionally send accessibility
announcements that interrupt the defaults, rather than the view always
interrupting the listener.

Bug: 7256500
Change-Id: Ief2f5cc2fae76a3becc1321d14d46f97b3092215
nternal/widget/LockPatternView.java
c6e570dbadc3689bc80c0516492a3209d5f6742b 02-Oct-2012 Jim Miller <jaggies@google.com> Merge "Fix camera disambiguation in secure keyguard" into jb-mr1-dev
ee82f8fa2d47fc1dbfc29582ae348b3c45ff8fe0 02-Oct-2012 Jim Miller <jaggies@google.com> Fix camera disambiguation in secure keyguard

When there are multiple activities that respond to MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE
we need to show the disambiguation dialog to the user. However the disambiguation "dialog"
is actully an activity themed as a dialog. Hence, we can't show it in the secure keyguard.

This works around the issue by prompting the user for their credentials directly when the
intent needs disambiguation. This will take them out of keyguard and prompt them for
which activity they want to use.

We'll provide a more robust solution in a future release.

Fixes bug 7109816

Change-Id: I94e643d3cb503e1ce6de24c82400b4d5fcbb9d95
nternal/widget/LockPatternUtils.java
4aeb961de2a2bbf0d897a8436b6421ecfbc4d712 01-Oct-2012 Casey Burkhardt <caseyburkhardt@google.com> Sets accessibility importance for the home/up button.
Bug: 7196985
Change-Id: I4d27470eccb8933f751db892218a8032a80df3da
nternal/widget/ActionBarView.java
13451a25fff12c1429f9ecdc24b2aa7696359f7d 28-Sep-2012 John Spurlock <jspurlock@google.com> Status bar: Keep disabled state per user.

Bug:7165607
Change-Id: If6f7a41c2516996612aef5e013dd0d2bd23f9084
nternal/statusbar/IStatusBarService.aidl
705ab808cf023e0cc38c2ba7cdb9571942cdc04f 17-Sep-2012 Adam Powell <adamp@google.com> Add wireless display selection support to MediaRouter.

* Adds the new route type LIVE_VIDEO

* Wireless displays support both LIVE_VIDEO and LIVE_AUDIO, making
wireless display routes valid selections in when apps make selecting
live audio routes available.

* MediaRouter will only report/manipulate wireless displays that have
already been paired at the system level.

Bug 7177920

Change-Id: Ic221b8687d77b4c0df9801c396b74870e86206e9
nternal/app/MediaRouteChooserDialogFragment.java
0dc2b81ce1400ae23faa5cc386caeef235856307 28-Sep-2012 Daniel Sandler <dsandler@android.com> Merge "Cleanup internal status bar APIs." into jb-mr1-dev
5e08af03a3dffff8b8fc098790e5133589601d8f 22-Sep-2012 Christopher Tate <ctate@google.com> Respect per-user rotation lock et alia

Various per-user settings such as rotation lock are relevant to the
singleton PhoneWindowManager object. We now listen for user-switch
broadcasts and reconfigure the active state based on the newly-
active user's settings.

The RotationPolicy toolset has also been updated to do the right
thing, as has the Quick Settings UI.

Bug 7213638

Change-Id: Iee2109e48df550b4c979d3f9c91b5d2b71a6a08e
nternal/view/RotationPolicy.java
3af630c8d18bcf4b23a5a308917319dd04cc8ed2 26-Sep-2012 Jim Miller <jaggies@google.com> Update keyguard layouts on phone

- Go back to using old date format
- All keyguard text is now caps
- Lower brightness on emergency call text
- Fixed CR/LF issue with Owner info
- Added new alarm icon and fixed padding
- Swapped Google Now and lock icon in landscape mode
- Centered PIN/Password/Pattern help text in view in portrait
- Fixed keyboard size issue in landscape
- Merge new assets from UX

Change-Id: I7adb44b6c9a57d40cab0a77433d43291fb277568
nternal/widget/PasswordEntryKeyboardHelper.java
11cf178100e71d3f9f34ab5865e03a277c5eadaa 27-Sep-2012 Daniel Sandler <dsandler@android.com> Cleanup internal status bar APIs.

IStatusBarService.collapseQuickSettings is gone;
collapseNotifications is now collapsePanels, which does what
collapse() used to do. Similarly,
IStatusBar.animateCollapseQuickSettings is now simply
IStatusBar.animateCollapse().

Bug: 7245229
Change-Id: Id157d2fdf34926d3c85ffa8b81c741a5359aede4
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
7b879999fe2bef549ed1c04259fcd7f07e10e83b 27-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7238170: Edit picture option is not available for the secondary user." into jb-mr1-dev
4d5c2b03172747843d0549eeea890150a705b86b 27-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7238170: Edit picture option is not available for the secondary user.

Change-Id: Icb3229f543f286afb4a31e267099eceaa0cca11d
nternal/app/ResolverActivity.java
f05d511bc95c5d0bdfa6d64c6a8a02c6a099703f 26-Sep-2012 Kenny Root <kroot@google.com> Merge "LockScreen: only set keystore password for owner" into jb-mr1-dev
df8bfe0cf65b4f864eb3eb60c1371f987c79ca20 22-Sep-2012 Kenny Root <kroot@google.com> LockScreen: only set keystore password for owner

Since KeyStore doesn't support multi-user, only unlock or set the
password on the keystore when the "owner" enters a password.

Bug: 7169463
Change-Id: I97b4ba714dc6e400a6e45825c71f81c4629392d8
nternal/widget/LockPatternUtils.java
c91fb5875bfd7f91d50d6fe939873872b53c8b2f 26-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding a global accessibility action to open quick settings." into jb-mr1-dev
e20a177d3f147f3011647c3bdab401f90b2c5d1d 26-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Adding a global accessibility action to open quick settings.

1. Added APIs for opening the quick settings to the StatusBarManagerService
and the local StatausBarManager. The new APIs are protected by the old
EXPAND_STATUS_BAR permission.
Renamed the expand* and collapse* non-public APIs that are expanding
the notifications to expandNotifications* collapseNotifications* to
better convey what they do given that this change adds
expandQuickSettings* and collapseQuickSettings*.
Added a global action to the accessibility layer to expand the quick
settings which is calling into the new status bar manager APIs.

bug:7030487

Change-Id: Ic7b46e1a132f1c0d71355f18e7c5a9a2424171c3
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
98edc951712823dbf5db2b7e9c203a0e98fc616b 25-Sep-2012 Amith Yamasani <yamasani@google.com> Load resources for the correct user

For apps that are only installed on secondary users, the SystemUI is
unable to see them by default. Added some methods to explicitly pass the
userId of the user the resources are requested for by the StatusBarIcon

Bug: 7214384

Also fix binding to remote views

Bug: 7192802

Change-Id: I5d6c5f624aa37fb231f3467f9764c8d99077a91d
nternal/statusbar/StatusBarIcon.java
cd11b223f3d23ca0f92b53808f7e1cce928c2a7b 24-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #7214090: Need to be able to post notifications to all users" into jb-mr1-dev
50cdf7c3069eb2cf82acbad73c322b7a5f3af4b1 24-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7214090: Need to be able to post notifications to all users

Also fix a bunch of system services that should be doing this. And
while doing that, found I needed to fix PendingIntent to evaluate
USER_CURRENT at the point of sending, not creation.

Note that this may end up with us having some notification shown to
non-primary users that lead to settings UI that should only be for
the primary user (such as the vpn notification). I'm not sure what
to do about this, maybe we need a different UI to come up there or
something, but showing the actual notification for those users at
least seems less broken than not telling them at all.

Change-Id: Iffc51e2d7c847e3d05064d292ab93937646a1ab7
nternal/statusbar/StatusBarNotification.java
26c5686b7e3bf0ba238c55caa3e86447bab7cc61 24-Sep-2012 Jim Miller <jaggies@google.com> Merge "Better handling of multiple touch events in GlowPadView" into jb-mr1-dev
b499884ba1fa9577363524d1f28100627926d3b6 24-Sep-2012 Jim Miller <jaggies@google.com> Better handling of multiple touch events in GlowPadView

This fixes a bug where a secondary touch event from the edge of the screen
would cause GlowPadView to choose the wrong target. The issue is resolved
by keeping track of pointer ids and only allowing the one that initiated
the gesture to complete it.

Fixes bug 7133500

Change-Id: If296b60af2421bfa1a9a082e608ba77b2392a218
nternal/widget/multiwaveview/GlowPadView.java
239e430578fd2d3bd38a646595a82bca95359bd7 24-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #6427629 Clean up layout direction APIs" into jb-mr1-dev
e3f2ac9e526e5b4de4d2ae113e644c1cb14b1ce6 24-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #6427629 Clean up layout direction APIs" into jb-mr1-dev
e56ffdc7b31b0937628609cc3bbaa15879023569 23-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #6427629 Clean up layout direction APIs

- rename getResolvedLayoutDirection() to getLayoutDirection()

Change-Id: I3afe56c0db0751952f5056c23893cb7455531d29
nternal/view/menu/IconMenuItemView.java
nternal/widget/ActionBarView.java
nternal/widget/multiwaveview/GlowPadView.java
nternal/widget/multiwaveview/MultiWaveView.java
4457e85a7090ad51726d50a4daf981d917cceedd 19-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #6427629 Clean up layout direction APIs

- canResolveXxx() should be hidden
- resetResolvedXxx() should be hidden
- resolveDrawables(), resolveLayoutDirection(), resolvePadding(), resolveTextAlignment(), resolveTextDirection() should be hidden
- onResolvedXxx() should be merged into one callback
- fix also an issue with setting the layout direction of the drawable in ImageView
- fix also an issue with checking if TextAlignment can be resolved

Change-Id: I1402269ddf8632525f5550f80e5610e1a7b4034d
nternal/widget/ActionBarContainer.java
11820f7386ce86fd89e9e6b49d9231dce6e1ed07 23-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Allow acquiring ContentProviders across users." into jb-mr1-dev
6d51571835737c7502a2e111ee9dc2527ebad984 21-Sep-2012 Jeff Sharkey <jsharkey@android.com> Allow acquiring ContentProviders across users.

Otherwise services like SystemUI will always open content://-style
Uris as USER_OWNER. Surfaces through createPackageContextAsUser()
which points all ContentResolver operations towards a given user.

Start using in RemoteViews, so that Notifications correctly resolve
image Uris to the sending user. Also add user support for "content"
shell tool.

Bug: 7202982
Change-Id: I8cb7fb8a812e825bb0b5833799dba87055ff8699
nternal/statusbar/StatusBarNotification.java
77e95d3d71f10a0d936445e3f3ed90e15c019024 22-Sep-2012 Amith Yamasani <yamasani@google.com> Merge "Show lockscreen widgets for the current user." into jb-mr1-dev
8fd96ec2dc215095d12ef3e9bd7dc50ebc78625e 22-Sep-2012 Amith Yamasani <yamasani@google.com> Show lockscreen widgets for the current user.

Also shows the owner info and next alarm for the current user.
AppWidgetService now assumes that any widgets running in the system process are for the
current user, so that lockscreen shows widgets for the current user

Bug: 7211754
Bug: 7212421

Change-Id: Iaf0edc60e49af0afe42625c0b2dcf100c9ecc178
nternal/widget/LockPatternUtils.java
6eeff850b245bd3be3a0e782cd9f28daadf922dc 22-Sep-2012 Jim Miller <jaggies@google.com> Merge "Remove UID checks from LockPatternUtils" into jb-mr1-dev
25645d8bbcced4416122d5dadedcf030a7bc12e5 21-Sep-2012 Jim Miller <jaggies@google.com> Remove UID checks from LockPatternUtils

The UID checks should be unnecessary because LockPatternUtils already relies
on system permission checks in Settings, LockSettings, DevicePolicyManager
and Keystore. These checks should already catch illegal operations.

This was interfering with the stand-alone test app for keyguard.

Change-Id: I2da2a729ca29feae9e962c2e360ec47490bcbbf0
nternal/widget/LockPatternUtils.java
7566abd305a2b3060ae541055ed04f087f5266ec 21-Sep-2012 Michael Jurka <mikejurka@google.com> Merge "Add support for changing status widget on security screen" into jb-mr1-dev
20c41d5382b70fa5a24e9ef68f19ce0aedea5234 21-Sep-2012 Michael Jurka <mikejurka@google.com> Add support for changing status widget on security screen

Change-Id: I080fd89eb84445604c602b6e807b55153a7ee129
nternal/widget/LockPatternUtils.java
6de76d21ff60818f8b296fc8f645897203f475da 20-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Implement multi-user PackageMonitor." into jb-mr1-dev
c72fc674a33b8d17585764d09d3bb6c77d7d947e 20-Sep-2012 Dianne Hackborn <hackbod@google.com> Implement multi-user PackageMonitor.

New APIs let you indicate what user(s) to monitor, and tell you
what user is changing when receiving a callback.

Fix package manager to only deliver package brpadcasts to the
running users. (This isn't really a change in behavior, since
the activity manager would not deliver to stopped users anyway).
Make sure all broadcasts that package monitor receives also include
user information for it to use.

Update wallpaper service to (hopefully) now Really Correctly
monitor package changes per user.

Change-Id: Idd952dd274abcaeab452277d9160d1ae62919aa0
nternal/content/PackageMonitor.java
109f1fd80c90409c0d7f21d49989641dfdf2ad1b 20-Sep-2012 Jim Miller <jaggies@google.com> Update keyguard selector view to match UX design spec
- Use new Roboto-Thin font
- Add new keyguard-specific date format
- Layout tweaks to keyguard selector screen.
- Add smart EmergencyButton class
- Add selective upper-casing of components on the display to enable later UX decision
- Work around SIM state bug

Bug: 7094419
Change-Id: Ic7e0f30697c14d4946372509d98ad81bf6a23c92
nternal/widget/LockPatternUtils.java
52716deb4008da1d566dfd711edc0a9c6de5f79f 19-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix deadlock in LockPatternUtils by using local id." into jb-mr1-dev
f1b674197577e815040cd75ef86d611965d603ad 19-Sep-2012 Craig Mautner <cmautner@google.com> Fix deadlock in LockPatternUtils by using local id.

Activity manager now updates window manager's current user id
directly and immediately rather than waiting for a broadcast
update. Window manager passes this through policy to the
KeyguardViewMediator and into LockPatternUtils. LockPatternUtils
no longer goes to Activity to get the current user id if it finds
that its local id is non-default.

Fixes bug 7193726.

Change-Id: Id5613e7a9fe9e5b49e83c26b74504f587c3998c2
nternal/widget/LockPatternUtils.java
10bd4106efc22efd57875a2fb914110475c91856 19-Sep-2012 Adam Powell <adamp@android.com> am baed0a8f: am 56fd88d8: am ab12f0f7: Merge "Implement resolving of icon attributes to resIds in AlertController"

* commit 'baed0a8f0b43191c8f001e064ff42cf27a305d87':
Implement resolving of icon attributes to resIds in AlertController
599dd7ce9adf8ca067cefb0b191a5ac20ec35a79 15-Sep-2012 Amith Yamasani <yamasani@google.com> DevicePolicyManager per user

Bug: 7136483

Store device policy information for each user and apply them when user switches.

Global proxy can only be controlled by owner.
Camera restriction applies to all users, if any one has an admin that disables it.
Storage encryption can only be controlled by owner, although other users can query the state.
Wipe data will only remove the user if non-zero, wipe the device, if zero.

Change-Id: I359be46c1bc3828fd13d4be3228f11495081c8f2
nternal/widget/LockPatternUtils.java
b250e94fdced2bd753eeb75f378abfab8b17cc2c 18-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #7112174 ActionMenuView should be aware of layout direction" into jb-mr1-dev
a87826c345dbd692a86a340691cf7471a2505809 14-Sep-2012 Amith Yamasani <yamasani@google.com> Merge "Fix face unlock for multiple users" into jb-mr1-dev
4b4b954ddf34af51576441f0e3eca6d19150aada 14-Sep-2012 Amith Yamasani <yamasani@google.com> Fix face unlock for multiple users

Bug: 7152537

Not all instances of LockPatternUtils are getting updated with the current user, so
query it directly from the Activity Manager.

Change-Id: I46395c3e00feecd0edfe4228f8d7966f425519f2
nternal/widget/LockPatternUtils.java
f229e4d3eb8f910c181f96416c6798f6f305a395 13-Sep-2012 Jim Miller <jaggies@google.com> Add support for settings for lock widgets

Change-Id: Iade094c6f32a7653bdbbd4921d345d68f2443ff4
nternal/widget/LockPatternUtils.java
b049e212ab7fe8967893c202efcb30fecfdb82fb 08-Sep-2012 Jeff Sharkey <jsharkey@android.com> Include user identifier in external storage paths.

When building external storage paths, always include user in path
to enable cross-user paths and aid debugging.

Each Zygote process continues to only have access to the appropriate
user-specific emulated storage through bind mounts. A second set of
mounts continue supporting legacy /sdcard-style paths. For example,
a process running as owner has these mount points:

/storage/emulated_legacy
/storage/emulated_legacy/Android/obb
/storage/emulated/0
/storage/emulated/obb

Since Environment is created before Zygote forks, we need to update
its internal paths after each process launches.

Bug: 7131382
Change-Id: I6f8c6971f2a8edfb415c14cb4ed05ff97e587a21
nternal/os/storage/ExternalStorageFormatter.java
0aa2d42e87e4a1ed5b83f356690e465d6a3587cc 08-Sep-2012 Adam Cohen <adamcohen@google.com> Adding notion of keyguard widgets

-> Persisting certain appwidget options
-> Adding ability to specify appwidget options on bind
so as to avoid AppWidgetProvider update call with no
options.

Change-Id: I5631039f19f1822b8e123b559b6353c880c0192e
nternal/appwidget/IAppWidgetService.aidl
576e1dff3d40610377a763db6c9e6bf999e00987 10-Sep-2012 blunden <blunden2@gmail.com> Implement resolving of icon attributes to resIds in AlertController

Platform code using AlertController directly currently has
no way to set the correct theme-specific dialog icon in a
generic way. This adds code to handle such usage.

Change-Id: I48beafa1183e4edf6d5378b3985a7f9be5fcda8b
nternal/app/AlertController.java
d7f5a51baf2c46436dc5bac3807fb0d46cbff304 10-Sep-2012 Victoria Lease <violets@google.com> Merge "IME support for trackball and generic motion events" into jb-mr1-dev
b38070caa5143ab9fd1883e0c7c879533a480bc7 24-Aug-2012 Victoria Lease <violets@google.com> IME support for trackball and generic motion events

Trackball and generic motion events now pass through the IME in case
it would like to handle them before passing them on to the view
hierarchy.

While I was at it, I also...
...fixed the documentation on InputMethodService.onKeyUp()
...added documentation to InputMethodService.onTrackballEvent()
...added trackball and generic motion events to the "input" command
...fixed input consistency verification involving ACTION_OUTSIDE

Bug: 7050005
Change-Id: I40ab68df4a9542af6df25de6ec2ec500e4c02902
nternal/view/IInputMethodSession.aidl
cbad976b2a36a0895ca94510d5208a86f66cf596 05-Sep-2012 Jeff Brown <jeffbrown@google.com> Add support for Wifi display.

Change-Id: I99693786cf9d07d07d3400046c55eb4933730b80
nternal/util/DumpUtils.java
nternal/util/IndentingPrintWriter.java
0762cec04fa5ce65a2adc6d70ea1396041b1a88d 06-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #7112174 ActionMenuView should be aware of layout direction

- do correct layout of action items depending of layout direction

Change-Id: Iff0181ffa2cb69884920edd5c37eb1a8a8196816
nternal/view/menu/ActionMenuView.java
035ce2ca92742894f7f906c93d7d217c647aa19a 05-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add support for "-rtl" in resources" into jb-mr1-dev
61f57379ca2c5b6290c8da7548fa17128f7ab24f 31-Aug-2012 Amith Yamasani <yamasani@google.com> Centralize the creation of the user system directory

Environment.getUserSystemDirectory(int userId)

Use it all relevant places that was hardcoding it.
Also, wipe out the user's system directory when user is removed, otherwise old state
might be transferred to a new user.

Change-Id: I788ce9c4cf9624229e65efa7047bc0c019ccef0a
nternal/widget/LockSettingsService.java
e217ee4d7a8223289a1af7363627c69956c46d41 29-Aug-2012 Jeff Sharkey <jsharkey@android.com> Access to all users' external storage.

System services holding this permission have external storage bound
one level higher, giving them access to all users' files.

Bug: 7003520
Change-Id: Ib2bcb8455740c713ebd01f71c9a2b89b4e642832
nternal/os/ZygoteConnection.java
80a4af2bbc6af42ae605e454bf89558e564f5244 28-Aug-2012 Dianne Hackborn <hackbod@google.com> Start implementing concept of "running" users.

The activity manager now keeps track of which users are running.

Initially, only user 0 is running.

When you switch to another user, that user is started so it is
running. It is only at this point that BOOT_COMPLETED is sent
for that user and it is allowed to execute anything.

You can stop any user except user 0, which brings it back to the
same state as when you first boot the device. This is also used
to be able to more cleaning delete a user, by first stopping it
before removing its data.

There is a new broadcast ACTION_USER_STOPPED sent when a user is
stopped; system services need to handle this like they currently
handle ACTION_PACKAGE_RESTARTED when individual packages are
restarted.

Change-Id: I89adbd7cbaf4a0bb72ea201385f93477f40a4119
nternal/content/PackageMonitor.java
ac137b3211818f9e72f9ffbaf541ad8a1ef27eb1 27-Aug-2012 Adam Powell <adamp@google.com> Merge "Add setOnDismissListener to AlertDialog.Builder" into jb-mr1-dev
7f02dc5c9c48a01bec459b71ac73a6ad37b9e12c 27-Aug-2012 Adam Powell <adamp@google.com> Add setOnDismissListener to AlertDialog.Builder

Add documentation to setOnCancelListener to clarify that the cancel
event plus the events for the various choice buttons are not the
exhaustive set of ways the dialog can be dismissed, and that a dismiss
listener should be used if the app needs to cover all cases of
dismissal.

Change-Id: I9e9d6f90f6f9ccaeb2c697474ab353e2d78f37b9
nternal/app/AlertController.java
69ddab4575ff684c533c995e07ca15fe18543fc0 25-Aug-2012 Jeff Sharkey <jsharkey@android.com> Always-on VPN.

Adds support for always-on VPN profiles, also called "lockdown." When
enabled, LockdownVpnTracker manages the netd firewall to prevent
unencrypted traffic from leaving the device. It creates narrow rules
to only allow traffic to the selected VPN server. When an egress
network becomes available, LockdownVpnTracker will try bringing up
the VPN connection, and will reconnect if disconnected.

ConnectivityService augments any NetworkInfo based on the lockdown
VPN status to help apps wait until the VPN is connected.

This feature requires that VPN profiles use an IP address for both
VPN server and DNS. It also blocks non-default APN access when
enabled. Waits for USER_PRESENT after boot to check KeyStore status.

Bug: 5756357
Change-Id: If615f206b1634000d78a8350a17e88bfcac8e0d0
nternal/net/VpnProfile.java
c7752a312adfe108c3b0e9143122152f2470be31 25-Aug-2012 Adam Powell <adamp@google.com> Show content description popups when long-pressing action bar tabs

If an action bar tab shows as an icon only and has a content
description, show a long-press popup with the content description.

Bug 6009390

Change-Id: I7f2f68eeef03ede99ff2113e21e1dc14a4295827
nternal/widget/ScrollingTabContainerView.java
7767eac3232ba2fb9828766813cdb481d6a97584 24-Aug-2012 Dianne Hackborn <hackbod@google.com> Keep track of whether an app is installed for each user.

This add a new per-user state for an app, indicating whether
it is installed for that user.

All system apps are always installed for all users (we still
use disable to "uninstall" them).

Now when you call into the package manager to install an app,
it will only install the app for that user unless you supply
a flag saying to install for all users. Only being installed
for the user is just the normal install state, but all other
users have marked in their state for that app that it is not
installed.

When you call the package manager APIs for information about
apps, uninstalled apps are treated as really being not visible
(somewhat more-so than disabled apps), unless you use the
GET_UNINSTALLED_PACKAGES flag.

If another user calls to install an app that is already installed,
just not for them, then the normal install process takes place
but in addition that user's installed state is toggled on.

The package manager will not send PACKAGE_ADDED, PACKAGE_REMOVED,
PACKAGE_REPLACED etc broadcasts to users who don't have a package
installed or not being involved in a change in the install state.
There are a few things that are not quite right with this -- for
example if you go through a full install (with a new apk) of an
app for one user who doesn't have it already installed, you will
still get the PACKAGED_REPLACED messages even though this is
technically the first install for your user. I'm not sure how
much of an issue this is.

When you call the existing API to uninstall an app, this toggles
the installed state of the app for that user to be off. Only if
that is the last user user that has the app uinstalled will it
actually be removed from the device. Again there is a new flag
you can pass in to force the app to be uninstalled for all users.

Also fixed issues with cleaning external storage of apps, which
was not dealing with multiple users. We now keep track of cleaning
each user for each package.

Change-Id: I00e66452b149defc08c5e0183fa673f532465ed5
nternal/content/PackageHelper.java
34f863125865664af058ab4dff44ebec570e2234 24-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Migrate legacy VPN arguments to system_server." into jb-mr1-dev
82f8521d386f3109147c477d04e5e90e5c715fa0 24-Aug-2012 Jeff Sharkey <jsharkey@android.com> Migrate legacy VPN arguments to system_server.

Generate the racoon and mtpd daemon arguments in system_server,
instead of accepting them from Settings.

Bug: 5756357
Change-Id: I42c1a644f6add477fe4222342640d7db15982cb8
nternal/net/VpnProfile.aidl
nternal/net/VpnProfile.java
96702ad6d736fd2b145968843d5d83615b104a16 24-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Framework interface for netd firewall." into jb-mr1-dev
c268f0b19efd0b6c6c89c21be0893787f3cc9cf7 24-Aug-2012 Jeff Sharkey <jsharkey@android.com> Framework interface for netd firewall.

Bug: 5756357
Change-Id: If8b9f738fcea2cf16bd01682220718b57346c7cc
nternal/util/Preconditions.java
d5fc86f0677575333556fe579838353fae10ce52 24-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Begin moving VPN to NetworkStateTracker pattern." into jb-mr1-dev
899223b97c9b0ae56a8211a46600914c0ecfd854 05-Aug-2012 Jeff Sharkey <jsharkey@android.com> Begin moving VPN to NetworkStateTracker pattern.

Created base tracker that handles common bookkeeping, and move VPN
to become a tracker. VPN status is now reflected in NetworkInfo, and
is mapped to LegacyVpnInfo.

Legacy VPN now "babysits" any init services it starts, watching for
when they stop unexpectedly.

Bug: 5756357
Change-Id: Iba7ec79da69469f6bd9a970cc39cf6b885b4c9c4
nternal/net/LegacyVpnInfo.java
nternal/net/VpnConfig.java
5f7979993979466c79ab4f38d83c6f2aca361662 16-Jun-2012 Fabrice Di Meglio <fdimeglio@google.com> Add support for "-rtl" in resources

- fix bug #7035019 Need to have "-rtl" support for Resource

Change-Id: Ic82145c2ac672729d8a6c695a5f343276a1a0a2c
nternal/app/LocalePicker.java
865a1756b6169c5255350c70e443be9555374a3e 23-Aug-2012 Victoria Lease <violets@google.com> Merge "Set text locale in language settings panel." into jb-mr1-dev
0203341a0bbfefb97a91d54613a556f524c94a5c 21-Aug-2012 Victoria Lease <violets@google.com> Set text locale in language settings panel.

This results in the CJK locales displaying locale-appropriate glyphs
regardless of the device's locale.

Change-Id: I1564b0b63597f068f4680d0a59fc82dea2dbbba3
nternal/app/LocalePicker.java
2bca868361b41ff6a8228824cbecadc4c5deb44e 22-Aug-2012 Jeff Sharkey <jsharkey@android.com> Iteration on multi-user external storage.

Remove single-user bind mounts, since they need to remain as raw
mounts to correctly propagate when remounted. This means we're back
to using sdcard_r GID to enforce READ_EXTERNAL_STORAGE.

Bug: 6925012
Change-Id: I41b5d7ddc985a5df2e288632a0a80d4724089e00
nternal/os/ZygoteConnection.java
80618d66b02d8cce325cdaa184435f43818a062b 20-Aug-2012 Kenny Root <kroot@google.com> am 7d5b22af: am f029c22f: Merge "Use Libcore.os.umask for setting umask"

* commit '7d5b22afae8525cdf80ba1bf8e18b87d597f830d':
Use Libcore.os.umask for setting umask
4c74f8c1713fa82904b10beec4da9ad8ebb97375 17-Aug-2012 Kenny Root <kroot@google.com> Use Libcore.os.umask for setting umask

Libcore.os now provides a umask method call, so just use that since it's
available.

Change-Id: I8826fa40bcab3d61a424ff98a8050d3e44f7ec34
nternal/os/ZygoteInit.java
98365d7663cbd82979a5700faf0050220b01084d 20-Aug-2012 Jeff Brown <jeffbrown@google.com> Refactor for multi-display support.

Split WindowManagerImpl into two parts, the WindowManager
interface implementation remains where it is but the global
communications with the window manager are now handled by
the WindowManagerGlobal class. This change greatly simplifies
the challenge of having separate WindowManager instances
for each Context.

Removed WindowManagerImpl.getDefault(). This represents the
bulk of this change. Most of the usages of this method were
either to perform global functions (now handled by WindowManagerGlobal)
or to obtain the default display (now handled by DisplayManager).

Explicitly associate each new window with a display and make
the Display object available to the View hierarchy.

Add stubs for some new display manager API features.

Start to split apart the concepts of display id and layer stack.
since they operate at different layers of abstraction.
While it's true that each logical display uniquely corresponds to a
surface flinger layer stack, it is not necessarily the case that
they must use the same ids. Added Display.getLayerStack()
and started using it in places where it was relatively easy to do.

Change-Id: I29ed909114dec86807c4d3a5059c3fa0358bea61
nternal/view/RotationPolicy.java
14e883b25e0998e3bc4e574a0df3db252d6e987f 18-Aug-2012 Amith Yamasani <yamasani@google.com> Fix merge error

Didn't apply the recent API change from another CL.

Change-Id: I65ac6108909eca7ac48beabb4a8b7bbedda84249
nternal/app/ResolverActivity.java
a3f133afe885f9e005dfc0584cb7b3b90f75f665 10-Aug-2012 Amith Yamasani <yamasani@google.com> Save preferred activity info with user id.

So each user can have their own set of intent resolution preferences.

ResolverActivity now launches the activity on the correct user, and
persists the preference for the correct user.

Bug: 6961905
Change-Id: I6d3a8a9af89bc649277d4fc8d0f367ee123f8392
nternal/app/ResolverActivity.java
c584b65b2093396c9a0c9303dab6ff6cb81ac315 16-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Multi-user external storage support." into jb-mr1-dev
f02b60aa4f367516f40cf3d60fffae0c6fe3e1b8 16-Aug-2012 Dianne Hackborn <hackbod@google.com> Rename UserId to UserHandle.

This is the start of turning this into a formal public API.

Change-Id: I5786d2c320f1de41a06ed5d0f65adb68967287a0
nternal/app/ResolverActivity.java
nternal/statusbar/StatusBarNotification.java
nternal/widget/LockPatternUtils.java
nternal/widget/LockSettingsService.java
b9301c3a686df05950710ec80e2cd691c3082871 14-Aug-2012 Daniel Sandler <dsandler@android.com> Multiuser support for notifications, take 1.

Notifications for background users are hidden from the
panel and status bar.

Still need to add a concept of "any user" notifications (for
things coming from the system) and notification visibility
controls (for access to icons + possibly masked text of
a background user's notifications).

Change-Id: Iba121f35a6c25c2e1c44db029d776a5a59a6a008
nternal/statusbar/StatusBarNotification.java
5b1ada2562c17921adf6a62ea62bcb445160983c 15-Aug-2012 Jeff Sharkey <jsharkey@android.com> Multi-user external storage support.

Emulated external storage always has multi-user support using paths
like "/data/media/<user_id>". Creates and destroys these paths along
with user data. Uses new ensure_dir() to create directories while
always ensuring permissions.

Add external storage mount mode to zygote, supporting both single-
and multi-user devices. For example, devices with physical SD cards
are treated as single-user. Begin migrating to mount mode instead
of relying on sdcard_r GID to enforce READ_EXTERNAL_STORAGE.

Bug: 6925012
Change-Id: I9b872ded992cd078e2c013567d59f9f0032ec02b
nternal/os/ZygoteConnection.java
08532ab9ba073c217e39272db00740d75f00248a 09-Aug-2012 Adam Powell <adamp@google.com> Merge "Fix indeterminate ProgressBars with weird sizes and padding; optimize ActionBar measurement" into jb-mr1-dev
6322af54cfb74be22386e4b7d17350cebf2da58f 09-Aug-2012 Adam Powell <adamp@google.com> Fix indeterminate ProgressBars with weird sizes and padding; optimize
ActionBar measurement

Fix a bug where preserved aspect ratios in ProgressBar indeterminate
drawables were causing drawable bounds to be calculated incorrectly
when the ProgressBar had padding specified.

Measure the ActionBar menu view's height with EXACT measure mode,
preventing an extra measure pass to match child heights for some
cases.

Change-Id: I8c4678662a015b57ba2686d5b5c5fc27d4ef8d36
nternal/widget/ActionBarView.java
9951b7c4f094d39db70626ed665f848971220c48 08-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am e5c46fae: am 6d0dd51e: Merge "Return early when checking divider before child zero."

* commit 'e5c46faefb9deda885cff308ec9b1926636ca8bc':
Return early when checking divider before child zero.
6d0dd51ebb170a89bea614a558b96f1dff3e7723 08-Aug-2012 Jean-Baptiste Queru <jbq@google.com> Merge "Return early when checking divider before child zero."
86d09388ee1b98513de40dfff5de6e7c3b24cc07 08-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am bce41358: am 9ab84c20: Merge "Fix wrong count return for getPhoneSignalStrengthCount"

* commit 'bce413587973eae29a783d7e273dc2f7db06f7c9':
Fix wrong count return for getPhoneSignalStrengthCount
fd75eef161e93a39c87699b6c938b8298ee8f78b 02-Aug-2012 Adam Powell <adamp@google.com> Animate the action bar's Up chevron as it shows and hides.

Change-Id: I2cf0283cc644a62ad83cb5641b8f56cc8229b86f
nternal/widget/ActionBarView.java
85b1041f891b4bbfe81e4f6423397fca50c14e5b 07-Aug-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Window position not reported if the window is not moved." into jb-mr1-dev
758143ecfedbe08cc6c4fed0ad8ad7a854194ca4 07-Aug-2012 Svetoslav Ganov <svetoslavganov@google.com> Window position not reported if the window is not moved.

1.If a window is shown but never moved the window window
is never notified for its current location. Therefore,
accessibility nodes do not contain correct bounds in
screen coordinates.

bug:6926295

Change-Id: I7df18b095d33ecafffced75aba9e4f4693b0c393
nternal/os/HandlerCaller.java
nternal/os/SomeArgs.java
nternal/view/BaseIWindow.java
570470a332a824a66c74a1d6bd8ce0253ccb5050 07-Aug-2012 Adam Powell <adamp@google.com> Make ActionBar fail more cleanly when invalid heights are set

Also add "none" flag value for null displayOptions in xml

Change-Id: Ided3433638f02ba2a18ce08db265d7a8ac4f216c
nternal/widget/ActionBarView.java
dde331cebd87982faded6818ad5f9927ff994c96 03-Aug-2012 Dianne Hackborn <hackbod@google.com> We can now (kind-of) change screen density on the fly.

Preloaded drawables now have a density associated with them, so we
can load the correct drawable if we are using a different density.

Window manager now formally keeps track of the density for each
screen, allowing it to be overridden like you can already do with
size, and relies on this density to drive itself internally and
the configurations it reports.

There are a new set of Bitmap constructors where you provide a
DisplayMetrics so they can be constructed with the correct density.
(This will be for when you can have different windows in the same
app running at different densities.)

ActivityThread now watches for density changes, and pushes them
to the DENSITY_DEVICE and Bitmap global density values for that
process.

A new am command allows you to change the density.
nternal/os/ZygoteInit.java
d5c81db1e78e98f3e0a1a5cf206865c3056294c4 02-Aug-2012 Adam Powell <adamp@google.com> Fix some ActionBar menu issues around config changes

Bug 6904212

Update allow-text and max item height properties for action bar menu
item views properly.

Fix an ActionMenuItemView measurement bug that could cause items to
measure too small.

Change-Id: Ibac8491f7670969b0ae4584fff5e44ebd1435abd
nternal/view/menu/ActionMenuItemView.java
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/ActionMenuView.java
nternal/widget/AbsActionBarView.java
800dd9b936f75aa09ffc5cb2ed83e351bb00b5d6 02-Aug-2012 Adam Powell <adamp@google.com> Merge "Fix drawable handling for ActionBarContainer" into jb-mr1-dev
a7cc06d82e45918c37429a59b14545c6a57db4e4 02-Aug-2012 Adam Powell <adamp@google.com> Fix drawable handling for ActionBarContainer

ActionBarContainer drawables for primary/stacked/split backgrounds
will now properly respect callbacks, layout direction, etc.

Bug 6905932

Change-Id: I20a089861c66a2a378f4b70c0b6cb4bb27476049
nternal/widget/ActionBarContainer.java
ba059bf54c58e312562ac527d97d2bc1d4dacb45 01-Aug-2012 Vairavan Srinivasan <vairav@codeaurora.org> AsyncChannel to support remote death notification and post a
disconnect message to the source handler.

Change-Id: I7368cb466d9e33f7da8095ef2de25fc70f13d47e
nternal/util/AsyncChannel.java
40e5df95ff9468cec0624ca7fb14e51c13e4b047 01-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "Make AtomicFile a public API. It's about time!" into jb-mr1-dev
39606a007a5b1309dd000234f2b8cf156c49fd0f 01-Aug-2012 Dianne Hackborn <hackbod@google.com> Make AtomicFile a public API. It's about time!

Change-Id: Ib34e294747405b7ab709cb0bbb2d9a0cc80ce86a
nternal/util/JournaledFile.java
c1eea136eaae62091b44d7b06a3d61ac694e4fd7 31-Jul-2012 Adam Powell <adamp@google.com> Fix bug 6906134

Change-Id: I47dfa1e503e502fe348a350dad960fbb112435e7
nternal/view/menu/ActionMenuItemView.java
c0047d4e111b8cfbffdbebb55f846c7ae935e53e 30-Jul-2012 Adam Powell <adamp@google.com> Enforce a maximum size for action button icons.

Change-Id: Id9b5c1573cd40012229921fa8497cbe5ce340b1e
nternal/view/menu/ActionMenuItemView.java
825992f503439bc87d9d7e698a487f17b5acc243 29-Jul-2012 Jake Wharton <jakewharton@gmail.com> Return early when checking divider before child zero.

Previously the `getChildAt` method would be called with an index of -1 which
would lead to an exception being thrown and caught. This is unnecessary since
we know there will never be a divider before the first child. It also avoids
additional object creation since this method can be invoked quite frequently.

Change-Id: Iab44520d5d52f96a829a009cdd1201696edbf9a4
nternal/view/menu/ActionMenuView.java
df693de4fe12f081555b449e2726e205fbd86572 27-Jul-2012 Jeff Brown <jeffbrown@google.com> Fix inconsistency in user activity types.

Looks like BatteryStats was not updated when we reduced the number
of user activity types from 7 to 3.

Change-Id: I7465f86c78baa561a6555c33f681553b870827f2
nternal/os/BatteryStatsImpl.java
85d28a00043e5985b11f517031d7b2317ac19e10 24-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Replace left/right with start/end for Gravity / LayoutParams / Padding"
cf56a0c1ea8dcffd1ba4c7f28f99e7f8d3eb8537 24-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix ActionBar HomeView up button layout params"
5f79baa0e3baaa852ef3188528312014eb046268 20-Jul-2012 Adam Powell <adamp@google.com> Merge "Fix condition bug in ResolverActivity"
bdda4e74d447812beb92504dc426c9385b3072d1 20-Jul-2012 Adam Powell <adamp@google.com> Fix condition bug in ResolverActivity

Bug 6854356

Change-Id: I3cd060fb78876e80bdfa311cf80d0ad8a696bfad
nternal/app/ResolverActivity.java
aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17 20-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Replace left/right with start/end for Gravity / LayoutParams / Padding

- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: Id9af5375fb9b0edeae5232c77e52ecd497bd2e67
nternal/view/menu/ActionMenuItemView.java
nternal/view/menu/IconMenuItemView.java
nternal/widget/ScrollingTabContainerView.java
nternal/widget/TextProgressBar.java
34c829e46c875a59eba95fd65a27e2fe5688083e 20-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix ActionBar HomeView up button layout params

Change-Id: I9cbf2ce695cce14c16efa270fafa062f46c985ce
nternal/widget/ActionBarView.java
971a3cfa51b89aa0f3ab47ee082f05586a1f16f0 20-Jul-2012 Jeff Sharkey <jsharkey@android.com> Migrate VpnProfile definition to framework.

Bug: 5756357
Change-Id: I23c4e391e3b48e9645f872ae0145fe672745adca
nternal/net/VpnProfile.java
d81cc4ab5a07f4a6c5e553cb67c3aa4fe1dc8b6e 19-Jul-2012 Adam Powell <adamp@google.com> Easy "Just once" launches from ResolverActivity

Allow a second tap of a selected item in ResolverActivity to launch
the target as "just once" for sloppier/quicker choices.

Change-Id: If05fc7c1ac622195f6253e6ca0868fd87954dd46
nternal/app/ResolverActivity.java
0fc5b2bea09a6d320884c5b12577caf426f547c1 19-Jul-2012 Adam Powell <adamp@google.com> Fun with Up navigation

For activities with a null taskAffinity, simply finish the current task.
(They probably shouldn't have specified a parentActivityName anyway.)

When launching into app info from ResolverActivity, launch the app info
page in the current task with FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET. Back
will return to the resolver, and Up will jump to Settings.

When launching into app info from RecentsPanelView or BaseStatusBar,
since this is a system affordance akin to notifications or widgets,
build the full task stack for the app info activity with
TaskStackBuilder and launch it as a new task.

Change-Id: I73b1941d0f52bd8b30382b5e17edd8ceb058c70d
nternal/app/ResolverActivity.java
8c1b02e7592dd02f30750c56bf88c65f8acbd3c9 17-Jul-2012 Adam Powell <adamp@google.com> Fix MediaRouteActionProvider button sizing

Bug 6768999

Use proper layout height for MediaRouteButtons generated from
MediaRouteActionProvider.

Update ActionMenuView's LayoutParams handling to correctly propagate
width/height values if the supplied LayoutParams is of a different
type.

Change-Id: I1e1b250d873869ca27f59ffb06ccf2299d57b40d
nternal/view/menu/ActionMenuView.java
fb900813511df0706469ad340bfb0810b5a12cd7 17-Jul-2012 Catherine Liu <wlcl05@motorola.com> Fix wrong count return for getPhoneSignalStrengthCount

Test report for the time spent in each signal strength bin, along
with the number of times that bin was entered showed the result
as Bin=3 Time=3211926000 Count=0. With a non-zero Time, the Count
value 0 was wrong.

The cause of the problem was that getPhoneSignalStrengthCount() used
mPhoneDataConnectionsTimer, instead of mPhoneSignalStrengthsTimer,
to get the count.

Change-Id: I55ac1125abfcfdc105605d76d1c706ac315b90cc
nternal/os/BatteryStatsImpl.java
b613e42f0c09106e1b134f1eed62ef4cb88a4506 16-Jul-2012 Nick Pelly <npelly@google.com> Merge "Add a tiny bit of javadoc to PackageMonitor."
357d9cb861e05c514acba8cc0a8fc5ef70e4a356 14-Jul-2012 Nick Pelly <npelly@google.com> Add a tiny bit of javadoc to PackageMonitor.

Change-Id: I1f9a56f44b4189d77df1327cc4f8c8ccf25db4b9
nternal/content/PackageMonitor.java
cf1ba0298c48ae56608ed556dc715eb69c54f9b9 26-Jun-2012 Fabrice Di Meglio <fdimeglio@google.com> Make ActionBar aware of layout direction

- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: Iea8a512311ee99548f39bbbe342f21eabaffbe09
nternal/widget/AbsActionBarView.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
fbf885b652272013f44da71e9f77923333bf62eb 10-Jul-2012 Craig Mautner <cmautner@google.com> Merge "Notify client side of window movement."
99d8fae5a0ae597ae4b4f6b338b19943787d478a 10-Jul-2012 Jim Miller <jaggies@google.com> Merge "Minor cleanup of left overs from GlowPadView integration."
2686b058cd2f01299cf5fd43f24ebbdc7339d70e 28-May-2012 Wink Saville <wink@google.com> When we disconnect shutdown the StateMachine. DO NOT MERGE

Need to stop the StateMachine threads and release
all resources when we disconnect.

bug: 6342470
Change-Id: Ibf7a2ebf4f7ecd667c5d95579e66ecd5086103ea
nternal/util/AsyncChannel.java
095c58b73ac112cc7e00771430765434893d8bc5 29-May-2012 Wink Saville <wink@google.com> Enhance StateMachine Quitting and logging support. DO NOT MERGE

Make StateMachine#quit non-conditional and remove the need to
process the SM_QUIT_CMD it is now private.

Rename halting to onHalting.

Add onQuitting

Change the message specific logging to be more generic and change
the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add
addLogRec(String) and addLogRec(String, State) as the generic logging
methods.

bug: 5678189
Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7

Conflicts:

services/java/com/android/server/NsdService.java
nternal/util/StateMachine.java
5702d4dfb5b81491f873a3617f8d8fc8dc5279e6 30-Jun-2012 Craig Mautner <cmautner@google.com> Notify client side of window movement.

Add a one way method to notify Views that the window has moved
on the screen. Fixes issues arising from the IME popping up and
translating the window that uses it. Accessibility was left unaware
of these movements and was drawing the box around the wrong widgets.
Similarly PopupWindow used getLocationOnScreen to determine how
much screen real estate was above and below the anchor point to
determine where to put an anchored window.

Fixes bug 6623031.

Change-Id: I4731a94d5424c1ec77bf1729fba8fc9ea34cae46
nternal/view/BaseIWindow.java
a592d224732a06c3776a41df37a52bac4c64a654 30-Jun-2012 Jim Miller <jaggies@google.com> Minor cleanup of left overs from GlowPadView integration.

- remove unused "chevron" assets
- reduce memory footprint in SystemUI by not loading unused handle drawable.

Change-Id: Iad1799d1a8a764c6abb4201520aa47ba84d33c38
nternal/widget/multiwaveview/GlowPadView.java
c32e190ea6da8c9acd8dc1a29a6e8794ecf7d857 30-Jun-2012 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of a9c38461 to master

Change-Id: Ie7044c4f9f15384c3edd328fa8e2932c731d9d5c
a9c3846194b69f1bfa73066be670c9d77f6dd0d7 30-Jun-2012 Dianne Hackborn <hackbod@google.com> am bfb752f8: Merge "Fix issue #6761130: Clearing app data in settings does not clear app\'s USB storage" into jb-dev

* commit 'bfb752f8f0e4d73dc251c19d2ef79649fbbe4fd1':
Fix issue #6761130: Clearing app data in settings does not clear app's USB storage
183ce028f10442dd6ada59de8fa531d690134663 30-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6761130: Clearing app data in settings does not clear app's USB storage

The package manager calls to clear data / clear cache were not also
having default container service clear the data on external storage. Now
they do.

Change-Id: Ib5e5eb6adf2cac5a4cc094cc1a02ac8cfb6a2edf
nternal/app/IMediaContainerService.aidl
f681e74064096f19e9022b8ca69aed62a8679bc6 23-Jun-2012 Adam Powell <adamp@google.com> am 56fbd14f: am 1b4ea7ef: Sanity check while updating volume in MediaRouteChooserDialog

* commit '56fbd14f3d02220eb3b35b3d62750d12ae402c6e':
Sanity check while updating volume in MediaRouteChooserDialog
56fbd14f3d02220eb3b35b3d62750d12ae402c6e 23-Jun-2012 Adam Powell <adamp@google.com> am 1b4ea7ef: Sanity check while updating volume in MediaRouteChooserDialog

* commit '1b4ea7eff50545f4673ca01b664e5edccc784688':
Sanity check while updating volume in MediaRouteChooserDialog
1b4ea7eff50545f4673ca01b664e5edccc784688 23-Jun-2012 Adam Powell <adamp@google.com> Sanity check while updating volume in MediaRouteChooserDialog

Bug 6720224

When a window dies it's possible to receive a lingering ACTION_CANCEL
event to the SeekBar for volume. Be sure that we don't try to mess
with something that's already gone by that point.

Change-Id: I4f6119718fc21204d9013d591bc984b785b698b4
nternal/app/MediaRouteChooserDialogFragment.java
17f006ea92b802ddc63f36f0ea876cabca278eb7 22-Jun-2012 Adam Powell <adamp@google.com> am 8a0f63bb: am 40a9da3b: Merge "Allow sloppy touch targeting on Action Bar home/up" into jb-dev

* commit '8a0f63bb588138a9e4f1ef7830e94282efe57c6b':
Allow sloppy touch targeting on Action Bar home/up
8a0f63bb588138a9e4f1ef7830e94282efe57c6b 22-Jun-2012 Adam Powell <adamp@google.com> am 40a9da3b: Merge "Allow sloppy touch targeting on Action Bar home/up" into jb-dev

* commit '40a9da3b9e5ae9d4d03b89f61f24ee6d96bd3bf4':
Allow sloppy touch targeting on Action Bar home/up
6231ab8bbb2862a7ddb767876fb7a49c1565b616 22-Jun-2012 Adam Powell <adamp@google.com> Allow sloppy touch targeting on Action Bar home/up

Bug 6521608

When there are no custom views or other actionable views next to the
action bar's home/up affordance, expand the touch target by a generous
slop value. This helps frustrating cases where a user accidentally
hits just to the right of Up and nothing happens.

Change-Id: I09ef604ce70ad380aab62a373b04c4b02007c644
nternal/widget/ActionBarView.java
3f765f783d264ec7e2034516d431b2bf49826e0d 22-Jun-2012 Adam Powell <adamp@google.com> am 9b5cdf4f: am 4dd21c8e: Volume changes in MediaRouteChooserDialog

* commit '9b5cdf4f14557f644b913cf654159389a251bfb4':
Volume changes in MediaRouteChooserDialog
9b5cdf4f14557f644b913cf654159389a251bfb4 22-Jun-2012 Adam Powell <adamp@google.com> am 4dd21c8e: Volume changes in MediaRouteChooserDialog

* commit '4dd21c8e77c0d369ee835f50cba1701e76aa18c4':
Volume changes in MediaRouteChooserDialog
4dd21c8e77c0d369ee835f50cba1701e76aa18c4 22-Jun-2012 Adam Powell <adamp@google.com> Volume changes in MediaRouteChooserDialog

Use the max volume reported by the selected route as the max value to set.

Change-Id: I9848dfb201387843e7ed398ac61e2d13e14e3f51
nternal/app/MediaRouteChooserDialogFragment.java
287a64af979451fde58148e723ef0ff89824718e 22-Jun-2012 Kenny Root <kroot@android.com> am ae017c55: am a9543a3d: Merge "Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks."

* commit 'ae017c55824ca345186b0c9fc204401153bd8a23':
Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks.
ef46aa157be555349ae3762db7953a3ae48087f8 22-Jun-2012 Chris Wren <cwren@android.com> am 70a7be07: am ed5cc0e1: revert I057b7ac0 now that the layouts are the expected height.

* commit '70a7be0799bd1af77c0bcf2472d9c7e46f53c3c1':
revert I057b7ac0 now that the layouts are the expected height.
ae017c55824ca345186b0c9fc204401153bd8a23 21-Jun-2012 Kenny Root <kroot@android.com> am a9543a3d: Merge "Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks."

* commit 'a9543a3dad0da58f30580bdf99b76bc2ab97a2df':
Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks.
70a7be0799bd1af77c0bcf2472d9c7e46f53c3c1 21-Jun-2012 Chris Wren <cwren@android.com> am ed5cc0e1: revert I057b7ac0 now that the layouts are the expected height.

* commit 'ed5cc0e1f7648962f5c93e1277d282be75bcd537':
revert I057b7ac0 now that the layouts are the expected height.
a9543a3dad0da58f30580bdf99b76bc2ab97a2df 21-Jun-2012 Kenny Root <kroot@android.com> Merge "Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks."
ed5cc0e1f7648962f5c93e1277d282be75bcd537 21-Jun-2012 Chris Wren <cwren@android.com> revert I057b7ac0 now that the layouts are the expected height.

Bug: 6546766
Change-Id: I736290b897b864228ecc3e46d86ef566efda1efd
nternal/widget/SizeAdaptiveLayout.java
a08e6881c58c56aba2ac1f6e02db1529e10f9e6e 21-Jun-2012 Adam Powell <adamp@google.com> am ed044cda: am 09829b71: Merge "Expand volume APIs for MediaRouter" into jb-dev

* commit 'ed044cda8f6a7600923eecdec682c449f86e0429':
Expand volume APIs for MediaRouter
ed044cda8f6a7600923eecdec682c449f86e0429 21-Jun-2012 Adam Powell <adamp@google.com> am 09829b71: Merge "Expand volume APIs for MediaRouter" into jb-dev

* commit '09829b71de3a84cb9d1bc0d8aad78dd16daadddf':
Expand volume APIs for MediaRouter
09829b71de3a84cb9d1bc0d8aad78dd16daadddf 21-Jun-2012 Adam Powell <adamp@google.com> Merge "Expand volume APIs for MediaRouter" into jb-dev
8e37a85bf3dc39519942698dc90a3951306b934b 21-Jun-2012 Adam Powell <adamp@google.com> Expand volume APIs for MediaRouter

Allow applications to set a requested volume level on RouteInfo
objects. If requested for a user route, the app-supplied callback will
be invoked to perform actual volume adjustment.

Change-Id: I856990a0da7292492aa15e6562dbc3d055b848a0
nternal/app/MediaRouteChooserDialogFragment.java
93e417b560a3c7ddb832b78b17982937b4a88a12 21-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am 0a79d2fb: am dce5af63: Merge "Fix GlowPadView accessibility behavior." into jb-dev

* commit '0a79d2fbcdf6ee5b0375de223e5230e5e538362f':
Fix GlowPadView accessibility behavior.
0a79d2fbcdf6ee5b0375de223e5230e5e538362f 21-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am dce5af63: Merge "Fix GlowPadView accessibility behavior." into jb-dev

* commit 'dce5af632ce8899905fbf187b9505f6753d5a562':
Fix GlowPadView accessibility behavior.
78bfb9829561876137c62ca1fff13760bfc77472 20-Jun-2012 alanv <alanv@google.com> Fix GlowPadView accessibility behavior.

Bug: 6702412
Change-Id: If5ab75e77b0090a405004c66da0083e81d59deb4
nternal/widget/multiwaveview/GlowPadView.java
ea03338dfa9b6dfebe274e6543e5b3f446bf4f8d 20-Jun-2012 Jim Miller <jaggies@google.com> am 27d1916e: am fce2ec4d: Merge "Fix 6656710: center dot pattern in GlowPadView" into jb-dev

* commit '27d1916e85ad994c3a440a80066737a8492eb791':
Fix 6656710: center dot pattern in GlowPadView
27d1916e85ad994c3a440a80066737a8492eb791 20-Jun-2012 Jim Miller <jaggies@google.com> am fce2ec4d: Merge "Fix 6656710: center dot pattern in GlowPadView" into jb-dev

* commit 'fce2ec4da468c2d5ba26de8d051ff7ee64bb01c3':
Fix 6656710: center dot pattern in GlowPadView
94754ef36d1ceacb9a335202585e60c82b1f4b0d 20-Jun-2012 Jim Miller <jaggies@google.com> Fix 6656710: center dot pattern in GlowPadView

This fixes a bug where the dots weren't aligned with the center of the view.
The matrix should not contain the offset of the image itself since we really
want to scale about the abstract points. The code now subtracts the image
centering positions (cx,cy) from the point to be scaled.

Change-Id: I1d46a5d51b1fd1d39944c64baf86c306c2d5e923
nternal/widget/multiwaveview/PointCloud.java
73f534a2dd324d631696ced762f5c0ab1f254f74 19-Jun-2012 Todd Poynor <toddpoynor@google.com> Battery stats: parse wakeup sources stats for android-3.4

Change-Id: I30b2362ca7260d187e8ed4e047b30c446d32ca98
nternal/os/BatteryStatsImpl.java
01b8e660efeb85756020435b4098cd593b458b50 20-Jun-2012 Jim Miller <jaggies@google.com> am 904f26bd: am f7e820bb: Merge "Fix 6693743: update animation ring for keyguard and search panel" into jb-dev

* commit '904f26bd2684f64ac8b3c41394f09c4143a600b5':
Fix 6693743: update animation ring for keyguard and search panel
904f26bd2684f64ac8b3c41394f09c4143a600b5 20-Jun-2012 Jim Miller <jaggies@google.com> am f7e820bb: Merge "Fix 6693743: update animation ring for keyguard and search panel" into jb-dev

* commit 'f7e820bbc9d23e0657bbd6252fe285ba08a2551a':
Fix 6693743: update animation ring for keyguard and search panel
f7e820bbc9d23e0657bbd6252fe285ba08a2551a 20-Jun-2012 Jim Miller <jaggies@google.com> Merge "Fix 6693743: update animation ring for keyguard and search panel" into jb-dev
a7da8afe6dc866786acab8b06524d0079caa3fd7 20-Jun-2012 Jim Miller <jaggies@google.com> Fix 6693743: update animation ring for keyguard and search panel

This is a partial revert of change Ibce96f45eb6a94582c694108b99e243fd57b1955.

This change:
- shows the expanding ring animation on keyguard and navbar search
- disables the first ping wave animation on both.
- restores the outer ring

Change-Id: I429d23a49ca2868dc00872b8b8fde000d6a53a6d
nternal/widget/multiwaveview/GlowPadView.java
9ec426aba68d2f08130a6756006e075468b54e53 20-Jun-2012 Jim Miller <jaggies@google.com> am 2b7df368: am cab997b2: Merge "Fix 6667238: allow market apps to support ACTION_ASSIST" into jb-dev

* commit '2b7df3686f24a5a653a6609556dd98210324f7bd':
Fix 6667238: allow market apps to support ACTION_ASSIST
2b7df3686f24a5a653a6609556dd98210324f7bd 20-Jun-2012 Jim Miller <jaggies@google.com> am cab997b2: Merge "Fix 6667238: allow market apps to support ACTION_ASSIST" into jb-dev

* commit 'cab997b2020ddb67158397dccadd28d91a7710d0':
Fix 6667238: allow market apps to support ACTION_ASSIST
45308b1b3b1582d048845df2ee5301241e52a5cf 19-Jun-2012 Jim Miller <jaggies@google.com> Fix 6667238: allow market apps to support ACTION_ASSIST

This change allows market apps and 3rd parties to supply an activity
that responds to ACTION_ASSIST (e.g. market apps).

It also adds a test app to respond to the ASSIST intent and force
the intent disambiguation dialog to appear.

Change-Id: I5a78863c6a9546d18c66275187d178f6a1c9ee17
nternal/widget/multiwaveview/GlowPadView.java
3eda1903c709904da9a1668b0ba9c46f13cd9f80 19-Jun-2012 Jim Miller <jaggies@google.com> am 60fd2b2d: am ddbc85cb: Merge "Fix 6683092: tune GlowPadView wave animation" into jb-dev

* commit '60fd2b2de286f3543cf9db9550db9083211ca5ea':
Fix 6683092: tune GlowPadView wave animation
60fd2b2de286f3543cf9db9550db9083211ca5ea 19-Jun-2012 Jim Miller <jaggies@google.com> am ddbc85cb: Merge "Fix 6683092: tune GlowPadView wave animation" into jb-dev

* commit 'ddbc85cbfdc8ac6ed02b104f0e9c46018a0e1c53':
Fix 6683092: tune GlowPadView wave animation
5892e2ec253465a46b346fc813a21b412ae85e2e 19-Jun-2012 Jim Miller <jaggies@google.com> Fix 6683092: tune GlowPadView wave animation

This adds some aesthetic changes to the wave animation for GlowPadView:
- wave shape is no longer symmetric
- disable expand in keyguard
- enable expand in SearchPanelView (when mAlwaysTrackFinger == true)
- if a current wave animation isn't finished yet, don't start a new one
- various timing changes

Change-Id: Ibce96f45eb6a94582c694108b99e243fd57b1955
nternal/widget/multiwaveview/GlowPadView.java
nternal/widget/multiwaveview/PointCloud.java
048311ca379d4265a0fcbfdd67d968e88ca0aa67 18-Jun-2012 Jim Miller <jaggies@google.com> am a10b1a73: am 12da2c5e: Merge "Fix 6665117: ACTION_ASSIST visual improvements" into jb-dev

* commit 'a10b1a738dfa8fcf094fec555e7d85dba179f5fc':
Fix 6665117: ACTION_ASSIST visual improvements
a10b1a738dfa8fcf094fec555e7d85dba179f5fc 18-Jun-2012 Jim Miller <jaggies@google.com> am 12da2c5e: Merge "Fix 6665117: ACTION_ASSIST visual improvements" into jb-dev

* commit '12da2c5eeeadd6c23da5d3003d0da3b6b73d5052':
Fix 6665117: ACTION_ASSIST visual improvements
12da2c5eeeadd6c23da5d3003d0da3b6b73d5052 18-Jun-2012 Jim Miller <jaggies@google.com> Merge "Fix 6665117: ACTION_ASSIST visual improvements" into jb-dev
0be17da62000996318ecc50e2563bfd9be3fd052 18-Jun-2012 Adam Powell <adamp@google.com> am c92aa2e7: am 1b4dc0fe: Merge "Volume control in MediaRouter dialogs" into jb-dev

* commit 'c92aa2e7c9112adafc5283921efe25574a95b7a4':
Volume control in MediaRouter dialogs
9471faf5dcc3ebf88bbc1a01809eb7312e65f829 18-Jun-2012 Adam Powell <adamp@google.com> am 8f695c52: am 706a8699: Merge "Make MediaRouter UI more robust around route count changes" into jb-dev

* commit '8f695c525f5baa623a8b951bd3a1fd2b5efd1ceb':
Make MediaRouter UI more robust around route count changes
7e8aac14c3a930dea0ca7a1d1e0e8a384fbf8916 18-Jun-2012 Adam Powell <adamp@google.com> am bb20575f: am 130b4572: ActionProvider API update

* commit 'bb20575f85ada8ccdacefc53f0da7e00fdf12a16':
ActionProvider API update
00b7ae0936c555079e622237e8499613a073381c 18-Jun-2012 Adam Powell <adamp@google.com> am 772ddc0c: am fd4df469: Merge "Remove workaround for bug that was fixed a while ago." into jb-dev

* commit '772ddc0cf28625964435edc5e86048e353c425fa':
Remove workaround for bug that was fixed a while ago.
c92aa2e7c9112adafc5283921efe25574a95b7a4 18-Jun-2012 Adam Powell <adamp@google.com> am 1b4dc0fe: Merge "Volume control in MediaRouter dialogs" into jb-dev

* commit '1b4dc0fe00805f82fb4bb89a97b6b0501e117505':
Volume control in MediaRouter dialogs
8f695c525f5baa623a8b951bd3a1fd2b5efd1ceb 18-Jun-2012 Adam Powell <adamp@google.com> am 706a8699: Merge "Make MediaRouter UI more robust around route count changes" into jb-dev

* commit '706a8699008ce416a7fbd9a4215726fdb00ee803':
Make MediaRouter UI more robust around route count changes
bb20575f85ada8ccdacefc53f0da7e00fdf12a16 18-Jun-2012 Adam Powell <adamp@google.com> am 130b4572: ActionProvider API update

* commit '130b4572d1f3df702e5b296a655d15a41f6d4c66':
ActionProvider API update
772ddc0cf28625964435edc5e86048e353c425fa 18-Jun-2012 Adam Powell <adamp@google.com> am fd4df469: Merge "Remove workaround for bug that was fixed a while ago." into jb-dev

* commit 'fd4df46917c79067416985ac53a3da6b27e8c333':
Remove workaround for bug that was fixed a while ago.
4599696591f745b3a546197d2ba7e5cfc5562484 16-Jun-2012 Adam Powell <adamp@google.com> Volume control in MediaRouter dialogs

MediaRouter dialogs now intercept the volume keys for altering the
current volume. The status icon indicates if the slider/buttons are
currently controlling the local device volume or a remote device's
volume.

Group volume for user routes is handled by using the
RemoteControlClient supplied by the first route in the group.

Change-Id: I40a0d054847ed5acce7a4c3b669487841b4dca15
nternal/app/MediaRouteChooserDialogFragment.java
39d5c6172503620ac3761148adac5fd7fa20d02d 16-Jun-2012 Adam Powell <adamp@google.com> Make MediaRouter UI more robust around route count changes

Improve the API around ActionProvider visibility overriding. Allow the
application to notify whatever is hosting the ActionProvider that
visibility has changed in a way that is friendly to alternate support
library-style reimplementations of MenuItem.

Allow MediaRouter.Callback implementations to add or remove themselves
or other Callbacks during dispatch of callback events.

Make MediaRouteActionProvider track the visibility of corresponding
menu items more accurately.

Change-Id: Ic7ddb6a87c3637904750d2661e4a9fa323b09ea0
nternal/view/menu/MenuItemImpl.java
130b4572d1f3df702e5b296a655d15a41f6d4c66 16-Jun-2012 Adam Powell <adamp@google.com> ActionProvider API update

* Add ActionProvider#overridesItemVisibility and isVisible.
These methods allow an ActionProvider to override the
visibility of a MenuItem that it is bound to. If a MenuItem
has been explicitly hidden by the application, it will not
be visible.

* Change MediaRouteActionProvider to not require a MediaRouter
callback, to avoid extra lifecycle management headaches.

Change-Id: I606fa98b3a6a3e60a953dd024274f9bf9c67acdd
nternal/view/menu/MenuItemImpl.java
20039ad17b94873ee40fdd61c3d1d1aa590010df 16-Jun-2012 Jim Miller <jaggies@google.com> Fix 6665117: ACTION_ASSIST visual improvements

- add generic icon for search providers that don't supply one
- change alpha weighting factor for glow
- don't show ring background

Change-Id: I86c86dc2d623c25ec7b91e206fac8ad9cd60faac
nternal/widget/multiwaveview/PointCloud.java
10c45b6965baf9e0fbadd8b0b5742290689c6319 16-Jun-2012 Nick Pelly <npelly@google.com> Merge "Include WIFI scan's in Battery Stats."
6ccaa540a18a69e5343e3e4d507f341880fcde5a 16-Jun-2012 Nick Pelly <npelly@google.com> Include WIFI scan's in Battery Stats.

Call noteWifiScanStartedFromSource() when a scan is started.
Call noteWifiScanStoppedFromSource() when a scan is finished.

The current implementation tracks to UID that requested the scan, and
correctly tracks the duration of the scan. It ignores scan requests
that occur when a scan is already in progress. It does not distinguish
between active and passive scans.

Repurpose all the noteScanWifiLockAcquired/Released() plumbing
for WIFI scan tracking. The WIFI scan locks were never reported
to the user. Use noteFullWifiLock() when WIFI scan locks are used -
this makes sense because the power draw for a WIFI scan lock
should be about the same as for a full WIFI lock.

Bug: 6642581
Change-Id: Ida6e87992853698545b89f875c973a239218317d
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
307c5cfcdd275e56c6a11056ac4f6d6eb2758ee0 16-Jun-2012 Adam Powell <adamp@google.com> Remove workaround for bug that was fixed a while ago.

Change-Id: I368dd8fea6b33af6908b6fe3b7691104166a707a
nternal/view/ImageButtonNoParentPress.java
d1e57d78863b032cc647f6abeabb443dc512841d 15-Jun-2012 Adam Powell <adamp@google.com> am 15635728: am 27db797e: Merge "Update MediaRouteChooserDialog grouping UI" into jb-dev

* commit '15635728a4ff00da6cc3d6468c02d39e5631f124':
Update MediaRouteChooserDialog grouping UI
15635728a4ff00da6cc3d6468c02d39e5631f124 15-Jun-2012 Adam Powell <adamp@google.com> am 27db797e: Merge "Update MediaRouteChooserDialog grouping UI" into jb-dev

* commit '27db797e37ea16ea5db6eb3f6a32e0f116c1b824':
Update MediaRouteChooserDialog grouping UI
b5e2af5919351486a385effe77409d2a91ae9c19 15-Jun-2012 Adam Powell <adamp@google.com> Update MediaRouteChooserDialog grouping UI

Move UserRouteInfo tag support to RouteInfo

Change-Id: Ia753924f8613462d5f74736be93a8d748689eef1
nternal/app/MediaRouteChooserDialogFragment.java
2f115bc007b24144f3f673395bc83ac0bc3814c7 15-Jun-2012 Adam Powell <adamp@google.com> am 13b5c194: am 90b9f84c: Merge "API updates for MediaRouter" into jb-dev

* commit '13b5c194e1ca2ed5ca9187e15ca0518b8bb052d2':
API updates for MediaRouter
13b5c194e1ca2ed5ca9187e15ca0518b8bb052d2 15-Jun-2012 Adam Powell <adamp@google.com> am 90b9f84c: Merge "API updates for MediaRouter" into jb-dev

* commit '90b9f84c43145c51180c7253cd3a3f59862c2611':
API updates for MediaRouter
90b9f84c43145c51180c7253cd3a3f59862c2611 15-Jun-2012 Adam Powell <adamp@google.com> Merge "API updates for MediaRouter" into jb-dev
0d03c042f90bf62d5bad7c64e77028a5f9f8fae0 15-Jun-2012 Adam Powell <adamp@google.com> API updates for MediaRouter

* Accept a Context when fetching the names of routes and
categories. This lets string resources resolve at time of access
with the correct configuration. The older versions remain available
that will use the static resources from the application. (There are
enough cases where applications will populate this from external
data that requiring it each time even when it was not initialized
from a resource doesn't seem reasonable.)

* Remove the ability for apps to programmatically select non-user
routes.

* Make MediaRouter.Callback an abstract class instead of an interface.
This will make further extensions easier to keep compatible in the
future.

Change-Id: If981c511dfbdfaf41ef0d1cfe4a377fc14bb5600
nternal/app/MediaRouteChooserDialogFragment.java
8c3ce3b6caa8667b756d247ef89c0df279f3a5e6 14-Jun-2012 Michael Jurka <mikejurka@google.com> am cf6e1455: am 71fc205d: Merge "Change snap behavior for lock screen" into jb-dev

* commit 'cf6e14558f693ae215d5030ce562a649b4cb973f':
Change snap behavior for lock screen
cf6e14558f693ae215d5030ce562a649b4cb973f 14-Jun-2012 Michael Jurka <mikejurka@google.com> am 71fc205d: Merge "Change snap behavior for lock screen" into jb-dev

* commit '71fc205d11490872927e279c4a0cfa3176b15f20':
Change snap behavior for lock screen
71fc205d11490872927e279c4a0cfa3176b15f20 14-Jun-2012 Michael Jurka <mikejurka@google.com> Merge "Change snap behavior for lock screen" into jb-dev
a587b449c463ac996b8cb05b2888abe92a8d16b4 14-Jun-2012 Adam Powell <adamp@google.com> am 0f03d771: am f9b7f9f5: Merge "Support route grouping in the MediaRouter dialog UI." into jb-dev

* commit '0f03d771b29ff0fc6919a514c56128de9a5ecd5e':
Support route grouping in the MediaRouter dialog UI.
0f03d771b29ff0fc6919a514c56128de9a5ecd5e 14-Jun-2012 Adam Powell <adamp@google.com> am f9b7f9f5: Merge "Support route grouping in the MediaRouter dialog UI." into jb-dev

* commit 'f9b7f9f5080100043df3c8868bca4df84becf5a1':
Support route grouping in the MediaRouter dialog UI.
53f109bf4923e111e796014e6701a14e5bfa5d1a 14-Jun-2012 Michael Jurka <mikejurka@google.com> Change snap behavior for lock screen

Use angle and distance from center, rather than
distance from target.

Change-Id: Ic970bc4b05d341dbb6aab334e3f630794f2a211c
nternal/widget/multiwaveview/GlowPadView.java
nternal/widget/multiwaveview/MultiWaveView.java
cf815b56bf475bc9593a057edb234578e4abfcf1 14-Jun-2012 Adam Powell <adamp@google.com> am 6c143590: am 4b4a947b: Merge "MediaRouter dialog" into jb-dev

* commit '6c14359074ff5a93695ed37083c9178a4ca2d1f1':
MediaRouter dialog
58c35bbe347e9814bb3356866828f4cf5f56936f 14-Jun-2012 Winson Chung <winsonc@google.com> Merge "Updating AppWidgetHost to receive a callback when any appWidget has changed. (Bug 6602951)"
d6d0bddee363e0c7fe61f63bd9d9864a71d887d6 14-Jun-2012 Adam Powell <adamp@google.com> Support route grouping in the MediaRouter dialog UI.

Change-Id: Idcae12cedfb7ca13950e7fa45441fba2029a9f68
nternal/app/MediaRouteChooserDialogFragment.java
nternal/view/CheckableLinearLayout.java
nternal/view/ImageButtonNoParentPress.java
7fbd28438c2322973c77f31f0721a24fe1c35039 13-Jun-2012 Winson Chung <winsonc@google.com> Updating AppWidgetHost to receive a callback when any appWidget has changed. (Bug 6602951)

Change-Id: I76d688b10ee7775b4ebe81259713f2aaf0009d05
nternal/appwidget/IAppWidgetHost.aidl
6c14359074ff5a93695ed37083c9178a4ca2d1f1 13-Jun-2012 Adam Powell <adamp@google.com> am 4b4a947b: Merge "MediaRouter dialog" into jb-dev

* commit '4b4a947b5e4913d7f8b7df15d3a7cdf8f343471f':
MediaRouter dialog
70e11e50eecfc8f1dfb76316d099e4331ebd28f7 13-Jun-2012 Adam Powell <adamp@google.com> MediaRouter dialog

Add the dialog behavior for MediaRouteActionProvider/MediaRouteButton.

Still TODO:

* Switch audio icon based on source; speaker/bt/user

* Rig up volume slider

* Rig up item icons

* Rig up group button for groupable categories

* Make grouping work

Change-Id: I3f992516b184d5ae940ddb7bbb7f94ff58914589
nternal/app/MediaRouteChooserDialogFragment.java
79cb9b52e86beee247b76c1ecf51957b4596a956 13-Jun-2012 Jim Miller <jaggies@google.com> am 5f190731: am 955a0169: Fix 6613962: Update keyguard to use new GlowPadView UX design.

* commit '5f1907316e0085073a314dcfa41bfb35a7f31f9f':
Fix 6613962: Update keyguard to use new GlowPadView UX design.
5f1907316e0085073a314dcfa41bfb35a7f31f9f 13-Jun-2012 Jim Miller <jaggies@google.com> am 955a0169: Fix 6613962: Update keyguard to use new GlowPadView UX design.

* commit '955a016922ea49f154d190b054a202559b41a4d3':
Fix 6613962: Update keyguard to use new GlowPadView UX design.
955a016922ea49f154d190b054a202559b41a4d3 12-Jun-2012 Jim Miller <jaggies@google.com> Fix 6613962: Update keyguard to use new GlowPadView UX design.

Change-Id: I4f1ef3107e5550f7df9dcb412943a84b66432b7d
nternal/widget/multiwaveview/GlowPadView.java
nternal/widget/multiwaveview/MultiWaveView.java
nternal/widget/multiwaveview/PointCloud.java
7c727e50f1a73d6fab100af9cac3e16985aa18a2 12-Jun-2012 Chia-chi Yeh <chiachi@android.com> am a2becffc: am d667aebf: Merge "VPN: move VpnDialogs away from system uid." into jb-dev

* commit 'a2becffcf2a19889b90256a8479e276081ce6108':
VPN: move VpnDialogs away from system uid.
a2becffcf2a19889b90256a8479e276081ce6108 12-Jun-2012 Chia-chi Yeh <chiachi@android.com> am d667aebf: Merge "VPN: move VpnDialogs away from system uid." into jb-dev

* commit 'd667aebfb34085960e2b41a2f52d10ae749ec44c':
VPN: move VpnDialogs away from system uid.
d1645f8d0f30709340eb6b6d6da5022bbab77024 12-Jun-2012 Amith Yamasani <yamasani@google.com> Disable lockscreen using a system property.

For factory testing.

Change-Id: Ie5b8be432ab8ad40d8752f978899987c95a5aef9
nternal/widget/LockSettingsService.java
d667aebfb34085960e2b41a2f52d10ae749ec44c 11-Jun-2012 Chia-chi Yeh <chiachi@android.com> Merge "VPN: move VpnDialogs away from system uid." into jb-dev
8b4b63403a06e07dfc595aca45c778023bfec79b 31-May-2011 Mattias Petersson <mattias.petersson@sonyericsson.com> Avoid memory leak in the Shutdown confirmation dialog.

How to reproduce:
1) Lock the screen.
2) Open the Phone options menu by long pressing the power
button.
3) Tap "Power off" to display the confirmation dialog.
4) Repeat step 2 and 3 a few times (without closing the
confirmation dialog.

Each time the confirmation dialog is displayed, a new
instance is created. A stack of confirmation dialogs are
created on the screen.

This is fixed by making sure the previous dialog is
dismissed before launching a new dialog.

Change-Id: I6b6c61ccc56364b66eed3528019f761e75bbe268
nternal/app/ShutdownThread.java
dadc857d9de364fded10d4f69eb82bc9cd35d4b7 08-Jun-2012 Chia-chi Yeh <chiachi@android.com> VPN: move VpnDialogs away from system uid.

Bug: 6632536
Change-Id: Iece647c077caf5298ccfe7d7aba5f0911a4ed0d1
nternal/net/VpnConfig.java
f6e03e55401833cb764730257ce08639bd205529 07-Jun-2012 Adam Powell <adamp@google.com> am 72329952: am 4c38fe36: Merge "Protect against bogus input for ListViews" into jb-dev

* commit '72329952168fd86b911109602882b92494e9ccc5':
Protect against bogus input for ListViews
72329952168fd86b911109602882b92494e9ccc5 07-Jun-2012 Adam Powell <adamp@google.com> am 4c38fe36: Merge "Protect against bogus input for ListViews" into jb-dev

* commit '4c38fe369fee76b8d4fca5a7b0b8d81a96f0219f':
Protect against bogus input for ListViews
4c38fe369fee76b8d4fca5a7b0b8d81a96f0219f 07-Jun-2012 Adam Powell <adamp@google.com> Merge "Protect against bogus input for ListViews" into jb-dev
28048d011cb0887cd641977ca37e5f2fde04d191 07-Jun-2012 Adam Powell <adamp@google.com> Protect against bogus input for ListViews

Guard against cases where ListView might receive touch events while
detached.

Update ListMenuPresenter to dispatch a data set change when the
backing menu is changed.

Bug 6543282

Change-Id: If2fb9b6aa3cf4a1b7070a7cd0de0edf0fc2f4cca
nternal/view/menu/ListMenuPresenter.java
9a8eed3a4daa2745fd0fc386d42d2f208ad362e6 06-Jun-2012 Dianne Hackborn <hackbod@google.com> am 18aa041a: am 6cd19e02: Merge "Fix some divide by zero errors that could crash the system." into jb-dev

* commit '18aa041a62d36b9f2d4ead8ca0945ec87af582b4':
Fix some divide by zero errors that could crash the system.
18aa041a62d36b9f2d4ead8ca0945ec87af582b4 06-Jun-2012 Dianne Hackborn <hackbod@google.com> am 6cd19e02: Merge "Fix some divide by zero errors that could crash the system." into jb-dev

* commit '6cd19e0266b3f4277f13dab7e9a86ebdd9905ee9':
Fix some divide by zero errors that could crash the system.
6cd19e0266b3f4277f13dab7e9a86ebdd9905ee9 06-Jun-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix some divide by zero errors that could crash the system." into jb-dev
cdadee630e09fc2aa966244a71bf22236f9a30a4 06-Jun-2012 Dianne Hackborn <hackbod@google.com> Fix some divide by zero errors that could crash the system.

Change-Id: I66273df84e45de59b5b161f4d13de67a9e0f46d5
nternal/os/ProcessStats.java
b85afc25d5d4ef3aab378691d8df306c99f7ab96 06-Jun-2012 Adam Powell <adamp@google.com> resolved conflicts for merge of 1178569b to master

Change-Id: If2bb6ccaee99bcf199cd93f24eba217fe6ff485e
1178569b261a094fe6fb830e91f002e4fcd9fc1a 06-Jun-2012 Adam Powell <adamp@google.com> am f6452d0c: Merge "More fun with MediaRouter" into jb-dev

* commit 'f6452d0cac64b72005af330411b5a895f0038312':
More fun with MediaRouter
f6452d0cac64b72005af330411b5a895f0038312 06-Jun-2012 Adam Powell <adamp@google.com> Merge "More fun with MediaRouter" into jb-dev
1b60e7287723cc03efc4893e3bbf3b9e8ac1cba9 06-Jun-2012 Jeff Brown <jeffbrown@google.com> am eef4bc08: am 615fd3df: Merge "Implement new rotation policy." into jb-dev

* commit 'eef4bc08137f2324e2974c282992ff546df99e54':
Implement new rotation policy.
690ffb4e1f735148a15f2036d9a3c1962fba188c 05-Jun-2012 Adam Powell <adamp@google.com> More fun with MediaRouter

Add action provider, button, and styles. Extend ActionProvider to
allow for getting references to MenuItem instances.

Implement toggle mode for the MediaRouteButton/ActionProvider. Dialog
selection yet to come.

Change-Id: Ibe3188570f503bbf8dd00cf154663435656a7171
nternal/view/menu/MenuItemImpl.java
eef4bc08137f2324e2974c282992ff546df99e54 06-Jun-2012 Jeff Brown <jeffbrown@google.com> am 615fd3df: Merge "Implement new rotation policy." into jb-dev

* commit '615fd3dff2e369d8b786abcfe41b6da988e41001':
Implement new rotation policy.
207673cdbb536b9bdd9ff7f9ce953c5485d11f5a 06-Jun-2012 Jeff Brown <jeffbrown@google.com> Implement new rotation policy.

Rotation lock does not override NOSENSOR mode anymore.

Centralize the rotation policy settings into a new class shared by
the System UI and Settings applications.

Add a new setting to specify whether rotation-lock is being hidden
because the "auto-rotate screen" option has been toggled in the
Accessibility settings panel.

Bug: 6523269
Change-Id: I15173280d25bc5d101e89a9c65913aefc53fc33a
nternal/view/RotationPolicy.java
94456bb32c282a2b07468bd0ffbacf2283023a00 04-Jun-2012 Jeff Brown <jeffbrown@google.com> am 7d3fa093: am f47e76e2: Merge "Make velocity tracker strategy configurable." into jb-dev

* commit '7d3fa093bbd34e19f6b580b6258c8ea4e138c777':
Make velocity tracker strategy configurable.
7d3fa093bbd34e19f6b580b6258c8ea4e138c777 04-Jun-2012 Jeff Brown <jeffbrown@google.com> am f47e76e2: Merge "Make velocity tracker strategy configurable." into jb-dev

* commit 'f47e76e2c78e78e26110786e99548d718d177c32':
Make velocity tracker strategy configurable.
f47e76e2c78e78e26110786e99548d718d177c32 04-Jun-2012 Jeff Brown <jeffbrown@google.com> Merge "Make velocity tracker strategy configurable." into jb-dev
9eb7d86181729c3eb769d71123c4ce9ffc868f08 01-Jun-2012 Jeff Brown <jeffbrown@google.com> Make velocity tracker strategy configurable.

This change is very useful for testing purposes because it makes it
easy to compare different implementations to see how they behave.

There is no change to the current default strategy.

Bug: 6413587
Change-Id: I4d8567aa4160571ba9fa397ce419882cd9366749
nternal/widget/PointerLocationView.java
988edcd423ec729107631c9f70a75b3a2e9ad434 02-Jun-2012 Jim Miller <jaggies@google.com> am a8c42f1a: am 94a8ae09: Merge "Fix 6592932: add means to replace assist icon from given package" into jb-dev

* commit 'a8c42f1aaa184ed9b30c747ca03b5d7159a3fb20':
Fix 6592932: add means to replace assist icon from given package
a8c42f1aaa184ed9b30c747ca03b5d7159a3fb20 02-Jun-2012 Jim Miller <jaggies@google.com> am 94a8ae09: Merge "Fix 6592932: add means to replace assist icon from given package" into jb-dev

* commit '94a8ae09bea03ec2ca5563601e28a196d41bb6b6':
Fix 6592932: add means to replace assist icon from given package
3294b6b09b2f52cb44005720051c32c9c851fc9f 01-Jun-2012 Jim Miller <jaggies@google.com> Fix 6592932: add means to replace assist icon from given package

This provides the means to replace the assist icon shown in keyguard and the
navigation gesture for assist. It's done by adding metadata called
"com.android.systemui.action_assist_icon" to the activity that handles
android.intent.action.ASSIST. It should point to a StateListDrawable
in that package with the required states. For example:

<meta-data android:name="com.android.systemui.action_assist_icon"
android:resource="@drawable/ic_android_systemui_action_assist" />

And then something like this in drawable/ic_android_systemui_action_assist.xml :

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="true"
android:state_active="false"
android:state_focused="false"
android:drawable="@drawable/ic_action_assist_normal" />
<item android:state_enabled="true"
android:state_active="true"
android:state_focused="false"
android:drawable="@drawable/ic_action_assist_activated" />
<item android:state_enabled="true"
android:state_active="false"
android:state_focused="true"
android:drawable="@drawable/ic_action_assist_focused" />
</selector>

Change-Id: Ibc29360e179fed68253ff06a07b1bb2b982d0dab
nternal/widget/multiwaveview/MultiWaveView.java
nternal/widget/multiwaveview/TargetDrawable.java
c0da129685d306f83ebbc0a0753efb75027e7247 31-May-2012 Chet Haase <chet@google.com> am 12dec0f2: am 762ca84c: Merge "Sped up ActionBar and StatusBar animations" into jb-dev

* commit '12dec0f230ee010192433f90b1c6fd54a9aa24f3':
Sped up ActionBar and StatusBar animations
12dec0f230ee010192433f90b1c6fd54a9aa24f3 31-May-2012 Chet Haase <chet@google.com> am 762ca84c: Merge "Sped up ActionBar and StatusBar animations" into jb-dev

* commit '762ca84cb26b06cfc758db38f4af6edfcf6a4349':
Sped up ActionBar and StatusBar animations
762ca84cb26b06cfc758db38f4af6edfcf6a4349 31-May-2012 Chet Haase <chet@google.com> Merge "Sped up ActionBar and StatusBar animations" into jb-dev
e8118e17b2f088f2ebecfbe050c4ffa80f686abf 30-May-2012 Chet Haase <chet@google.com> Sped up ActionBar and StatusBar animations

Animations to show/hide the ActionBar and StatusBar were very slow, given
the size of the objects and the distances covered by the sliding animations.
Also, the ActionBar animation was sometimes hiccuppy as it faded in/out.
This change eliminates the ActionBar fade (which is unnecessary) and speeds
up the animations (smaller durations and steeper interpolation curves). Also,
it eliminates the startDelay on the ActionBar show animation.

Issue #6564089 Options menu should slide in much quicker (nakasi/JB)

Change-Id: I2c8298301f7bf26bbbc94444e715420a2c029ba0
nternal/app/ActionBarImpl.java
31d6045a940cba3fe5da6cd44a6abb921f99ea76 30-May-2012 Jim Miller <jaggies@google.com> am 6be353b0: am 2a7b17bb: Fix 6580421: make sure MultiWaveView.reset() makes handle visible

* commit '6be353b05e63230dd9c1080441188d839c36d06a':
Fix 6580421: make sure MultiWaveView.reset() makes handle visible
6be353b05e63230dd9c1080441188d839c36d06a 30-May-2012 Jim Miller <jaggies@google.com> am 2a7b17bb: Fix 6580421: make sure MultiWaveView.reset() makes handle visible

* commit '2a7b17bb2604823e140fb867fe87836dd039611a':
Fix 6580421: make sure MultiWaveView.reset() makes handle visible
2a7b17bb2604823e140fb867fe87836dd039611a 30-May-2012 Jim Miller <jaggies@google.com> Fix 6580421: make sure MultiWaveView.reset() makes handle visible

This fixes a bug where sometimes the handle wasn't visble in the
incoming call screen. The problem was that the animation was
interrupted on its transition from alpha = 0 to alpha = 1 by reset()
and the new handle animation wasn't started.

Change-Id: I3ab4259db1115da20e7f54b91bbfe3b496940214
nternal/widget/multiwaveview/MultiWaveView.java
022a656396a9ceef931cbd6e24c9c44bcf7d2a90 30-May-2012 Jim Miller <jaggies@google.com> am 9ca07d04: am d8c5f10c: Merge "Fix 6398209: SearchPanel gesture improvements" into jb-dev

* commit '9ca07d048fb738986195e710839a5084bf1b628e':
Fix 6398209: SearchPanel gesture improvements
9ca07d048fb738986195e710839a5084bf1b628e 30-May-2012 Jim Miller <jaggies@google.com> am d8c5f10c: Merge "Fix 6398209: SearchPanel gesture improvements" into jb-dev

* commit 'd8c5f10c10ea1a8708481eac52ee573d5c3b6a67':
Fix 6398209: SearchPanel gesture improvements
9a720f5eb6c67b581df22f4ecb498cebb459babe 30-May-2012 Jim Miller <jaggies@google.com> Fix 6398209: SearchPanel gesture improvements

This fixes a few recent regressions caused by other bug fixes:
- add new flags to animateCollapse() so we can selectively close panels. Fixes regression caused by attempt to close recent apps from startAssistActivity() which had the side effect of closing the search panel before the animation completes.
- adds tuneable holdoff delay for responding to home key press.
- minor tweaks to MultiWaveView animations.

Change-Id: Ia48434b8d59e7b0290a5e9783960c2f684068218
nternal/widget/multiwaveview/MultiWaveView.java
de1a43f69e0e80de95c1f69f5b8331c0b086bb47 29-May-2012 Wink Saville <wink@google.com> Merge "When we disconnect shutdown the StateMachine."
4b5d3a26394dc5f2aca787fd8acfd6e7e9c27460 29-May-2012 Wink Saville <wink@google.com> Merge "Enhance StateMachine Quitting and logging support."
4abf86ed20fdc87f34362fad5f8a51798a2d0d88 29-May-2012 Jim Miller <jaggies@google.com> am a073e570: Fix 6398209: General animation improvements for swipe to search

* commit 'a073e570789e5b49e8339af44516444b13db4428':
Fix 6398209: General animation improvements for swipe to search
a073e570789e5b49e8339af44516444b13db4428 24-May-2012 Jim Miller <jaggies@google.com> Fix 6398209: General animation improvements for swipe to search

This cleans up the animation for swipe to search from the navbar. In particular:
1. Wait for initial animation to finish if gesture was too quick.
2. Better fade animation
3. Hide background and fade in when ring is selected
4. Smoother target and outer ring animation when switching between states.

Change-Id: I401197760cf9f06b6ff3e1cdb80bee86a03ef276
nternal/widget/multiwaveview/MultiWaveView.java
nternal/widget/multiwaveview/Tweener.java
f3110dfc84f6d7ae0c2c0718db2d1948dfd99240 28-May-2012 Wink Saville <wink@google.com> When we disconnect shutdown the StateMachine.

Need to stop the StateMachine threads and release
all resources when we disconnect.

bug: 6342470
Change-Id: Ibf7a2ebf4f7ecd667c5d95579e66ecd5086103ea
nternal/util/AsyncChannel.java
bbf30dfd767f823f5f40d14b498e2a593454c5c9 29-May-2012 Wink Saville <wink@google.com> Enhance StateMachine Quitting and logging support.

Make StateMachine#quit non-conditional and remove the need to
process the SM_QUIT_CMD it is now private.

Rename halting to onHalting.

Add onQuitting

Change the message specific logging to be more generic and change
the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add
addLogRec(String) and addLogRec(String, State) as the generic logging
methods.


bug: 5678189
Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7
nternal/util/StateMachine.java
af948894195d2af09295210d4266bb45c4f4ba9e 25-May-2012 Chris Wren <cwren@android.com> am 04b63f6f: Merge "Squelch the logs from SizeAdaptiveLayout." into jb-dev

* commit '04b63f6fb0f04e0cd56a6c2d71c8c4f1f2207758':
Squelch the logs from SizeAdaptiveLayout.
04b63f6fb0f04e0cd56a6c2d71c8c4f1f2207758 25-May-2012 Chris Wren <cwren@android.com> Merge "Squelch the logs from SizeAdaptiveLayout." into jb-dev
4414bdefe1ac1559f2c4d2658a28ed80abc84482 25-May-2012 Jim Miller <jaggies@google.com> am 73bde11e: Merge "Fix 6547012: ignore events outside the home/back/recent navigation area" into jb-dev

* commit '73bde11e624c44620819e9c93a61ca6be6e96997':
Fix 6547012: ignore events outside the home/back/recent navigation area
73bde11e624c44620819e9c93a61ca6be6e96997 25-May-2012 Jim Miller <jaggies@google.com> Merge "Fix 6547012: ignore events outside the home/back/recent navigation area" into jb-dev
960892c0afa7f2b91236928e29e3987ed35b2077 24-May-2012 Jim Miller <jaggies@google.com> Fix 6547012: ignore events outside the home/back/recent navigation area

This fixes the search panel to only show if touch events originate
in the home/back/recent area.

Change-Id: I370da8b5c5613b7bbab5d266ba51a61df8f3a57b
nternal/widget/multiwaveview/MultiWaveView.java
5462508f05286d873183b72106928c17f259ff67 23-May-2012 Chris Wren <cwren@android.com> Squelch the logs from SizeAdaptiveLayout.

Bug: 6540109
Change-Id: I52bd64e2f5d1b2f02ef7e956ddf1340fb9b2aff3
nternal/widget/SizeAdaptiveLayout.java
79934c0048a6bfccdbb6dda0fc45db3240ba5de8 23-May-2012 Daniel Sandler <dsandler@android.com> am 81de5a0b: Merge "Stop animating when not showing." into jb-dev

* commit '81de5a0b11df08b603693b6d3b381ac9f89ebc67':
Stop animating when not showing.
aa0a3b692337ec8b6431e8d046ea01f042157334 23-May-2012 Daniel Sandler <dsandler@android.com> Stop animating when not showing.

We were eating too many jelly beans even when the screen was
off.

Also clean up touch offsets, rotation on fling, and main
platlogo asset.

Bug: 6541052
Change-Id: I34e49b8b7a95ce6daab929885130426a5ae58dc4
nternal/app/PlatLogoActivity.java
7a26eefcc51e6cc794217ee398efbdcd4ad34392 23-May-2012 Dianne Hackborn <hackbod@google.com> am 89604931: Merge "Fix issue #6521829: Sometimes action bar disappears in gallery" into jb-dev

* commit '89604931a85edd82c6b4a8c798fc1af610ba706e':
Fix issue #6521829: Sometimes action bar disappears in gallery
80d55065b1577db732c259e0e4d745617b6f1bff 23-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6521829: Sometimes action bar disappears in gallery

Change-Id: Ieb1f1fd0ebb87037cda94e1e1d6e2ca9a9c0754e
nternal/app/ActionBarImpl.java
aa0d9f6363f43e17b99176a026c746e82310111f 22-May-2012 Jim Miller <jaggies@google.com> am a6f0b0ad: Merge "Fix6398209: reveal search when home button is long-pressed" into jb-dev

* commit 'a6f0b0ad6966d64d833978cc150cc180b40f8bb3':
Fix6398209: reveal search when home button is long-pressed
a6f0b0ad6966d64d833978cc150cc180b40f8bb3 22-May-2012 Jim Miller <jaggies@google.com> Merge "Fix6398209: reveal search when home button is long-pressed" into jb-dev
998bb765290066822ff8a3b378dadd71deb0ce73 21-May-2012 Jim Miller <jaggies@google.com> Fix6398209: reveal search when home button is long-pressed

This change add a feature to reveal the swipe to search interface
when the home key is pressed for longer than 50ms. It progressively
reveals the interface. It still requires a bit of tuning, but all
the basic parameters are in this CL.

Change-Id: I1d3a5bb7b912265eb41da68bc9313eee1af2e415
nternal/widget/multiwaveview/MultiWaveView.java
9beee6ad206541f351faad5cf30b9d0216f07d22 19-May-2012 Dianne Hackborn <hackbod@google.com> am d51ac09f: Merge "Fix activity resolver, issues #6519130 and #6507239" into jb-dev

* commit 'd51ac09fd7db5d810452138749f9291617c0dbf7':
Fix activity resolver, issues #6519130 and #6507239
5320eb8938098c9824093f7f842a0a97bbc190a4 18-May-2012 Dianne Hackborn <hackbod@google.com> Fix activity resolver, issues #6519130 and #6507239

6519130: Starting ResolverActivity with no arguments crashes system_server
6507239: ResolverActivity may bypass signature permissions

Change-Id: I64534f781bc6b7eb45e85dbe3a55d351ee28e85c
nternal/app/ResolverActivity.java
7bd926c9ba317189705867f7f153a59a16853390 17-May-2012 Jim Miller <jaggies@google.com> am 5de47b6a: Fix 6398209: Fix glitch in chevron animation in MultiWaveView

* commit '5de47b6ad9d72476302f8a3732b639d3d413ef77':
Fix 6398209: Fix glitch in chevron animation in MultiWaveView
5de47b6ad9d72476302f8a3732b639d3d413ef77 17-May-2012 Jim Miller <jaggies@google.com> Fix 6398209: Fix glitch in chevron animation in MultiWaveView

This fixes a glitch caused by clearing the array of chevrons before
stopping the associated animations. The old animations were allowed to
complete which caused chevrons to move around erratically because they
were being controlled by multiple animators.

Change-Id: Iec1450dd83077a721930eb3cac19a621e7356980
nternal/widget/multiwaveview/MultiWaveView.java
9a40e307dc3a1d865257fee72c042ed0d2a9183d 16-May-2012 Jim Miller <jaggies@google.com> am c1c14065: Merge "Fix 6398209: Lots of improvements to gesture search from navbar" into jb-dev

* commit 'c1c140657633cc5b0ff26da1f122fab305d21e01':
Fix 6398209: Lots of improvements to gesture search from navbar
c1c140657633cc5b0ff26da1f122fab305d21e01 16-May-2012 Jim Miller <jaggies@google.com> Merge "Fix 6398209: Lots of improvements to gesture search from navbar" into jb-dev
20830421fe223bf2a8a69a67a6d26b0b5beb5baa 16-May-2012 Jim Miller <jaggies@google.com> Fix 6398209: Lots of improvements to gesture search from navbar

- Added ability to postpone animations until after window is shown
to ensure the animation is visible on slower devices.
- Fixed layout bug that prevented targets from being located on
outer ring.
- Fixed bug where some motion events were being ignored when handle
wasn't captured.
- Reduced temp object generation in several methods.
- Added containers to start all animations together and to facilitate
delayed start.
- Increased radius of outer ring on phones to closer match mocks.
- Decreased sensitivity of swipe up gesture on navbar so it's harder to false.

Change-Id: I084f840115aef6496a1f87202c4e42d9962c8c3e
nternal/widget/multiwaveview/MultiWaveView.java
nternal/widget/multiwaveview/Tweener.java
4924f2375eb78e7ec5297e7e5fb56059798b38b8 15-May-2012 Daniel Sandler <dsandler@android.com> am 8414beac: Merge "Test new fonts and use correct OS version." into jb-dev

* commit '8414beac87b9fb411566c0c99f772c54d4223a31':
Test new fonts and use correct OS version.
f89d5079e4e483baab1ce0bfc25e487cd920f58f 12-May-2012 Daniel Sandler <dsandler@android.com> Test new fonts and use correct OS version.

Bug: 6499146
Change-Id: I83d6298725fe1f3385d5bf0a34487658583141a4
nternal/app/PlatLogoActivity.java
8e49098f76042c63b4fa8ede9ef9bdf75b77f509 15-May-2012 Adam Powell <adamp@google.com> am e48d12b7: Merge "Fix ActionProviders that have submenus" into jb-dev

* commit 'e48d12b78011ff5ddbb6838a038ea5384190ec92':
Fix ActionProviders that have submenus
e2ec70bf92e80800bd5163f56632b9eb14cce290 15-May-2012 Jeff Brown <jeffbrown@google.com> am 00ff4748: Merge "More VelocityTracker refactoring." into jb-dev

* commit '00ff47484f8137aa3e59f680ff07d2662cfb4088':
More VelocityTracker refactoring.
2da87ec32e72c2c25998e2444155c00074cfbd40 15-May-2012 Dianne Hackborn <hackbod@google.com> am 2a7a6ca0: Merge "Implement new window cropping." into jb-dev

* commit '2a7a6ca00ab176105b5bbfa6b17bb0dcd058d517':
Implement new window cropping.
e48d12b78011ff5ddbb6838a038ea5384190ec92 15-May-2012 Adam Powell <adamp@google.com> Merge "Fix ActionProviders that have submenus" into jb-dev
00ff47484f8137aa3e59f680ff07d2662cfb4088 15-May-2012 Jeff Brown <jeffbrown@google.com> Merge "More VelocityTracker refactoring." into jb-dev
f77f480800a84ceb377e47cc200baf2bae4f5d9a 15-May-2012 Adam Powell <adamp@google.com> Fix ActionProviders that have submenus

Automatically create a submenu for items with ActionProviders that
provide a submenu when the item was not initially configured to have
one.

Bug 6493376

Change-Id: I27218e2ab205e87534f235eb04042b185d99d143
nternal/view/menu/MenuBuilder.java
85bd0d62830a098c1bdc720dfdcf4fe1b18b657c 14-May-2012 Jeff Brown <jeffbrown@google.com> More VelocityTracker refactoring.

Bug: 6413587
Change-Id: Ida1152e7a34d5fe5caab5e6b5e1bc79f6c7a25e6
nternal/widget/PointerLocationView.java
2a7a6ca00ab176105b5bbfa6b17bb0dcd058d517 14-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Implement new window cropping." into jb-dev
85afd1b6f871d471fdff1980134676a5f1690525 13-May-2012 Dianne Hackborn <hackbod@google.com> Implement new window cropping.

The window manager now performs the crop internally, evaluating
it every animation from, to be able to update it along with
the surface position.

Change-Id: I960a2161b9defb6fba4840fa35aee4e411c39b32
nternal/view/BaseIWindow.java
8c113503669fea3fda44e5672ec027e6b15d438f 12-May-2012 Jim Miller <jaggies@google.com> am 5a588dbe: Merge "Fix 6486099: Fix clipping issues with MultiWaveView on phone/tablet" into jb-dev

* commit '5a588dbe6e3d246523d7c04258f0129ba37df069':
Fix 6486099: Fix clipping issues with MultiWaveView on phone/tablet
5a588dbe6e3d246523d7c04258f0129ba37df069 12-May-2012 Jim Miller <jaggies@google.com> Merge "Fix 6486099: Fix clipping issues with MultiWaveView on phone/tablet" into jb-dev
c6e523ea9bc15f18c9cbf04b05e8d2c90298453f 12-May-2012 Jim Miller <jaggies@google.com> Fix 6486099: Fix clipping issues with MultiWaveView on phone/tablet

This fixes a problem where the bounds of the view weren't being
calculated properly when a separate outer radius was specified.

The code now takes the maximum of the ring drawable's width/height
and that specified in the resource files.

This gives it the best default look on all devices while still
allowing minor tweaks.

Change-Id: I5daa40ff4f14653c8cc89b39102816afb976e4f7
nternal/widget/multiwaveview/MultiWaveView.java
a48816375f68a8b4a945efcb68e405308a50adc9 12-May-2012 Jeff Brown <jeffbrown@google.com> am 58770232: Merge "Move power HAL interactions to PowerManagerService." into jb-dev

* commit '58770232216cd735afdfd3dd53151070e06de5ce':
Move power HAL interactions to PowerManagerService.
58770232216cd735afdfd3dd53151070e06de5ce 12-May-2012 Jeff Brown <jeffbrown@google.com> Merge "Move power HAL interactions to PowerManagerService." into jb-dev
7304c343821309dd15f769b18f1de2fa43751573 12-May-2012 Jeff Brown <jeffbrown@google.com> Move power HAL interactions to PowerManagerService.

This refactoring sets the stage for a follow-on change that
will make use additional functions of the power HAL.

Moved functionality from android.os.Power into PowerManagerService.
None of these functions make sense being called outside of the
system server. Moving them to the PowerManagerService makes it
easier to ensure that the power HAL is initialized exactly once.

Similarly, moved ShutdownThread out of the policy package and into
the services package where it can tie into the PowerManagerService
as needed.

Bug: 6435382
Change-Id: I958241bb124fb4410d96f5d5eb00ed68d60b29e5
nternal/app/ShutdownThread.java
07827454efef7f46d46e923a5091d8cf1e5d0d8c 12-May-2012 Jim Miller <jaggies@google.com> am 2b5cebeb: Merge "Fix 6040870: Update MultiWaveView for new device" into jb-dev

* commit '2b5cebebb60c33fe864bed71778253837cbddb54':
Fix 6040870: Update MultiWaveView for new device
4c351d62e7a09bcc29e7d0329bcdd947a302cf40 11-May-2012 Jim Miller <jaggies@google.com> Fix 6040870: Update MultiWaveView for new device

This change allows more flexibility in target placement in MultiWaveView.
It now supports a new way of specifying chevron drawables that allows
them to be moved in directions corresponding to more than the four basic
directions (right, up, left, down).

Chevron drawables can now be updated in an overlay.

This change also adds a place holder and makes a minor tweak to the layout
on 720dp devices where the navbar buttons weren't centered.

Change-Id: Icd319ec5f276870380e27737c873e78f599ff751
nternal/widget/multiwaveview/MultiWaveView.java
nternal/widget/multiwaveview/TargetDrawable.java
556d48f5a3dac3b530015db9f8306f915bea31b2 11-May-2012 Jim Miller <jaggies@google.com> am fef47f42: Merge "Fix 6398209: Improve MultiWaveView animations and interaction" into jb-dev

* commit 'fef47f422aef44a69aa1a417ef671d6934c5ed1f':
Fix 6398209: Improve MultiWaveView animations and interaction
fef47f422aef44a69aa1a417ef671d6934c5ed1f 11-May-2012 Jim Miller <jaggies@google.com> Merge "Fix 6398209: Improve MultiWaveView animations and interaction" into jb-dev
10c66afbd05e91143ea9bd109d3ce578e53dab14 11-May-2012 Jim Miller <jaggies@google.com> Fix 6398209: Improve MultiWaveView animations and interaction

TargetDrawables now have a "home" position they can be scaled about.
Added new "focused" state to TargetDrawable. This is used to distinguish between highlight and selection.
Updated target icons to use new focused state. Currently re-uses "activated" icon.
Change to event handling to allow cancel events when a target is highlighted to cause a selection.
Cleaned up MultiWaveView initialization code.

MultiWaveView animation improvements:
- new scale animation when center handle is touched.
- switched to using indices instead of foreach loops in critical path code to avoid creating temporary objects.
- updated and simplified animation code.

Change-Id: I593c021475f1644c73bdb9f84855e6a9fec7c0ab
nternal/widget/multiwaveview/MultiWaveView.java
nternal/widget/multiwaveview/TargetDrawable.java
2c51f2b949d7b07d1f349dad7b90ce7bb1314c1b 10-May-2012 Daniel Sandler <dsandler@android.com> am dc442534: Merge "Ice cream is SO over." into jb-dev

* commit 'dc442534070aa8ff4c07cae16fc5207ba6821651':
Ice cream is SO over.
49eea136f81f1bda4577a55bea4f88ddd129996b 10-May-2012 Uriel Rodriguez <urodriguez@google.com> am 363b6052: Merge "changed pokeWakelock() callback to take time in milliseconds" into jb-dev

* commit '363b60527ce82b0f56434e70a8124e4d41e2b1e0':
changed pokeWakelock() callback to take time in milliseconds
fe9e28cba7dabb452fdbadcf421f7f758a859447 10-May-2012 Jeff Sharkey <jsharkey@android.com> am 6367b166: Merge "Recover from Throwable in FileRotator, dump." into jb-dev

* commit '6367b1669d41f9fe7cd7abe5e05296edecd50f8e':
Recover from Throwable in FileRotator, dump.
1a0c9145dc32095acc250bdabc4a9b8f82d6bd3e 07-May-2012 Daniel Sandler <dsandler@android.com> Ice cream is SO over.

Change-Id: I4039b7fe41dc4a498d53e21dbcafb2bc2ac15b92
nternal/app/PlatLogoActivity.java
363b60527ce82b0f56434e70a8124e4d41e2b1e0 10-May-2012 Uriel Rodriguez <urodriguez@google.com> Merge "changed pokeWakelock() callback to take time in milliseconds" into jb-dev
dff307697d7a7482efe4c10cb3b07b9249524a42 09-May-2012 Uriel Rodriguez <urodriguez@google.com> changed pokeWakelock() callback to take time in milliseconds

Changed the pokeWakelock() call back to take one argument - the duration to stay awake in ms. This
change was needed in order to poke the wakelock for the duration of the watchdog timeout. This
must be done in the service because the duration of the watchdog timeout is unknown at this point.

Moved pokeWakelock() from start() to handleServiceConnected() to make sure that this poke happens
before the poke in the service. This poke is still needed to account for when devices are rotated.

Change-Id: I19d62df1489514de0588ebb937678358e70ffc95
nternal/policy/IFaceLockCallback.aidl
6367b1669d41f9fe7cd7abe5e05296edecd50f8e 09-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Recover from Throwable in FileRotator, dump." into jb-dev
6de357e4d10fa5977ab9a6c665dc858765e95d34 09-May-2012 Jeff Sharkey <jsharkey@android.com> Recover from Throwable in FileRotator, dump.

In rewriteSingle(), catch Throwable to rollback to backup file,
instead of just IOException. Also add dumpAll() to pack up contents
for later debugging, and use it when encountering bad stats.

Bug: 6467868
Change-Id: Ic8e287cf5a235706811a304a88d71d11d3a79cd4
nternal/util/FileRotator.java
7a7d8f182a2f18f1d548e76d629b8ed191caade5 09-May-2012 Kenny Root <kroot@google.com> am bad417df: Merge "Throw RemoteException when MountService is not yet up" into jb-dev

* commit 'bad417df657128a988b23a6b70b4d08633e4ac5a':
Throw RemoteException when MountService is not yet up
07ba2ae327dbf209da5bafee9cdcb40e03e29d58 09-May-2012 Kenny Root <kroot@google.com> Throw RemoteException when MountService is not yet up

Instead of throwing NullPointerException when getMountService() returns
null, simply throw RemoteException so the code calling getMountService()
can fail gracefully.

Bug: 6461657
Change-Id: Ibefc17de3e0024eb73bbd24914759c0a404f538e
nternal/content/PackageHelper.java
217477e01311b4b77c3ad536cb3cc35e5ce08373 09-May-2012 Adam Powell <adamp@google.com> am ea3f8cc7: Merge "Forgive me monkeys, for I have sinned." into jb-dev

* commit 'ea3f8cc71e0bb89840e727e22ba332bae228ac36':
Forgive me monkeys, for I have sinned.
cb533917fa759848c6e93cb7dba8f4ab39ac1dff 09-May-2012 Adam Powell <adamp@google.com> am 1705b2a5: Merge "Fix some oddities in ResolverActivity" into jb-dev

* commit '1705b2a5da8f27bf91fb5bd984c212c9476fc605':
Fix some oddities in ResolverActivity
83ea86091bf94571912694c7caf8be1c21727f91 09-May-2012 Kenny Root <kroot@google.com> am 29bb27ef: Merge "Add encryption parameters to package installation" into jb-dev

* commit '29bb27ef90564a294d506c2ffd546ba21788aeac':
Add encryption parameters to package installation
76889f3482d6391b17f0961f7356c1e8169c8813 09-May-2012 Adam Powell <adamp@google.com> Forgive me monkeys, for I have sinned.

It has been several hours since my last commit.

Fix an obscure bug that could cause call ordering problems while
updating ListAdapter-based MenuPresenters. This would trigger an
inconsistent return value from the adapter's getCount method that
didn't take the expanded menu item into account, resulting in the
infamous ListView "you didn't call notifyDataSetChanged" exception.

Bug 6412318

Change-Id: I6262846d9c2acdb87ff99116ad78ca4a388efa6d
nternal/view/menu/ListMenuPresenter.java
nternal/view/menu/MenuPopupHelper.java
9bee4664f8bc615ad463af5317c77e98744c368a 08-May-2012 Adam Powell <adamp@google.com> Fix some oddities in ResolverActivity

* Fix layout for small-screen devices in landscape.

* Properly re-enable buttons after restoring instance state.

* Scroll to the currently selected item after restoring instance
state.

* Smooth scroll to the currently selected item if the user changes
selection to an item slightly out of view.

* Place grid scroll bar outside the grid's padding.

* Make the current text read a bit more naturally.

Bug 6460135

Change-Id: Ic60330365cdd815e7517f01b36bcdc9d1c857f30
nternal/app/ResolverActivity.java
29bb27ef90564a294d506c2ffd546ba21788aeac 08-May-2012 Kenny Root <kroot@google.com> Merge "Add encryption parameters to package installation" into jb-dev
ceb1b0bfaea56251796b08c07b963de7403d84eb 24-Apr-2012 Anonymous Coward <nobody@android.com> Add encryption parameters to package installation

Change-Id: Ic9f8ab9f8110f08bb3c00725cfce5b8ee7b766f3
nternal/app/IMediaContainerService.aidl
07e1f12350819cc8fa93dbfe9e8655594b859e64 07-May-2012 Jim Miller <jaggies@google.com> am a482f942: Merge "Fix 6397736: Fix issue with MultiWaveView in incoming call screen." into jb-dev

* commit 'a482f942dae90211540c856664ca71ba29297309':
Fix 6397736: Fix issue with MultiWaveView in incoming call screen.
72b26c1fa25077b1f3367eb211be20b629f7b1d4 07-May-2012 Jim Miller <jaggies@google.com> Fix 6397736: Fix issue with MultiWaveView in incoming call screen.

This fixes a bug where the incoming call screen sometimes had
misplaced icons. The code previously relied on an additional layout
pass that doesn't happen in the incoming call screen in some cases.

Change-Id: If7c39994c1bdadbd3e97f4b9ebb45f68893fd9bd
nternal/widget/multiwaveview/MultiWaveView.java
8676726dcfa54e4fecb0c0676d9945ad49f079c5 07-May-2012 Jim Miller <jaggies@google.com> am 06e8d664: Merge "Fix 6397736: Swipe up to search layout fixes" into jb-dev

* commit '06e8d6647db54aa76dda92a5a785737e66d262de':
Fix 6397736: Swipe up to search layout fixes
06e8d6647db54aa76dda92a5a785737e66d262de 07-May-2012 Jim Miller <jaggies@google.com> Merge "Fix 6397736: Swipe up to search layout fixes" into jb-dev
354619c1cc1b4668c81c5368b2256335cc9e8538 28-Apr-2012 Jim Miller <jaggies@google.com> Fix 6397736: Swipe up to search layout fixes

This fixes several layout issues on phones and tablets with MultiWaveView.

It adds a new background scrim to be shown behind the MultiWaveView
on the navigation bar.

MultiWaveView is updated to handle gravity constraints which makes layouts
much more flexible across devices.

Change-Id: I64068f4eaa81ef6c464247049117d53432fcacbd
nternal/widget/multiwaveview/MultiWaveView.java
1e754e8fac68e970128b9b35d2ccf25bdb6f6f3b 07-May-2012 Adam Powell <adamp@google.com> am dad52e15: Merge "Better screen size adaptation for ResolverActivity" into jb-dev

* commit 'dad52e1500660c72a4defd1c4d1139cb1f90ac7b':
Better screen size adaptation for ResolverActivity
589e6f960db7f3c208a218b7d035f01d0c8460ab 07-May-2012 Adam Powell <adamp@google.com> Better screen size adaptation for ResolverActivity

Change-Id: I2c982c0b7c722ca7cad46cc23ac8d161bee3a1ff
nternal/app/ResolverActivity.java
4ffd4b884b6e9b0a23fd732637db48fee4e5111d 07-May-2012 Adam Powell <adamp@google.com> am 97621027: Merge "Limit item heights in split action bars" into jb-dev

* commit '9762102794b90d40d69a9a31aa8cd1538f8151f8':
Limit item heights in split action bars
367ee326058bbee6fc179b8b1eb2174fe7ba8f45 07-May-2012 Adam Powell <adamp@google.com> Limit item heights in split action bars

Bug 6449422

Overzealous action views should not be able to cause action bars to
take up a huge amount of space.

Fixed text alignment on action buttons

Change-Id: Ic28d6dacdb6933c63b323f5ed6a6cab5d3726938
nternal/view/menu/ActionMenuItemView.java
nternal/view/menu/ActionMenuView.java
f1a15060d0e1016b6287877f074198a66c9b4c9f 07-May-2012 Adam Powell <adamp@google.com> am b2269d67: Merge "Revisions to ResolverActivity" into jb-dev

* commit 'b2269d67c4786037f93bff396eeb9ff7f003164a':
Revisions to ResolverActivity
b2269d67c4786037f93bff396eeb9ff7f003164a 07-May-2012 Adam Powell <adamp@google.com> Merge "Revisions to ResolverActivity" into jb-dev
c587861fe8c59b7f112c333838630b54ab2b38af 05-May-2012 Adam Powell <adamp@google.com> Revisions to ResolverActivity

Bug 6428812

Change ResolverActivity to use a grid rather than a list, and present
buttons for "Use Always" and "Just Once". Use large launcher icons
when appropriate.

Change-Id: I177360a727cbc4b401ffbcea83d1b3dac1de5744
nternal/app/ResolverActivity.java
7bedac9417d60608003d739c8caed7ca81683825 06-May-2012 Dianne Hackborn <hackbod@google.com> am 139e5aa1: Fix issue #6404215: New ActionBar auto-hide can conflict with application

* commit '139e5aa1da51b27231ab36344cf2d0dafab23f1e':
Fix issue #6404215: New ActionBar auto-hide can conflict with application
139e5aa1da51b27231ab36344cf2d0dafab23f1e 06-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6404215: New ActionBar auto-hide can conflict with application

The action bar now maintains separate states for the things that can
impact its visibility (calls from the app, action mode, system UI) so
that the changes in these won't incorrectly mix together.

Also added a hack to force the status bar to be shown when showing
the action bar for an action mode, when the UI is in a state where
the action bar would be shown with a gap above where the status bar
is.

Change-Id: Ib0950a7f585c5d2c9e77d11b237ba6e150f15ebd
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarOverlayLayout.java
dbd7131cf4dae6847b6f7aa0f380e103d2b56aaa 05-May-2012 Dianne Hackborn <hackbod@google.com> am e3320e6d: Merge "Fix issue #6444627: New status bar/action bar interaction a bit disjoint" into jb-dev

* commit 'e3320e6d91443450351d49cc2b37477070fb0ce8':
Fix issue #6444627: New status bar/action bar interaction a bit disjoint
1cc2bcedb50512d83f868a7453813a843188eeee 05-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6444627: New status bar/action bar interaction a bit disjoint

Make sure action bar animations use same duration as system dock animations.

Change-Id: Ie294d134177207499a05cc93db8f4b859f07ed0c
nternal/app/ActionBarImpl.java
3ddb4f80e5cb47173b78430399076c4c3d1bb178 04-May-2012 Jeff Sharkey <jsharkey@android.com> am c065a8af: Merge "Begin collecting xtables iface counters." into jb-dev

* commit 'c065a8af1561544f1557e3f5036e45a4be4a6d7e':
Begin collecting xtables iface counters.
c065a8af1561544f1557e3f5036e45a4be4a6d7e 04-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Begin collecting xtables iface counters." into jb-dev
e43a4e90173cdb1a8e22a8e8e05356c12df44a0e 03-May-2012 Adam Powell <adamp@google.com> am f27ba974: Merge "JB API cleanup; ActionMode and View docs" into jb-dev

* commit 'f27ba974d5af68baf071282de65a22ca6e59244c':
JB API cleanup; ActionMode and View docs
f27ba974d5af68baf071282de65a22ca6e59244c 03-May-2012 Adam Powell <adamp@google.com> Merge "JB API cleanup; ActionMode and View docs" into jb-dev
785c447b2bc625209706fd128ce61781c3a4183b 03-May-2012 Adam Powell <adamp@google.com> JB API cleanup; ActionMode and View docs

Bugs 6435315, 6434937

Add ActionMode#getTitleOptionalHint() and extend documentation for
View#hasTransientState/setHasTransientState

Change-Id: I2049fb79864c33b34e3bbd13df32861e308c99ad
nternal/app/ActionBarImpl.java
nternal/view/StandaloneActionMode.java
5924a7dc53af273343bbdd8456de0c8477ad6b06 03-May-2012 Jeff Sharkey <jsharkey@android.com> am 3b5a7089: Merge "Support full 32 bits for socket tags." into jb-dev

* commit '3b5a7089c7d08042f8ff62e50eb76fc8f6cb80c8':
Support full 32 bits for socket tags.
3b5a7089c7d08042f8ff62e50eb76fc8f6cb80c8 03-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Support full 32 bits for socket tags." into jb-dev
2d6c580262ba1c19fc4f20c3566889e332fbdcb6 03-May-2012 Jeff Sharkey <jsharkey@android.com> Support full 32 bits for socket tags.

Bug: 5321184
Change-Id: Iadb3a4ad541ef012cea35b70ad440eca4c879f42
erver/NetworkManagementSocketTagger.java
020d53224c26edcf643a2a305868e8e8b479c0a4 03-May-2012 Adam Powell <adamp@google.com> am fbbdbc2d: Merge "Fix setting action bar home-as-up from AB style" into jb-dev

* commit 'fbbdbc2d2326e96ce31950baccddd2f295fe594c':
Fix setting action bar home-as-up from AB style
d40423a7adff41463fb4a563becc0bd77fe9919c 02-May-2012 Adam Powell <adamp@google.com> Fix setting action bar home-as-up from AB style

Bug 6427860

Change-Id: I0052417a2c97560ade768509781b27b5e064660d
nternal/app/ActionBarImpl.java
9edbb235779d16e768143f47c241c56a422df580 02-May-2012 Adam Cohen <adamcohen@google.com> am dfed49a2: Merge "Changing app widget "extras" to "options" and another small API Review issue" into jb-dev

* commit 'dfed49a2852e9336e212f6934dcddec7dd743c26':
Changing app widget "extras" to "options" and another small API Review issue
d2097ebacf3a3658624cad10669a4d98e8d7d846 02-May-2012 Adam Cohen <adamcohen@google.com> Changing app widget "extras" to "options" and another small API Review issue

-> (issue 6427146), (issue 6427861)

Change-Id: Ib69a9b3717a5b62317ec227936bc3b2fd5954043
nternal/appwidget/IAppWidgetService.aidl
e8914c36276710de50b347c1e6aecfa45d6a56cd 02-May-2012 Jeff Sharkey <jsharkey@android.com> Begin collecting xtables iface counters.

Add method to parse new iface_stat_fmt proc stats, or return null
when kernel support is unavailable. Add test and remove older, unused
parsing code. Create new "xt" recorder to persist the new xtables
counters when available.

Add SSID support to NetworkIdentity to fix policy tests.

Bug: 6422414
Change-Id: I77f70e9acb79a559ab626f3af5c4f3599801ed43
nternal/net/NetworkStatsFactory.java
nternal/os/BatteryStatsImpl.java
2d28f53514d55bfc3fb2eb2ebdd6c85ef3d8f9d9 01-May-2012 Jean-Baptiste Queru <jbq@google.com> am 31ab51a3: am 2066f7d9: Merge "Prevent empty overflow popup when there are no overflow items."

* commit '31ab51a369ab57c82d0271115ba31b3b20ce6e6b':
Prevent empty overflow popup when there are no overflow items.
5e4f01f02d25ab921afca33c57b78e55d9e9251c 01-May-2012 Jean-Baptiste Queru <jbq@google.com> am f59d2912: am bfe71c35: Merge "statistics from some cpus don\'t fit"

* commit 'f59d2912354a6be6f6181ec945f6f657a5469fb8':
statistics from some cpus don't fit
2066f7d9864d46858588a839a7f39a1526c737bc 01-May-2012 Jean-Baptiste Queru <jbq@google.com> Merge "Prevent empty overflow popup when there are no overflow items."
414d50bce61be36dac88a6aaad138f99e2e26513 01-May-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #6234928: android.app.IntentReceiverLeaked:" into jb-dev
d44713a63d51ba7f186c775c2a32f3c2ce018037 01-May-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6234928: android.app.IntentReceiverLeaked:

Activity com.android.internal.app.ChooserActivity has leaked IntentReceiver

Change-Id: I02488931d8c02ecbe0c6fc2f7ce708a9dc406f67
nternal/app/ResolverActivity.java
5c58de3a523a384c47b0b1e0f5dd9728a74cd9f7 29-Apr-2012 Dianne Hackborn <hackbod@google.com> Add system insets to windows.

This will be used to determine which parts of a window a completely
hidden by system UI elements (status bar, nav bar, system bar) so
that they can be clipped out from rendering.

Change-Id: I2c6c6ac67dbdfeed82d2c089ef806fb483165bd9
nternal/view/BaseIWindow.java
12d3a94397c33fdb773a1eaaaa13cab80bf0c571 27-Apr-2012 Dianne Hackborn <hackbod@google.com> When a window is first shown only draw once while animating.

On some hardware allocating a new graphics buffer is quite
expensive, which blocks updates to the UI. This can cause
glitches when performing window animations.

To reduce these glitches, the view hierarchy will now only
allow itself to be drawn once if its window is being shown
while the window manager is animating, not resuming draws
until it is told that the animation is done.

Change-Id: Ie15192f6fddbd0931b022a72c76ddd55ca266d84
nternal/view/BaseIWindow.java
1fa1de527e541c88fb3809279b67b0dc29419bac 26-Apr-2012 Kenny Root <kroot@google.com> Merge "Allow forward locked apps to be in ASECs" into jb-dev
6dcf382b1b1dde5e6303a51a27f8d3b928072415 18-Apr-2012 Jeff Sharkey <jsharkey@android.com> Move RINGTONE_PICKER to handle external storage.

To give RINGTONE_PICKER external storage access, move it from system
to MediaProvider. Fix OOBE when getRingtoneUri() kicked requery().

Bug: 6346701
Change-Id: I837002eef0580b8cdd8920a27b068c745995a8a3
nternal/app/RingtonePickerActivity.java
6dceb88f1c7c42c6ab43834af2c993d599895d82 12-Apr-2012 Kenny Root <kroot@google.com> Allow forward locked apps to be in ASECs

We couldn't put forward-locked apps in ASEC containers before since we
didn't have any permissioned filesystems. This adds the ability for
forward-locked applications to be in ASEC containers.

This means that forward locked applications will be able to be on the SD
card now.

This change also removes the old type of forward-locking that placed
parts of apps in /data/app-private. Now all forward-locked applications
will be in ASEC containers.

Change-Id: I17ae0b0d65a4a965ef33c0ac2c47e990e55707ad
nternal/app/IMediaContainerService.aidl
nternal/content/PackageHelper.java
2c8e19e81fb930fbb4d353c91ca0852fe91d8166 25-Apr-2012 Michael Jurka <mikejurka@google.com> Merge "New API to allow third-party apps to bind widgets"
e898ac59db04d8ab0762180ca8ec7cea1347aa09 07-Apr-2012 Jim Miller <jaggies@google.com> Fix 6299832: Add search target swipe action to navigation bar on phones

This adds a feature to swipe upward on the navigation bar to invoke
voice search on phones.

Change-Id: I462076fd43b1c66c5bf624f00b297c6d3414a19a
nternal/widget/multiwaveview/MultiWaveView.java
61a5b0160d9f2e53ef4d4b451212a63032dad32d 13-Apr-2012 Michael Jurka <mikejurka@google.com> New API to allow third-party apps to bind widgets

Change-Id: I1a3761c1a0f557a32d4d3bdd0207567fec918ba7
nternal/appwidget/IAppWidgetService.aidl
54dfa5d90e49037eba05f5278076b45428b2bd11 24-Apr-2012 Chris Wren <cwren@android.com> Don't allow children of a SizeAdaptiveLayout to measure outside their declared range of valid sizes.

Bug: 6377749
Change-Id: Ie706006eee9c0ed8dda468212a652941b8e20be0
nternal/widget/SizeAdaptiveLayout.java
9cbe986a446dffea2e9f59b86800f834b02d766a 23-Apr-2012 Jeff Sharkey <jsharkey@android.com> Expose statfs() through IMediaContainerService.

Bug: 6346248
Change-Id: I03ae02578f546fc9f19652cbdece56e2e0ab6a1c
nternal/app/IMediaContainerService.aidl
8ff0c9204e565d7389b10495cf885c772d204be5 21-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "You can now long press on the power off menu to reboot to safe mode."
19caadc08f09cc9f6665fbbb0d61e02861ce8562 21-Apr-2012 Dianne Hackborn <hackbod@google.com> You can now long press on the power off menu to reboot to safe mode.

Change-Id: I3aa575285058cf5a3d89486d6b944f6ea13d645c
nternal/app/ShutdownThread.java
8b0af627997277978240525d87ef7a7f0661554b 21-Apr-2012 Kenny Root <kroot@google.com> Merge "Move forward lock utilities to PackageHelper"
2782a478d0214cf71a32d4537fc9fb191d1072fb 15-Apr-2012 Kenny Root <kroot@google.com> Move forward lock utilities to PackageHelper

The forward lock utilities will need to be called from
DefaultContainerService for ASEC packages in the future. Move them to
PackageHelper to aid in the transition.

Also move the public resource copying to the FileInstallArgs step which
makes a little bit more sense.

Change-Id: I3a62ac817719db3ee1c89c106a551dcbe9c44744
nternal/content/PackageHelper.java
e1a996e99dc68b48efad989876c01ce05a7a58ac 20-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Move handling of package changes to a background thread."
e81e3a4f85147ada753100b8a78584ce008d9e63 20-Apr-2012 Martijn Coenen <maco@google.com> Merge "Added NFC disable during phone shutdown"
3bba8d0457408421a6468f03bbb36e9ff32b81cf 10-Apr-2012 Sunil Jogi <sunil.jogi@nxp.com> Added NFC disable during phone shutdown

NFC was not disabled/deinitialized when phone shutdown. This patch
add NFC disable on phone shutdown which can complete any pending
NFC transaction before phone shutdown.

Change-Id: Id1e604be7c34adec8623a1e526d8ff99e18bf74b
nternal/app/ShutdownThread.java
d84e5937468f6ebf2313ccd5ae54d5405f5e9cde 19-Apr-2012 Chris Wren <cwren@android.com> fix press feedback on notification rows

Change-Id: I50de2f4d6142c2553428abc853c820f4354d0640
Bug: 6362246
nternal/widget/SizeAdaptiveLayout.java
d0d7503fd3e941113094532f28986f49b11b5fdb 20-Apr-2012 Dianne Hackborn <hackbod@google.com> Move handling of package changes to a background thread.

Helps get rid of some jank when installing applications.

Change-Id: I97d0022f82d67796e334d37086e5911dd6ca6b62
nternal/app/ResolverActivity.java
nternal/content/PackageMonitor.java
dd184f9fb1cca51e2840ece187126caf933ab409 20-Apr-2012 Winson Chung <winsonc@google.com> Merge "Adding callback for widget size changed, and potentially other extra info"
e8724c82ab1479f13c85a2c6219841e1fd95f2d2 20-Apr-2012 Adam Cohen <adamcohen@google.com> Adding callback for widget size changed, and potentially other extra info

Change-Id: I57738c92b6a0ba68ae66b19a533559470c64e6f1
nternal/appwidget/IAppWidgetService.aidl
cdfc8bc57462ed3e074b328a7450c6450202cdaa 19-Apr-2012 George Mount <mount@google.com> Merge "Fix stack overflow during animation of action bar."
9caeb145721238897809805f521bb5c8ef375c0f 19-Apr-2012 George Mount <mount@google.com> Fix stack overflow during animation of action bar.

Bug 6366482
The animation engine now notifies onAnimationStart() and
onAnimationEnd() even when it does no action. This CL prevents
the setVisiblity call from causing an infinite loop of triggering
animation notifications.

Change-Id: I009217a42debf1a1495da222199ca8f599fa7bcf
nternal/widget/AbsActionBarView.java
b8139af3dcae80c0030afd0354dc424a7c72c3d9 19-Apr-2012 Adam Powell <adamp@google.com> Adjust action bar tab policies

Action bar tabs now stack in portrait mode on all screen sizes rather
than display embedded. This only affects apps with a targetSdkVersion
of JB or greater, as older apps may not be prepared for the different
measurement of the bar or have an appropriate stacked bar background
drawable.

Stacked action bar tabs now have a width limit. This prevents
super-wide tabs that can span the whole screen. The cluster of tabs
is centered if it does not span the full width.

Add ActionBarPolicy to give a single point to query for various action
bar measurements and behaviors that vary with configuration.

Change-Id: I01162ca009c14f6f0e712fc906b9db6382c738cd
nternal/app/ActionBarImpl.java
nternal/view/ActionBarPolicy.java
nternal/view/menu/ActionMenuPresenter.java
nternal/widget/ScrollingTabContainerView.java
01ce0ce4724803112e7f2885d9ad49edf7515dca 19-Apr-2012 Wink Saville <wink@google.com> Fix calcuation of CMD_TO_STRING_COUNT.

Change-Id: I03ae1a545474d7dcd4e65c58d9befd020d5b9c54
nternal/util/AsyncChannel.java
0192e966ff9df6d8da2a07e26f06fedcc8fdafbd 17-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Add persistence for selected keyboard layout."
a3bc565882dd3984e995363642b1295fe3d24d10 17-Apr-2012 Jeff Brown <jeffbrown@google.com> Add persistence for selected keyboard layout.

Bug: 6110399
Change-Id: I99544bf05e9755385bee478b5f047ccec2e5cae3
nternal/util/XmlUtils.java
70eafab9050601f869c21bf3aebc4f58737b7026 17-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Change dock animations to not use alpha, to make Mathias happy."
3a59d6e26dbec61ede7d6f87d966698e27c91d78 31-Mar-2012 Chris Wren <cwren@android.com> A layout that switches between its children based on the requested layout height.

Change-Id: I5a4e5892fbed7cab2470e458a38accbbcb05ae51
nternal/widget/SizeAdaptiveLayout.java
8eedb8bf603ed313e3c3b39292dfae908ff60af5 17-Apr-2012 Dianne Hackborn <hackbod@google.com> Change dock animations to not use alpha, to make Mathias happy.

Also tweak the action bar animations to slide up/down like the
dock animations.

Change-Id: Id3c85ba76100639a6f6c77b7fd2a060c9d26f38c
nternal/app/ActionBarImpl.java
dd0c13060dc385da3f264a3c08d766826565b6bf 14-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Surface list of apps with given network policy."
854b2b1670bda1eeb87a14b7ac3d222024f0aad6 14-Apr-2012 Jeff Sharkey <jsharkey@android.com> Surface list of apps with given network policy.

Bug: 6007276
Change-Id: I0f0e939ee6481496480c4afaa108c99eb158547c
nternal/util/ArrayUtils.java
4213804541a8b05cd0587b138a2fd9a3b7fd9350 20-Mar-2012 Svetoslav Ganov <svetoslavganov@google.com> Accessibility focus - framework

Usefulness: Keep track of the current user location in the screen when
traversing the it. Enabling structural and directional
navigation over all elements on the screen. This enables
blind users that know the application layout to efficiently
locate desired elements as opposed to try touch exploring the
region where the the element should be - very tedious.

Rationale: There are two ways to implement accessibility focus One is
to let accessibility services keep track of it since they
have access to the screen content, and another to let the view
hierarchy keep track of it. While the first approach would
require almost no work on our part it poses several challenges
which make it a sub-optimal choice. Having the accessibility focus
in the accessibility service would require that service to scrape
the window content every time it changes to sync the view tree
state and the accessibility focus location. Pretty much the service
will have to keep an off screen model of the screen content. This
could be quite challenging to get right and would incur performance
cost for the multiple IPCs to repeatedly fetch the screen content.
Further, keeping virtual accessibility focus (i.e. in the service)
would require sync of the input and accessibility focus. This could
be challenging to implement right as well. Also, having an unlimited
number of accessibility services we cannot guarantee that they will
have a proper implementation, if any, to allow users to perform structural
navigation of the screen content. Assuming two accessibility
services implement structural navigation via accessibility focus,
there is not guarantee that they will behave similarly by default,
i.e. provide some standard way to navigate the screen content.
Also feedback from experienced accessibility researchers, specifically
T.V Raman, provides evidence that having virtual accessibility focus
creates many issues and it is very hard to get right.
Therefore, keeping accessibility focus in the system will avoid
keeping an off-screen model in accessibility services, it will always
be in sync with the state of the view hierarchy and the input focus.
Also this will allow having a default behavior for traversing the
screen via this accessibility focus that is consistent in all
accessibility services. We provide accessibility services with APIs to
override this behavior but all of them will perform screen traversal
in a consistent way by default.

Behavior: If accessibility is enabled the accessibility focus is the leading one
and the input follows it. Putting accessibility focus on a view moves
the input focus there. Clearing the accessibility focus of a view, clears
the input focus of this view. If accessibility focus is on a view that
cannot take input focus, then no other view should have input focus.
In accessibility mode we initially give accessibility focus to the topmost
view and no view has input focus. This ensures consistent behavior accross
all apps. Note that accessibility focus can move hierarchically in the
view tree and having it at the root is better than putting it where the
input focus would be - at the first input focusable which could be at
an arbitrary depth in the view tree. By default not all views are reported
for accessibility, only the important ones. A view may be explicitly labeled
as important or not for accessibility, or the system determines which one
is such - default. Important views for accessibility are all views that are
not dumb layout managers used only to arrange their chidren. Since the same
content arrangement can be obtained via different combintation of layout
managers, such managers cannot be used to reliably determine the application
structure. For example, a user should see a list as a list view with several
list items and each list item as a text view and a button as opposed to seeing
all the layout managers used to arrange the list item's content.
By default only important for accessibility views are regared for accessibility
purposes. View not regarded for accessibility neither fire accessibility events,
nor are reported being on the screen. An accessibility service may request the
system to regard all views. If the target SDK of an accessibility services is
less than JellyBean, then all views are regarded for accessibility.
Note that an accessibility service that requires all view to be ragarded for
accessibility may put accessibility focus on any view. Hence, it may implement
any navigational paradigm if desired. Especially considering the fact that
the system is detecting some standard gestures and delegates their processing
to an accessibility service. The default implementation of an accessibility
services performs the defualt navigation.

bug:5932640
bug:5605641

Change-Id: Ieac461d480579d706a847b9325720cb254736ebe
nternal/widget/ActionBarView.java
75e0dcbca1fe6d218685c73829ae8c75a45b4920 14-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Extract Vibrator implementation from interface."
48a7bf24e375bb98f6300f0b1b3d4c9b7447443a 14-Apr-2012 Wink Saville <wink@google.com> Merge "Enhance the debug output for StateMachines."
583eaaa57c51b28bf14da2a5cc94a2e6091cccf5 14-Apr-2012 Wink Saville <wink@google.com> Enhance the debug output for StateMachines.

Allow some messages to be ignored and allow the subclass to
add additional information. In particular, the information
can be used to decode the msg.what to a string.

Change-Id: I4f53becc6f0cb77399f99702084efef9d8785d67
nternal/util/AsyncChannel.java
nternal/util/StateMachine.java
cedb16ea03d58f33510c399df5b68b791fccaf95 13-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Add simple method to dump key/value pairs."
2f036c55c0b72ac350e378c12b0571b22bc64dc1 13-Apr-2012 Jeff Sharkey <jsharkey@android.com> Add simple method to dump key/value pairs.

Change-Id: I26ebf7e1a1667298c6deca742c104685c52955f7
nternal/util/IndentingPrintWriter.java
c2346134bb519a54d50655cbef940fc3fdec60a9 13-Apr-2012 Jeff Brown <jeffbrown@google.com> Extract Vibrator implementation from interface.

Moved the core logic of Vibrator into SystemVibrator, potentially
allowing for the creation of other Vibrator subclasses.

Fixed several places where we were creating new Vibrator
instances unnecessarily instead of getting it from the Context.

It is safe to make Vibrator abstract because its constructor
was hidden from the SDK so it was not possible to subclass it.

Bug: 6334179
Change-Id: I18ece6544c26a7efb2d5099f8346a10aef8a5e18
nternal/app/PlatLogoActivity.java
nternal/app/ShutdownThread.java
af9e8d38184c6ba4d2d3eb5bde7014a66dd8a78b 13-Apr-2012 Jeff Brown <jeffbrown@google.com> Notify applications when input devices change.

This change allows the InputManager to keep track of what input
devices are registered with the system and when they change.
It needs to do this so that it can properly clear its cache of
input device properties (especially the key map!) when changes
occur.

Added new API so that applications can register listeners for
input device changes.

Fixed a minor bug in EventHub where it didn't handle EPOLLHUP
properly so it would spam the log about unsupposed epoll events
until inotify noticed that the device was gone and removed it.

Change-Id: I937d8c601f7185d4299038bce6a2934fe4fdd2b3
nternal/widget/PointerLocationView.java
f882f1ad4edd790483924e7bf485fd7c7240d110 11-Apr-2012 Amith Yamasani <yamasani@google.com> Bind to the correct face lock service.

When switching users, bind to the correct instance of FaceLock.

Tried to get the facelock screen to show up when switching users, but it
doesn't. Power off/on works, but not switching between users on the
lockscreen. Maybe a timing issue? Or not calling some function to make
the overlay visible?

Change-Id: I9300971331c7f0ed93ae7da28170342629426b20
nternal/widget/LockPatternUtils.java
0b2b1feaa21914f7fa68073a358b5cba3346f023 10-Apr-2012 Brian Colonna <bcolonna@google.com> Merge "Passing useLiveliness flag to FUL in startUi call"
a7dec6d9734bdc3a9e39ffd357002e25c6fdc99b 10-Apr-2012 Adam Powell <adamp@google.com> Restrictions for action buttons with text

Restrict action buttons with text to 2 lines max. Action buttons with
text will always consume at least 2 cells in split mode because they
look silly in 1.

Note that this affects text provided by menu items, not TextViews
embedded within app-provided action views.

Fixes bug 6236467

Change-Id: I7bcbf80f448b13a895ddc3bc6a7a555c0f0bac7c
nternal/view/menu/ActionMenuView.java
f66e930e726f4caf49b7d47c08d160b14628c99f 09-Apr-2012 Brian Colonna <bcolonna@google.com> Passing useLiveliness flag to FUL in startUi call

Because of changes in support of multi-user functionaity, the FUL
'eye blink' checkbox was no longer enabling liveliness detection.

It no longer makes sense to check the biometric flags (such as the
liveliness flag) inside of the Face Unlock service. Instead, that
flag is now passed in from lockscreen via the aidl interface when
startUi is called.

Change-Id: I591cf1924fbb24da7d54b94ef29824e5197d3b20
nternal/policy/IFaceLockInterface.aidl
e8644b695d6c548d2c93e1da7b4a6aff786f1427 06-Apr-2012 Dianne Hackborn <hackbod@google.com> Merge "Fix so that status bar doesn't resize when hiding nav bar."
9801435820dc159725c0185f18f7e60e0fb1b833 06-Apr-2012 Dianne Hackborn <hackbod@google.com> Fix so that status bar doesn't resize when hiding nav bar.

The status bar now extends behind the nav bar, and uses
fitsSystemWindows to ensure its content is not covered. We
always report a stable content insets (as if the nav bar is
visible) even if the nav bar is hidden, so the content doesn't
jump when transitioing. This does mean that if you only hide
the nav bar (and not the status bar), when in landscape you
will end up with a status bar whose right side still leaves
room for the nav bar. But why the hell would you want to do
that?

Also improve documentation on setSystemUiVisibility().

Change-Id: I8087d875f1214ef0085a91b5ed5c2f35ff2fc1b3
nternal/widget/ActionBarOverlayLayout.java
330401243ed992eb62e59c8ac34d6862eb64d712 06-Apr-2012 Jeff Sharkey <jsharkey@android.com> Merge "Support metered Wi-Fi NetworkPolicy."
8fc27e8b87bd1def854a03d84009143b315d4176 05-Apr-2012 Jeff Sharkey <jsharkey@android.com> Support metered Wi-Fi NetworkPolicy.

Add networkId field to NetworkIdentity to identify Wi-Fi networks by
SSID. Add support for policies without usage cycles.

Only apply mobile policies when SIM state is ready, which is cleaner
than just checking for airplane mode. Also avoids creating no-op
default policies when subscriberId is null.

Bug: 3001465, 3291052
Change-Id: I1f8aaa49a5db306df022c402ea7f3f5d4bc0cfc7
nternal/net/NetworkStatsFactory.java
2184a985da15eddd010e53120ebb1da9f8af53e1 05-Apr-2012 Amith Yamasani <yamasani@google.com> Merge "Lockscreen settings per user"
52c489cd63cca0361f374f7cb392018fabfa8bcc 28-Mar-2012 Amith Yamasani <yamasani@google.com> Lockscreen settings per user

Move all lockscreen related settings to LockSettingsService.
LockPatternUtils uses this through IPC instead of Secure settings.
Migrate old settings to new database managed by LockSettingsService.
Passwords and patterns are stored in a new per-user location, except
for the primary user, for backward compatibility.
KeyguardViewMediator and LockPatternKeyguardView listen for changes
to user and updates the lockscreen.

Settings provider will look for Lock settings in the LockSettings
service now for the entries that used to be stored in Settings.

Change-Id: I956cd5b95e2d9d45a6401af7e270e6a5aa2dcc98
nternal/widget/ILockSettings.aidl
nternal/widget/LockPatternUtils.java
nternal/widget/LockSettingsService.java
dd8fab2629131b09367df747afd9a61e42dd1992 23-Mar-2012 Adam Powell <adamp@google.com> TaskStackBuilder and Activity navigation features for framework

Promote navigation helpers from the support library to the core
platform.

The support library's meta-data element has been replaced with a
first-class parentActivityName attribute. This attribute is valid
on both activity and activity-alias elements. An activity-alias
will inherit the target activity's parentActivityName if one is
not explicitly specified.

Automatic Up navigation for Activities

Add the public method onNavigateUp() to Activity. The default
implementation will use the metadata supplied in the manifest about an
activity's hierarchical parent (parentActivityName) to do the right
thing.

If any activities in the parent chain require special Intent
arguments, the Activity subclass should override onNavigateUp() to
properly implement Up navigation for the app, supplying such arguments
as needed.

If automatic Up navigation within the same task can't find an activity
matching the supplied intent in the current task stack, it will act as
an in-app "home" and return to the root activity (presumably the app's
front page) in that task. (From this state, pressing "back" with
default behavior will return to the launcher.)

Change-Id: If163e27e59587f7af36975a09c986cb117ec3bc6
nternal/app/ActionBarImpl.java
7d024d372431effc87168afdc7cbe387680c4935 23-Mar-2012 Irfan Sheriff <isheriff@google.com> Add initial framework for DNS service discovery

Change-Id: I53c0b7ebfd75e520ebb7553612f1aa8413b6b79b
nternal/util/Protocol.java
83d9eda9c2c411e3480c52f01e192bf3c86be8e9 13-Jan-2012 Stephen Smalley <sds@tycho.nsa.gov> Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks.

When spawning an app process, the ActivityManagerService has additional information
about the app package that may be useful in setting a SELinux security context on the
process. Extend the Process.start() interface to allow passing such information
to the Zygote spawner. We originally considered using the existing zygoteArgs
argument, but found that those arguments are appended after the class name and
left uninterpreted by ZygoteConnection, merely passed along to the class or wrapper.
Thus we introduce a new seInfo argument for this purpose.

Modify the ZygoteConnection to interpret the new option and convey it to
forkAndSpecialize, as well as passing the nice name as a further input.
Also modify the ZygoteConnection to apply SELinux permission checks on
privileged operations.

Change-Id: I66045ffd33ca9898b1d026882bcc1c5baf3adc17
nternal/os/ZygoteConnection.java
fe2b7ccca4c5fdaa0d77968b897bd789f4c87c30 01-Apr-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6268190

Change-Id: Ib269fe34c4d3e704f4080076e173241c0761040c
nternal/widget/ActionBarOverlayLayout.java
61d6c8ca49d4a3d5bf4c961878a3f71145d75058 31-Mar-2012 Dianne Hackborn <hackbod@google.com> Merge "Add new feature to let apps layout over status bar / system bar."
3a3a6cfd8ec12208ca75c0d0d871d19d76c34194 26-Mar-2012 Dianne Hackborn <hackbod@google.com> Add new feature to let apps layout over status bar / system bar.

The main change is a few new flags you can supply to
View.setSystemUiVisibility(). One is a new visibility mode,
SYSTEM_UI_FLAG_FULLSCREEN, which is basically the same as
the global FLAG_FULLSCREEN option for windows, but driven as
part of the system UI state.

There are also three new flags for telling the framework that you
would like to have your application's UI ignore screen
decorations -- SYSTEM_UI_FLAG_LAYOUT_NO_NAVIGATION for going
behind the navigation bar and SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
for ignoring full screen decorations (that is the status bar).

In combination with this you can use SYSTEM_UI_FLAG_LAYOUT_STABLE
to have the framework report consistent insets to your application.

When using NO_NAVIGATION, when the user taps the screen we now
also automatically clear ONLY_CONTENT, so that we atomically show
both UI elements. This should make it easy for apps like video
players that want to move between fully full-screen and regular
modes.

The ActionBar has also been extended when in overlay mode so
that it will adjust the system window insets to also account
for its space, and allow it to be hidden using the new
SYSTEM_UI_FLAG_FULLSCREEN.

Change-Id: Ic8db1adec49a0f420bfe40c1d92eb21307856d0b
nternal/app/ActionBarImpl.java
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
nternal/widget/ActionBarOverlayLayout.java
574e49ee16c1ab9a83bb6506870a7be540fa1434 27-Mar-2012 Danielle Millett <dmillett@google.com> Fix 6238404: Changed deleteGallery and deleteTempGallery to use broadcasts

Previously since these were starting an activity, if it was called from
outside an activity (for example when calling resetPassword() in
DevicePolicyManager) it throws a run time exception. Since these don't
need UI, they have been changed to be broadcasts.

Change-Id: Id87e3dc868a01f0eed901e8e8007f91f74cd51fe
nternal/widget/LockPatternUtils.java
50c69b5d8ae4bc973e53cbe3b58b0eb0299e25c8 30-Mar-2012 Michael Jurka <mikejurka@google.com> Merge "Preload recents on phones with hard nav keys"
7f2668c8469934ce83a5647977f6e74ab782cf07 27-Mar-2012 Michael Jurka <mikejurka@google.com> Preload recents on phones with hard nav keys

Also refactor recents code across Phone/Tablet

Change-Id: Id557c5cb0f7d9378f81c40b20511a5d98bf4078e
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
ca894b396b93344ac255746e12730cb269d4d856 20-Sep-2011 Martin Wallgren <martin.wallgren@sonyericsson.com> statistics from some cpus don't fit

Cpu statistics from time_in_state does not fit
in the data structures in ProcessState.java. The
time_in_state file eventually becomes larger than
the buffer of 256 bytes witch cause missing data
in the result or a NoMoreElementsException when
parsing the data.
The numger of cpu speeds can be larger than the
MAX_SPEEDS limit.

Solution
Make sure that the whole file gets read and increase
the MAX_SPEEDS that the system can handle.

Change-Id: I6dfc127b2934988006649cce321d58750a946017
nternal/os/ProcessStats.java
c97ed10ba8ce3c3004f71c226a1142ea91a80424 29-Mar-2012 Jeff Brown <jeffbrown@google.com> Merge "Ensure pointer location view is attached to the policy thread."
70825161b5bf51ed48319e142751a9c88b104994 29-Mar-2012 Jeff Brown <jeffbrown@google.com> Ensure pointer location view is attached to the policy thread.

Previously we created the PointerLocationView on whatever thread
happened to trigger the call to updateSettings(). There was
also some messiness around having to add or remove the view
while not holding mLock.

Now, just post the work to the policy handler.

This also makes it possible for us to use invalidate() instead
of postInvalidate() in PointerLocationView, which is more efficient.

Change-Id: I0646d7aeecffdc22f6ac56ae3ef951e7a12e2b93
nternal/widget/PointerLocationView.java
a647640f85f415bd8fb8cb925e7687658fe9ae37 29-Mar-2012 Jake Wharton <jakewharton@gmail.com> Prevent empty overflow popup when there are no overflow items.

On a device with a hardware menu key, an empty overflow window can be displayed
if there are no items in said overflow menu. This leads to the next user touch
being swallowed in the action of dismissing the invisible window.

Change-Id: I9191e4b2e1ed4888e4bc7261e8b3f095a272a9b5
nternal/view/menu/ActionMenuPresenter.java
195306cdec1ae1a887d0ce5d6612be7e45910d5b 27-Mar-2012 Wink Saville <wink@google.com> Merge "Add SM_INIT_CMD."
cea056f5894543819898a0e62f98dc7870b27758 27-Mar-2012 Wink Saville <wink@google.com> Add SM_INIT_CMD.

The enter methods of the initial states are now executed
in response to a message and therefore run in the handler
associated with the StateMachine. Previously these would
run in the thread that start() was called from.

I ran into a problem where in an Activities onCreate I called
StateMachine#start(), which called the default states enter,
which invoked Context#bindService. But bindService never
completed because onCreate hadn't returned. But invoking the
enter methods on the StateMachines handler this problem does
not occur.

Change-Id: I2c2e52e5de29a987c098196a0efdba446cbc29d0
nternal/util/StateMachine.java
a6deda436baf0df70438b0d9d795bb420b120114 24-Mar-2012 Christopher Tate <ctate@google.com> Merge "Don't crash when wiping backup data redundantly in the local transport"
0abf6a001461a4c2ea31ddc44a60b003b4e0554d 24-Mar-2012 Christopher Tate <ctate@google.com> Don't crash when wiping backup data redundantly in the local transport

Previously, if using the "local" debugging transport:

adb shell bmgr wipe com.android.browser
adb shell bmgr wipe com.android.browser

... would bring down the runtime. This no longer happens. The fix
covers two aspects of the situation: 1. the local transport no longer
blows up in this use case, and 2. the backup manager itself now catches
blowups on the part of the transport, and tidies up after them.

Bug 6205185

Change-Id: Ieb9b8827a62523148ad5a0ec15b05a954d198b3d
nternal/backup/LocalTransport.java
8078d8c8a282ca81344febe7256f63b1e805e3aa 20-Mar-2012 Dianne Hackborn <hackbod@google.com> Add new thumbnail animation.

Use it for recent tasks switching.

Not perfect yet by far, but something.

Also fix issue #6186758: Twitter crashes after tapping on a tweet on JRM75D

Change-Id: I49bf6c94aafde875ac652dedaf96d6c08cc9e7d2
nternal/app/HeavyWeightSwitcherActivity.java
dd6dc5fcecea5cc26541d3bd97e4b91d3304d5ef 22-Mar-2012 Adam Powell <adamp@google.com> Merge "Let users reach app details from ResolverActivity"
2d80962b2e93ae4e59d0197487bd0f6aad4cf26e 22-Mar-2012 Adam Powell <adamp@google.com> Let users reach app details from ResolverActivity

A long press on a list item in ResolverActivity (shown when users are
asked to choose an activity to complete an action) will now open
the app detail settings for the package providing that item.

This is a work in progress; awaiting more UX input on other changes
and better discoverability of this feature.

Change-Id: I2cc07c5520fdd23cf1a43f169b114295f5d9d0ac
nternal/app/ResolverActivity.java
925a7d8f062c2ef275ccb7579889d6f83d0d378e 19-Mar-2012 Danielle Millett <dmillett@google.com> Added a setting for whether biometric weak liveliness is enabled.

The liveliness setting is represented by a bit in
LOCK_BIOMETRIC_WEAK_FLAGS so that more settings can be added if needed.

Change-Id: Ia6c94396d5b84de61f7eeb9a192d0aa925b13507
nternal/widget/LockPatternUtils.java
ac0f18dcc79d3ec954822dcc36efe60c132eff91 20-Mar-2012 Adam Powell <adamp@google.com> Merge "Fix a bug where MenuItems would not return consistent results for item icons initialized from a drawable resource id."
5d189e12d73c6dfd40be49a1f65434512b4d8eb5 20-Mar-2012 Jim Miller <jaggies@google.com> Merge "Fix 6021938: Improved target support in lock screen"
c4852a37186260bf688dc94a77a4ebd2a8290a02 19-Mar-2012 Adam Powell <adamp@google.com> Fix a bug where MenuItems would not return consistent results for
item icons initialized from a drawable resource id.

Change-Id: Ieb5245b8fe0e11b2eb788143859da1c0b3657b9f
nternal/view/menu/MenuItemImpl.java
b030476d193a423f6c1baf3053f66fc768c925e0 14-Mar-2012 Jim Miller <jaggies@google.com> Fix 6021938: Improved target support in lock screen

This adds the ability to enable or disable target icons based on the drawable
resource of the target.

It also fixes a bug where we'd show the camera while displaying
the PIN/PUK unlock screen or when it's disabled by DevicePolicyAdmin.

Minor simplification and cleanup KeyguardUpdateMonitor callbacks.

Change-Id: I33fad56a2203bc8b7bcd0300c20478711a56713a
nternal/widget/multiwaveview/MultiWaveView.java
nternal/widget/multiwaveview/TargetDrawable.java
4280c4a93ea17f2e9d3f651e49d8c13dc3fb92aa 16-Mar-2012 Jeff Brown <jeffbrown@google.com> If an application calls System.exit() terminate it immediately.

There is no graceful way to kill Android application processes.
They typically have many threads running doing various things
When System.exit() is called, those threads just keep going
while the cleanup actions run until the process finally.

Performing shutdown actions can easily cause more harm than good.
For example, closing the Binder driver's file descriptor may
cause other threads waiting on Binder to wake up and then crash
in nasty ways after receiving EBADF.

So when an Android application exits, skip the cleanup and just
call _exit() to end it all.

Bug: 6168809
Change-Id: I29790c064426a0bf7dae7cdf444eea3eef1d5275
nternal/os/RuntimeInit.java
16f5f5cc9d4c480fac3dc7f176f3f1edfbd256f4 16-Mar-2012 Jeff Brown <jeffbrown@google.com> Delete useless JNI methods.

Change-Id: Ie7c7638c79fc9c6a43f45604ad9a40ebc58b93c7
nternal/os/RuntimeInit.java
3e3c3f80a90b156ff500076f8655647dfb317acf 06-Feb-2012 Jake Hamby <jhamby@google.com> Add support for CMAS warning notifications over CDMA.

Refactor SMS Cell Broadcast support to enable receiving CMAS warning
notifications over CDMA. The CellBroadcastReceiver app must also be
updated with the corresponding change. All cell broadcasts are now
delivered as a Parcelable SmsCbMessage object in the "message" extra
of the SMS_CB_RECEIVED_ACTION or SMS_EMERGENCY_CB_RECEIVED_ACTION,
instead of as a GSM/UMTS "pdu" byte array.

Existing functionality for ETWS and CMAS alerts over GSM/UMTS continues
to be supported using the new radio-technology independent SmsCbMessage
and related objects. Test cases are added to verify that valid and
invalid broadcast data is handled appropriately.

Unit testing discovered a bug in the BitwiseOutputStream utility class
used by the added test cases. When the BitwiseOutputStream object must be
expanded (in the private possExpand() method), the mEnd field is not
updated to the new array size. This causes a new array to be allocated
on every new write, and for all data beyond the original array allocation
to be replaced with zeroes. Fixed by adding a line to possExpand() to
update mEnd. Added a test case to BitwiseStreamsTest to verify the fix.
Besides the test cases, BitwiseOutputStream is only used by BearerData in
two places, both of which allocate a sufficient initial buffer. So the
bug in BitwiseOutputStream is not critical to fix for normal operation,
but should be fixed so that the test cases using it function correctly.

Bug: 5856308
Change-Id: I201ecbf11607fd200aaae3cbb32561efabf65672
nternal/util/BitwiseOutputStream.java
f76a50ce8fdc6aea22cabc77b2977a1a15a79630 09-Mar-2012 Ken Wakasa <kwakasa@google.com> Fix obvious typos under frameworks/base/core

Change-Id: Ia5fc3db1bb51824e7523885553be926bcc42d736
nternal/util/AsyncService.java
nternal/util/StateMachine.java
nternal/widget/SlidingTab.java
34264670da2589300aac661e038d54c393e17471 09-Mar-2012 Jeff Brown <jeffbrown@google.com> Merge "Should recycle TypedArray."
14577c4df57004131174fbe435031a18f3e7996b 09-Mar-2012 Jeff Brown <jeffbrown@google.com> Should recycle TypedArray.

Change-Id: Ia318de37c22e4533fff631be816cee539a5cd83d
nternal/os/ZygoteInit.java
bb9908b828a8cfd5965553be66faa6af89973697 08-Mar-2012 Romain Guy <romainguy@google.com> Dispatch screen state change events to Views
Bug #6120957

Using this new callback, views can interrupt and resume their
animations or other periodic tasks based on the current state
of the display.

Change-Id: I398f4abd421e9c5f207107bf1009a7b92cf45daa
nternal/view/BaseIWindow.java
250069bf6bf3d7e2ef85c49e0cd100e80c3c8b7d 08-Mar-2012 Romain Guy <romainguy@google.com> Merge "Ignore draw requests when the display is off"
f203e0a44ef7578c080d63424820fb5a94a4e92f 07-Mar-2012 Adam Powell <adamp@google.com> Fix some action bar menu layout bugs around config changes

Bug 5712010

Fix cases where the transition between split/standard action bar menu
presentation wasn't happening properly for windows in activities that
handle their own config/orientation changes.

Change-Id: I7168555e09c9ed448afb8619fd6f0e1466695365
nternal/view/menu/ActionMenuPresenter.java
nternal/widget/ActionBarView.java
75d022af1f24cf2d8a7551183ea5bbe943d25d21 06-Mar-2012 Adam Powell <adamp@google.com> Action buttons are now 1 view instead of 3.

Change-Id: I42afe0e4bd20c3dbe86e2c43a6bc1d776361dca9
nternal/view/menu/ActionMenuItemView.java
nternal/view/menu/ActionMenuView.java
7e4e561bc717a6eea4e0d06ec4173ad27420425f 05-Mar-2012 Romain Guy <romainguy@google.com> Ignore draw requests when the display is off

When WindowManagerService's events are enabled/disabled, the state of the
display is dispatched to the known windows. This allows ViewRootImpl to
ignore draw requests until the screen is turned back on. This can potentially
lead to significant battery savings. For instance, a launcher widget showing
a repeating animation will cause the CPU and the GPU to wake up regularly
without this change.
(Change submitted by Intel and merged manually)

Change-Id: I7f93b0e60c3e6de1705f619e80860c36b1cdb978
nternal/view/BaseIWindow.java
1e34e1bdc3574219d91032d88dbd97caf44d53c1 05-Mar-2012 Jim Miller <jaggies@google.com> Merge "Fix 5958806: Allow play button to be hidden in TransportControlView"
817d5fb864918c98c7019f8c503f8167ddf31adc 02-Mar-2012 Dianne Hackborn <hackbod@google.com> am 5d87d51f: am f65951bf: am 0dd9ec14: Merge "Make ResolverActivity update dynamically." into ics-mr1

* commit '5d87d51fab7e17793413c9095028963117e276b8':
Make ResolverActivity update dynamically.
e8f2c7ff5abe339061f1823362e12b912c430c1a 02-Mar-2012 Dianne Hackborn <hackbod@google.com> Make ResolverActivity update dynamically.

Watches for package changes so it can dynamically adjust
to reflect the actual list of available activities.

Change-Id: I3a2fef3dac4d13d1b2a7ed6fc117a7b814679669
nternal/app/ResolverActivity.java
1f0eac9951c7167ee9f07251d1ef60805b96bffd 02-Mar-2012 Jim Miller <jaggies@google.com> Fix 5958806: Allow play button to be hidden in TransportControlView

Change-Id: I92e79cb1e33abea76f283eea389dad17d1d7c162
nternal/widget/TransportControlView.java
d3975a917799b85cacaf382b65c5832813066b51 24-Feb-2012 Irfan Sheriff <isheriff@google.com> Fix WifiManager async API

Fix the current asynchronous API to use callback like the way
was done with p2p API.

In the process, fix the use of WPS

Change-Id: Ib6f8714cf51b3525b655948268804e7eaaf17587
nternal/util/Protocol.java
b303b428169986bc8c469218f3b0fc1fcafe4a95 29-Feb-2012 Jake Hamby <jhamby@google.com> Merge "Revert "Add support for CMAS warning notifications over CDMA." I'll submit again when the app change is ready."
efba344b5a7b20e400daf5f41b2fbd688337f789 29-Feb-2012 Jake Hamby <jhamby@google.com> Revert "Add support for CMAS warning notifications over CDMA." I'll submit again when the app change is ready.

This reverts commit 0c49f03a0429b5c0c4a619256f7bca86a4997ae8
nternal/util/BitwiseOutputStream.java
7b0eb33c3a6a70c91a913e4cd0171e19fba0a3f1 29-Feb-2012 Jake Hamby <jhamby@google.com> Merge "Add support for CMAS warning notifications over CDMA."
1b3d01de3837b7710dfccc06af37ffaec2cf8ecf 29-Feb-2012 Gilles Debunne <debunne@google.com> Merge "InputConnection is warned when finished"
0c49f03a0429b5c0c4a619256f7bca86a4997ae8 06-Feb-2012 Jake Hamby <jhamby@google.com> Add support for CMAS warning notifications over CDMA.

Refactor SMS Cell Broadcast support to enable receiving CMAS warning
notifications over CDMA. The CellBroadcastReceiver app must also be
updated with the corresponding change. All cell broadcasts are now
delivered as a Parcelable SmsCbMessage object in the "message" extra
of the SMS_CB_RECEIVED_ACTION or SMS_EMERGENCY_CB_RECEIVED_ACTION,
instead of as a GSM/UMTS "pdu" byte array.

Existing functionality for ETWS and CMAS alerts over GSM/UMTS continues
to be supported using the new radio-technology independent SmsCbMessage
and related objects. Test cases are added to verify that valid and
invalid broadcast data is handled appropriately.

Unit testing discovered a bug in the BitwiseOutputStream utility class
used by the added test cases. When the BitwiseOutputStream object must be
expanded (in the private possExpand() method), the mEnd field is not
updated to the new array size. This causes a new array to be allocated
on every new write, and for all data beyond the original array allocation
to be replaced with zeroes. Fixed by adding a line to possExpand() to
update mEnd. Added a test case to BitwiseStreamsTest to verify the fix.
Besides the test cases, BitwiseOutputStream is only used by BearerData in
two places, both of which allocate a sufficient initial buffer. So the
bug in BitwiseOutputStream is not critical to fix for normal operation,
but should be fixed so that the test cases using it function correctly.

Bug: 5856308
Change-Id: Ie3e6af747976ce9b8a3e71e76fec71709cf86545
nternal/util/BitwiseOutputStream.java
e7bb71d26943fbb053139e1e34203df4c2afaa9b 29-Feb-2012 Jeff Sharkey <jsharkey@android.com> Disable verbose NetworkStats logging.

Bug: 6076584
Change-Id: I4efcda2b474f623f4fe70db8b43b0aa69017d749
nternal/util/FileRotator.java
1d29a3064f20652416f81ea292adcc07566ba974 28-Feb-2012 Jeff Sharkey <jsharkey@android.com> Move NetworkStatsFactory to faster ProcFileReader.

Less GC overhead, and about 8x faster parse times. Verified that
tests pass.

Change-Id: Iff1d374f36103395a193176a88a57eebffa93c56
nternal/net/NetworkStatsFactory.java
453dafa66372308fd5200f1749a2ef8e3e1846e9 28-Feb-2012 Jeff Sharkey <jsharkey@android.com> Suppress StrictMode when reading /proc/ files.

Bug: 6077051
Change-Id: If4f23e947d8b91f9f124baa0460600a6b9353732
nternal/net/NetworkStatsFactory.java
c4e57e23f99f4cea6fcca870a95f7f20a6edfaf2 25-Feb-2012 Adam Powell <adamp@google.com> Fix bug 6065890 - Correct callback sequence for action bar tab switching

Keep the callback behavior consistent when action bar tabs collapse
into a spinner.

Change-Id: Ia82e55d816a92b7ec746e1d25486bc9d2c0778f4
nternal/widget/ScrollingTabContainerView.java
b98a81f86ab87f1d718f329f03256111fdabd8d1 24-Feb-2012 Adam Powell <adamp@google.com> Add support for optional titles in action modes

Optional titles will only be displayed in the CAB if they entirely fit
instead of ellipsizing.

Fixes bug 5821883

Change-Id: I0cfd6d4fd34a4fa9f520499d577706da30606811
nternal/app/ActionBarImpl.java
nternal/view/StandaloneActionMode.java
nternal/widget/ActionBarContextView.java
9d69ecbf61a4a142c3f4cbb9d5659faa6f85e832 25-Feb-2012 Gilles Debunne <debunne@google.com> InputConnection is warned when finished

As said in https://android-git.corp.google.com/g/#/c/155992
finishComposingText is indeed too broad of a method.

Introducing a new dedicated method to warn the InputConnection.

Should solve the problems with a negative counter value.

Change-Id: I5525d776916f0c42d5e6d4a4282aed590d7f0e9a
nternal/widget/EditableInputConnection.java
0aec3ea6defdee1ee4a9c0d6c4a3c13df3e7b812 25-Feb-2012 Dianne Hackborn <hackbod@google.com> am 911b505f: am dc5fa185: am 133dc2d7: Merge "Fix issue #6048808: sometimes auto-correct is inactive" into ics-mr1

* commit '911b505f11c719906985f169a4f45930bdec8695':
Fix issue #6048808: sometimes auto-correct is inactive
7663d80f6b6fd6ca7a736c3802013a09c0abdeb9 24-Feb-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6048808: sometimes auto-correct is inactive

My previous change to speed up the time the IME is dismissed was
fundamentally flawed. That change basically switched the order
the application called the input method manager service from doing
startInput() and then windowGainedFocus(), to first windowGainedFocus()
and then startInput().

The problem is that the service relies on startInput() being done
first, since this is the mechanism to set up the new input focus,
and windowGainedFocus() is just updating the IME visibility state
after that is done. However, by doing the startInput() first, that
means in the case where we are going to hide the IME we must first
wait for the IME to re-initialize editing on whatever input has
focus in the new window.

To address this, the change here tries to find a half-way point
between the two. We now do startInput() after windowGainedFocus()
only when this will result in the window being hidden.

It is not as easy as that, though, because these are calls on to
the system service from the application. So being able to do that
meant a fair amount of re-arranging of this part of the protocol
with the service. Now windowGainedFocus() is called with all of
the information also needed for startInput(), and takes care of
performing both operations. The client-side code is correspondingly
rearranged so that the guts of it where startInput() is called can
instead call the windowGainedFocus() entry if appropriate.

So... in theory this is safer than the previous change, since it
should not be impacting the behavior as much. In practice, however,
we are touching and re-arranging a lot more code, and "should" is
not a promise.

Change-Id: Icb58bef75ef4bf9979f3e2ba88cea20db2e2c3fb
nternal/view/IInputMethodManager.aidl
3f0c58eb708ca520e84396fe764147800395812f 24-Feb-2012 Daniel Sandler <dsandler@android.com> Merge "New notification priority and related APIs."
2561b0b10a55841a08e0e1d467e73e10b1bf256d 14-Feb-2012 Daniel Sandler <dsandler@android.com> New notification priority and related APIs.

This change introduces a few new bits of data on
Notification that will help the Notification Manager and
System UI route and display them more intelligently:

-> priority: an integer in a predefined range that
indicates the app's best guess as to the relative
importance (to the user, right now) of that information

-> kind: a tag (really, set of tags) indicating the general
type of notification (realtime, asynchronous, etc)

-> extras: a Bundle of additional key/value pairs
associated with this notification (currently @hidden)

The notification manager takes these data into account when
assigning to each notification a score which is passed with
the notification on to the system UI, where it can be used to
affect presentation. For example:

- Spammy apps (identified explicitly by the user or by
some other means) will have their notifications scored
very negatively by the notification manager, allowing
the UI to suppress them
- Notifications of higher score might be shown larger
or in a different way
- Very important notifications (indicated by a very high
score) might interrupt the user during an otherwise
important task (videochat, game, etc)

Implementation note: This replaces/extends the old internal
notion of "priority", which was mostly used to organize
ongoings and system notifications at the top of the panel.

Change-Id: Ie063dc75f198a68e2b5734a3aa0cacb5aba1ac39
nternal/statusbar/StatusBarNotification.java
1f0f9d28a18c6c21308f8e97e40b08846435fa44 23-Feb-2012 Adam Powell <adamp@google.com> am c0d0dddc: am fef000e3: am 482ae5f2: Bug 6021294 - Contextual action bar animation tweaks

* commit 'c0d0dddc20827846dcf3235f7307ad76d2893ba6':
Bug 6021294 - Contextual action bar animation tweaks
5c9b4329f335b80ee3282b7ee1f1d27292173f24 22-Feb-2012 satok <satok@google.com> Merge "Refactor sentence level spell checking APIs"
d404fe110558bd2e1960b428db6a2ee8bfd040cd 21-Feb-2012 satok <satok@google.com> Refactor sentence level spell checking APIs

Support sentence level spell checking APIs: Step 1

Change-Id: I31c0b88e7885f33a0694ab60b8f2dbceeffe42f1
nternal/textservice/ISpellCheckerSession.aidl
nternal/textservice/ISpellCheckerSessionListener.aidl
f821819a88cb414c7f55db9a87e8cbfb7e20e7b6 22-Feb-2012 Adam Powell <adamp@google.com> Fix bug 5971117 - Action bar does not update icon used for collapsible
action views

Change-Id: Ib25cd40b046ab4b7dc382476345f95727fde3955
nternal/widget/ActionBarView.java
482ae5f2388a07d60d7f3b54432120172af25eee 18-Feb-2012 Adam Powell <adamp@google.com> Bug 6021294 - Contextual action bar animation tweaks

Remove the right-to-left cascade effect from action mode menu
items. Animation time is now fixed at 300ms for scaling in menu items.

Change-Id: I8eef2ed9f93c2af804663dd5e6b3f4915ed45cb1
nternal/widget/ActionBarContextView.java
50eb3b9bf9bf0b014ad19066951b6c1dffd4e3f3 17-Feb-2012 Jeff Brown <jeffbrown@google.com> Merge "Encapsulate the ViewRootImpl's handler."
a175a5b7ea3682cb58cca7f9726d0b8171cd549d 16-Feb-2012 Jeff Brown <jeffbrown@google.com> Encapsulate the ViewRootImpl's handler.

This change makes it much easier to make sense of the messages that
get posted to the ViewRootImpl's handler by encapsulating their point
of dispatch within the ViewRootImpl itself.

As part of this change, the View.AttachInfo now carries a reference
to the ViewRootImpl itself, which simplifies some code that used
to try to find the ViewRootImpl by getting the root view's parent.

In principle, it might have been nice to hide the ViewRootImpl from
the View hierarchy but in practice the two were coupled in many ways.

Change-Id: I51ebccdf5f8c8c505cd6f17cdf594174d041dc54
nternal/widget/PasswordEntryKeyboardHelper.java
c9237f41a414529b43cc92fdcb9e5887faed2d6f 14-Feb-2012 Steven Ross <stross@google.com> Removing dependence on enable_facelock

With this change, FaceUnlock is enabled by default when installed
fixes 5989485

Change-Id: Icbce3237ff533e8b7b88faf592ac4a1e143d5dc3
nternal/widget/LockPatternUtils.java
688bd47fccf1a1373e6287bc49b5b33fad12b7f3 09-Feb-2012 satok <satok@google.com> Add an api to switch to the next IME and subtype

Bug: 5975302

Change-Id: I48aa4220159c65f456d61a324efcdf0a1ceec91c
nternal/view/IInputMethodManager.aidl
c7aab1a9f179e85580104cc76bdeda5474885ddd 03-Feb-2012 Jim Miller <jaggies@google.com> Merge "Fix 5907223: Fix lock screen glitch caused on devices with a system bar"
bf032650e3938f264091764a606a06a0d34bd15a 28-Jan-2012 Jim Miller <jaggies@google.com> Fix 5907223: Fix lock screen glitch caused on devices with a system bar

This fixes a regression caused by making the lock screen window slippery where
dragging the target over the system bar would incorrectly cause it to
snap to an invisible target. It now interprets MotionEvent.ACTION_CANCEL
the same as an "up" event and resets to the initial state.

Change-Id: I9a3c195371d64e1a4613f6f1fb0a043e9a47a601
nternal/widget/multiwaveview/MultiWaveView.java
74d7ca133a6db82abba5c0abe443fb001928e72c 31-Jan-2012 Romain Guy <romainguy@google.com> Proper equals/hashCode impls in Rect and RectF

Change-Id: Ief52d84f134018af4dfd19674de12736c056e3f8
nternal/util/FastMath.java
ce4a0c6f160241ea06e1f2000815094263dea70d 17-Nov-2011 Jim Miller <jaggies@google.com> Fix 5906830: Update the clock earlier when lock screen comes back from suspend.

This attempts to fix an issue where sometimes the time shown on lock
screen was really old. The code now sets the time immediately when the
screen turns on.

Change-Id: Ic4649ea342499aea82f997ba488bc2cb45987739
nternal/widget/DigitalClock.java
fb9e364380f91295490d1acbfc9a571cb6a4384b 26-Jan-2012 Jim Miller <jaggies@google.com> Merge "Fix 5620754: don't show pattern unlock after SIM unlock if not enabled."
93708af1329bb278d83c1fac6a623629cb42a3d4 26-Jan-2012 Jim Miller <jaggies@google.com> Fix 5620754: don't show pattern unlock after SIM unlock if not enabled.

This fixes a bug where the device would show pattern unlock after the user
entered the SIM PUK unlock code. The code now correctly determines that
the device isn't secure and thus shouldn't show the unlock screen.

Change-Id: I49fd749592154a4c5840038b92d54ca7ca086074
nternal/widget/LockPatternUtils.java
3f696b264e4a3dd28421e9e1a58fe2c6241f48e4 26-Jan-2012 Gilles Debunne <debunne@google.com> Merge "Unbalanced batch edit begin and end leave TextView unresponsive"
629c6765ca21b6ef23db893a35c62eef6a2a28b6 24-Jan-2012 Jeff Sharkey <jsharkey@android.com> Merge "Move network stats to FileRotator pattern."
63abc37356728c0575d6a62a203102ae6d97953b 12-Jan-2012 Jeff Sharkey <jsharkey@android.com> Move network stats to FileRotator pattern.

Split existing network stats into two separate classes: a recorder
which generates historical data based on periodic counter snapshots,
and a collection of historical data with persistance logic.

Recorder keeps a pending history in memory until outstanding data
crosses a specific threshold. Persisting is handled through a given
FileRotator. This pattern significantly reduces disk churn and
memory overhead. Separate UID data from UID tag data, enabling a
shorter rotation cycle. Migrate existing stats into new structure.

Remove "xt" stats until iptables hooks are ready. Avoid consuming
Entry values when recording into NetworkStatsHistory. Assign
operation counts to default route interface.

Introduce "Rewriter" interface in FileRotator with methods to enable
rewriteAll(). Introduce IndentingPrintWriter to handle indenting in
dump() methods.

Bug: 5386531
Change-Id: Ibe086230a17999a197206ca62d45f266225fdff1
nternal/util/ArrayUtils.java
nternal/util/FileRotator.java
nternal/util/IndentingPrintWriter.java
50aca29a0b00c3f8f09b0c246da022df482ca56d 24-Jan-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug # 5863709 API request: Change param names of deleteSurroundingText to "before" and "after""
0c95dd3f4f02564fab9b86a221bbcbb4aafc2981 24-Jan-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug # 5863709 API request: Change param names of deleteSurroundingText to "before" and "after"

Change-Id: I727fad9a59cda915899674569bfabd29b9f5da60
nternal/view/InputConnectionWrapper.java
dc7bf5d8bff86bed7947806c81a28aff5e9a8c3e 23-Jan-2012 Andy McFadden <fadden@android.com> Don't use bootstrap loader directly

The VM is allowed to use null to represent the bootstrap class
loader, so attempting to call methods on it is a bad idea. Use
the system class loader instead.

Change-Id: I9190848945f679d546d5fb30aba10fd27c7e5404
nternal/os/ZygoteInit.java
6de74ff2a45591455cbb5c21d78904065e89ec89 18-Jan-2012 Christopher Tate <ctate@google.com> Fix edge cases leading to backup hanging forever

Plug a couple of apparent code paths (one not obviously reachable, but
fixed here on general principles) that could lead to a backup pass
getting confused partway through and simply never properly completing.
In this state it would leave its wakelock held forever until next
reboot. Bug 5828859.

Those fixes are a total of two lines of code. The rest of the patch
adds a textual journal of the most recently completed (or ongoing!)
backup pass's progress, with an eye to being able to isolate any such
issues that may crop up in the future.

Change-Id: If8a5e8aba11db5a1e618d8b9c9ba3038dd5377a1
nternal/backup/BackupConstants.java
c478c171e92b2f255e9699d9c9306b001368ac20 20-Dec-2011 Gilles Debunne <debunne@google.com> Unbalanced batch edit begin and end leave TextView unresponsive

This is a fix for http://code.google.com/p/android/issues/detail?id=17508

Adding some logs and a forced GC, I'm now reliably able to reproduce it. Here is the scenario.

1. The IME handles an event. It retrieves the current InputConnection (IC) using
ic = getCurrentInputConnection() and calls ic.beginBatchEdit();
2. The call is propagated to the UI thread and TextView's mBatchEditNesting
is correctly increased through beginBatchEdit()
3. A listener calls setText(), which imm.restartInput(this);
4. As a result, the InputMethodManager creates a new ControlledInputConnectionWrapper
with a new InputConnection from the TextView
5. A GC happens at that point. The previous InputConnection is no longeri
referenced by the InputMethodManager's mServedInputConnection.
The weak reference in the previous ControlledInputConnectionWrapper is nulled.
6. The IME thread finishes its process and calls ic.endBatchEdit(); on its version
of the original InputConnection.
7. The message is passed through the InputConnect, but when the weak reference in the
original IInputConnectionWrapper is dereferenced, we get a null InputConnection in
executeMessage().
8. As a result, the TextView's endBatchEdit() method is not called, leaving this TextView
with a non zero mBatchEditNesting.
9. From now on, all edit actions on this TextView will be considered part of a nested edition
and no invalidation is performed, which is the visible manifestation of this bug.

The core problem is that the begin/end batch edit contract is broken when:
1. These are initiated by the IME thread (as opposed to the UI thread)
2. The input connection is reset between these calls
3. A GC happens in the mean time and the WeakReference is lost (otherwise
calling endBatchEdit on a no longer active InputConnection is fine

Solution to keep TextView's mBatchEditNesting balanced:

- The IMM should notify the IC when it is no longer used. We're using the
existing FINISH_INPUT_CONNECTION to do that.
- The InputConnection should keep track of its nesting contribution to the TextView.
When finished the IC makes sure its contribution is reset to 0.
Moreover, further asynchonous calls to begin/endBatchEdit that may arrive from the IME
should be ignored. This is achieved using a negative value as a flag.

Notes:

- finishComposingText may be too broad of a method to perform such a cleaning step
but is seems to only be called in cases where the IC will not be used anymore.
If that's too broad, we have to introduce a new method in the IC interface.

- This is has been implemented in EditableInputConnection and not in a more general
BaseInputConnection because this is where we have a notion of TextEdit, and the
nesting problem is here specific to TextView.
However, the same unbalanced begin/end problem will happen in these classes. They
should override finishComposingText as has been done here if that matters.

- We cannot re-use the TextView's mBatchEditNesting since it may take into account
batch edit from various sources and resetting it on InputConnection close could
then lead to an inconsistent negative count value.

Patch Set 2: added synchronized blocks around mBatchEditNesting

Change-Id: I1ec5518fdc16fb0551fbce9d13f5d92eb4bc78c0
nternal/widget/EditableInputConnection.java
a27a3e8ad7d20dea63ef2d5cb8b6ec7e56c20a89 09-Jan-2012 Jeff Sharkey <jsharkey@android.com> Introduce FileRotator.

Utility that rotates files over time, similar to logrotate. There is
a single "active" file, which is periodically rotated into historical
files, and eventually deleted entirely. Files are stored under a
specific directory with a well-known prefix.

Bug: 5386531
Change-Id: I29f821a881247e50ce0f6f73b20bbd020db39e43
nternal/util/FileRotator.java
2931d8ace9118bafe08090cd41e235048b6c2eb2 12-Jan-2012 Danielle Millett <dmillett@google.com> Merge "DO NOT MERGE - Cherry picking from master to MR1" into ics-mr1
5437c220e239dc6276942990bc81c1388cfb176c 10-Jan-2012 Jim Miller <jaggies@google.com> am d3872f55: am 62fad768: Merge "Fix 4560303: Add setting to lock later when power button pressed" into ics-mr1

* commit 'd3872f55045b7ce7be7dd7ae5fff37d7988bdcb2':
Fix 4560303: Add setting to lock later when power button pressed
de7a2f30548ac64d67e9ce8ac08090eb5458449d 21-Dec-2011 Danielle Millett <dmillett@google.com> DO NOT MERGE - Cherry picking from master to MR1

Fix 5783857: Device Policy Manager doesn't allow Face Unlock

This makes it so that if face unlock is enabled and then a device policy
manager that requires something more secure than face unlock is installed,
the user will be forced to choose a new acceptable lock type.

This was previously fixed for the case where the device had been reset, or
the shell was restarted after setting face unlock, but not for the case where the
device remained on between setting face unlock and setting up a device policy
manager.

Also changed the function ordering of saveLockPattern() so that the overloaded
wrapper function is next to the main function.

Change-Id: Ibed8c4ab137ebbc07fb143faef6f047bc6dc4474
nternal/widget/LockPatternUtils.java
a4edd151c5266a2c794c95444fed67d19740cee3 07-Jan-2012 Jim Miller <jaggies@google.com> Fix 4560303: Add setting to lock later when power button pressed

This adds a feature to delay locking the device when the power button
is pressed. This fixes a use case where the user wants to turn off
the display (e.g. to save power) but doesn't want to lock the device.

For the case of a secure device (user has a pin/password/pattern),
this will lock the device immediately or not based on the setting.

For the non-secure case, this always "locks" the device to provide easy
access to the camera while preventing unwanted input.

Change-Id: Ie328485c3f7559e26896d761cbf0e69d3f4df4e2
nternal/widget/LockPatternUtils.java
45b075dd5cef54ed3412115ee199df1db1c90528 10-Jan-2012 Adam Powell <adamp@google.com> Fix a bug where window progress bars had the wrong default visibility
on windows with action bars.

Change-Id: I5509d9a7c5f029b0471bd63e781f4756f5a319bc
nternal/widget/ActionBarView.java
3c673732ead2721c564c2bd46780e8ebf10e948b 03-Jan-2012 Danielle Millett <dmillett@google.com> Merge "Fix 5783857: Device Policy Manager doesn't allow Face Unlock"
52cd299eef703030f8fcf7a92f413791301771cc 27-Dec-2011 Jesse Wilson <jessewilson@google.com> Move the frameworks/base hostname verifier into libcore. Part 2/2

Bug: http://b/5619726
Change-Id: I165eb3befcef104ff56ffb466c87c60b632f3194
nternal/net/DNParser.java
nternal/net/DomainNameValidator.java
2364a222fcba233d66d0a9cde691d1d6e82227db 21-Dec-2011 Danielle Millett <dmillett@google.com> Fix 5783857: Device Policy Manager doesn't allow Face Unlock

This makes it so that if face unlock is enabled and then a device policy
manager that requires something more secure than face unlock is installed,
the user will be forced to choose a new acceptable lock type.

This was previously fixed for the case where the device had been reset, or
the shell was restarted after setting face unlock, but not for the case where the
device remained on between setting face unlock and setting up a device policy
manager.

Also changed the function ordering of saveLockPattern() so that the overloaded
wrapper function is next to the main function.

Change-Id: Ibed8c4ab137ebbc07fb143faef6f047bc6dc4474
nternal/widget/LockPatternUtils.java
418d12dc8f2c518b673ebc522de4af6f7dbf0bf3 14-Dec-2011 Jeff Sharkey <jsharkey@android.com> Avoid reading network stats when disabled.

Bug: 5518868
Change-Id: Idb5c588b018bf735597ad7ff904ecc69224dd0a0
nternal/os/BatteryStatsImpl.java
erver/NetworkManagementSocketTagger.java
07c2c9f03b9b3bdca89f4960380b6b714ea6b8b0 08-Dec-2011 Jaikumar Ganesh <jaikumar@google.com> am 38342c9d: am d426c338: Merge "Reduce likelihood of crash in state machine." into ics-mr1

* commit '38342c9d858d8b021bc5c616cfe6c0ab9f359b2b':
Reduce likelihood of crash in state machine.
d426c338a66f63f8e5528ac38ec5b61625f2c897 08-Dec-2011 Jaikumar Ganesh <jaikumar@google.com> Merge "Reduce likelihood of crash in state machine." into ics-mr1
a544d467f2a876f2ada2880214b3157cfaef769f 07-Dec-2011 Jaikumar Ganesh <jaikumar@google.com> Reduce likelihood of crash in state machine.

Reduce likelihood of crash when state machine has quit and someone
sends a message using one of the public functions.

Bug: 5724844

Change-Id: I6582a1d19113e6ed545c8ab20adb0a414d8784a7
nternal/util/StateMachine.java
1f45d25257f791ce031e7e5bc3c7806a8b82b2eb 07-Dec-2011 Winson Chung <winsonc@google.com> am a21ce1f1: am 0a361b10: Merge "Workaround for issue where the notifyDatasetChanged call chain is broken when Launcher is killed. (Bug 5703782)" into ics-mr1

* commit 'a21ce1f1107e1aad19335bebe4aed915158b5ca6':
Workaround for issue where the notifyDatasetChanged call chain is broken when Launcher is killed. (Bug 5703782)
c3f581b0474a216938810885f4f606e0db1f21ff 05-Dec-2011 Winson Chung <winsonc@google.com> Workaround for issue where the notifyDatasetChanged call chain is broken when Launcher is killed. (Bug 5703782)

Change-Id: Ic57a7ce85f41d58cd40b7d30eef4a1bf685182e5
nternal/widget/IRemoteViewsFactory.aidl
96e942dabeeaaa9ab6df3a870668c6fe53d930da 01-Dec-2011 Jeff Brown <jeffbrown@google.com> Use a Choreographer to schedule animation and drawing.

Both animations and drawing need to march to the beat of
the same drum, but the animation system doesn't know
abgout the view system and vice-versa so neither one
can drive the other.

We introduce the Choreographer as a drummer to keep
everyone in time and ensure a magnificent performance.

This patch enabled VSync based animations and drawing by
default. Two system properties are provided for testing
purposes to control the behavior.

"debug.choreographer.vsync": Enables vsync based animation
timing. Defaults to true. When false, animations are
timed by posting delayed messages to a message queue in
the same way they used to be before this patch.

"debug.choreographer.animdraw": Enables the use of the animation
timer to drive drawing such that drawing is synchronized with
animations (in other words, with vsync or the timing loop).
Defaults to true. When false, layout traversals and drawing
are posted to the message queue for execution without any delay or
synchronization in the same way they used to be before this patch.

Stubbed out part of the layoutlib animation code because it
depends on the old timing loop (opened bug 5712395)

Change-Id: I186d9518648e89bc3e809e393e9a9148bbbecc4d
nternal/util/ArrayUtils.java
4952dfd16a0f839559ffa78f5016394caf85294f 01-Dec-2011 Jeff Brown <jeffbrown@google.com> Ensure input events are processed in-order in the application.

As it turns out, it used to be possible for there to be multiple
input events simultaneously in flight in an application. Although
it worked, it made it hard to reason about what was going on.
The problem was somewhat exacerbated by the introduction of a
queue of "InputEventMessage" objects as part of an earlier latency
optimization.

This change restores order from chaos and greatly simplifies the
invariants related to input event dispatch within the application.

Change-Id: I6de5fe61c1fe2ac3dd33edf770d949044df8a019
nternal/view/BaseInputHandler.java
9ab5ef2741e2eaeb44218d802643de81ddb4b7a1 29-Nov-2011 Jaikumar Ganesh <jaikumar@google.com> am 910ae39f: am ff33b94e: Merge "Cleanup static references when quitting." into ics-mr1

* commit '910ae39f8a12bcb917b7eb1da3f701925da79509':
Cleanup static references when quitting.
6f9a61651e7949a5d63a4b44314d435c0105a51f 28-Nov-2011 Jaikumar Ganesh <jaikumar@google.com> Cleanup static references when quitting.

The State machine was leaking references when it was
getting created and destroyed.

Change-Id: I7904baf0482eef1617071d159d7b283566b4095c
nternal/util/StateMachine.java
468996c504f8bddd7c3f3b1aab89c6a561f951dc 22-Nov-2011 Amith Yamasani <yamasani@google.com> am d61b61d6: am 227a64fe: Merge "Fix an NPE on overflow in BatteryStats history." into ics-mr1

* commit 'd61b61d6f97f9f73b86e4a24a747c4451f2bc939':
Fix an NPE on overflow in BatteryStats history.
227a64fe23b4e6f05dc31e5f51b0f4c142e52b18 22-Nov-2011 Amith Yamasani <yamasani@google.com> Merge "Fix an NPE on overflow in BatteryStats history." into ics-mr1
79de26ea20ddd65e7c361e138a6f992fd3802c22 22-Nov-2011 Adam Powell <adamp@google.com> am 516035f0: am fb0784da: Merge "Fix bug 5521467 - Monkeys and ActionBar custom tab views" into ics-mr1

* commit '516035f0923aad612932327546e780c7c241ceda':
Fix bug 5521467 - Monkeys and ActionBar custom tab views
05c8277f3423fd57196b3878d27ac0f1995101a8 22-Nov-2011 Adam Powell <adamp@google.com> Fix bug 5521467 - Monkeys and ActionBar custom tab views

Remove custom tab views from old parents if applicable.

Change-Id: I7892f0f271e91a4fc9e26694557e82b81f3fd31a
nternal/widget/ScrollingTabContainerView.java
0dc1f648a09b46c45190ba1ce7daecf7fada4347 18-Nov-2011 satok <satok@google.com> add sentence level spell checker hidden apis

Change-Id: If65c89044bed064fd01a554e33176f64f7c21c0f
nternal/textservice/ISpellCheckerSession.aidl
nternal/textservice/ISpellCheckerSessionListener.aidl
45f06460e9aeadadad27e6c87817940cd96128ef 22-Nov-2011 Amith Yamasani <yamasani@google.com> Fix an NPE on overflow in BatteryStats history.

When the battery stats buffer hits 128KB, it hits a code path
that causes an NPE. This can happen depending on usage and charging
patterns and manifest in bad ways, such as failure to boot up
or random crashes, or refusing to go to sleep.

Bug: 5645407
Change-Id: I21d5d189431f776f25bcb7d598c86e598ad8cb17
nternal/os/BatteryStatsImpl.java
6162960c1eda8cce32a236e7f805cc4fdf9cf656 15-Nov-2011 Jim Miller <jaggies@google.com> am 3dd55677: am ff95f657: Merge "Fix 5579440: Add transport control view to tablet unlock screens" into ics-mr1

* commit '3dd5567710168da330741cb4c4263cc03dd942f1':
Fix 5579440: Add transport control view to tablet unlock screens
faed16030df5221f790a4d6fd5bdfb592db977fa 09-Nov-2011 Jim Miller <jaggies@google.com> Fix 5579440: Add transport control view to tablet unlock screens

This updated tablet layouts to support showing album art and transport
control views in PIN, pattern and password screens of lock screen.

It also allows the addition of a background protect asset and
the ability to show the system wallpaper on layouts that define a
transport_bg_protect view.

Also updated layout to use new ICS-style buttons on lock screen and
fixed bug with "forgot pattern" button where we were showing the
emergency call icon.

To avoid problems with leading ones in the mono-space clock font,
we now right-justify status text on tablet and remove the AM/PM
indicator.

Status font size adjusted by UX.

Added background protection drop shadow to transport control.

Fixed portrait mode to be right-justified when transport is showing.

Change-Id: I790292fc39f4588f87adc9d9241706817ae6baab
nternal/widget/DigitalClock.java
cd6faca83678eaa8f66de2a082e1611e32ba3796 14-Nov-2011 Adam Powell <adamp@google.com> am b22eec57: am a8743f15: Fix bug 5425280 - Two ActionBar icons show up

* commit 'b22eec57d559fc9dd5663abdc37d6b6e6a4f641f':
Fix bug 5425280 - Two ActionBar icons show up
a8743f152aac4a8ef97c79bdad5232614453ce2a 12-Nov-2011 Adam Powell <adamp@google.com> Fix bug 5425280 - Two ActionBar icons show up

Change-Id: Ic82f8ce648f9314a0800eeff326df7d8dfe5027b
nternal/widget/ActionBarView.java
56f73a149b38381e7e406defbf492138553013ba 10-Nov-2011 Peter Ng <petergng@google.com> am f52df796: am 15843aa5: Merge "lock pattern width spec set to max" into ics-mr1

* commit 'f52df7961f29a2f508fb7421f8cd9c95b9b409aa':
lock pattern width spec set to max
524a0adeb55885520a5fec1aa152d0049ec96345 10-Nov-2011 Jim Miller <jaggies@google.com> am 5943c1dc: am 270826a8: Merge "Fix 5555408: allow emergency button to be disabled on SIM/PUK unlock screen" into ics-mr1

* commit '5943c1dc406574b360e9cb1343a5dab00a84a8e2':
Fix 5555408: allow emergency button to be disabled on SIM/PUK unlock screen
7bc60abc97f77cc2478f5d19c391ebdb1433a893 10-Nov-2011 Peter Ng <petergng@google.com> lock pattern width spec set to max

Change-Id: If5853d3c7ee2d2330c06f5c802f66249ab3f2694
nternal/widget/LockPatternView.java
270826a8878b5470d48d93ca3d518ac93860870d 10-Nov-2011 Jim Miller <jaggies@google.com> Merge "Fix 5555408: allow emergency button to be disabled on SIM/PUK unlock screen" into ics-mr1
77c7b4ddebd20006be2d30b7906ac67efc4dc207 09-Nov-2011 Danielle Millett <dmillett@google.com> am b9b08257: Merge "Showing a congratulations screen after choosing face unlock backup lock" into ics-mr1

* commit 'b9b08257370d244b4bccc4e243dda3c4daf4b0af':
Showing a congratulations screen after choosing face unlock backup lock
1f56edc6cd377eab05d9816e93591a7139cdff96 08-Nov-2011 Jim Miller <jaggies@google.com> Fix 5555408: allow emergency button to be disabled on SIM/PUK unlock screen

Some carriers cannot process emergency calls when the IMSI is not available,
which happens when the SIM is locked. This allows the behavior to be overwritten
in an overlay. When the config variable is set to 'false', the emergency
button no longer appears on the SIM or PUK unlock screens.

Change-Id: I3127bfd5e7ebfabea997fbe048cc474e48b7a81c
nternal/widget/LockPatternUtils.java
763631cd247e21b167063023e7dd1395e05ebbf6 08-Nov-2011 Jeff Brown <jeffbrown@google.com> Improve JavaDoc on AtomicFile.

Change-Id: I042fa533ea5d4adca8ae6d42dbd8de32adb34cea
nternal/os/AtomicFile.java
044a0a76444b22bd4fe3718b110953bbcd3ee35d 07-Nov-2011 Danielle Millett <dmillett@google.com> Showing a congratulations screen after choosing face unlock backup lock

Once a backup lock has been chosen, it sends an intent to show a
congratulations screen. The moveTempGallery function has been moved
inside this new activity so it is no longer needed in LockPatternUtils.

Change-Id: I66868e6e3391b8b740f618fe633047ce388f55ca
nternal/widget/LockPatternUtils.java
cb1001b2829f7da86f66f2634bd40cbc51ba4998 03-Nov-2011 satok <satok@google.com> Merge "Fix a memory leak of a Binder in SpellCheckerService" into ics-mr1
163e6443f27884a9bfcb9a48ef606dc635852c23 01-Nov-2011 Jeff Sharkey <jsharkey@android.com> Correct proc file reader, optimizations.

Moved away from BufferedReader, which only reads the first 8KB of
some proc files because it aggresively fills its buffer. Optimized
proc parsing, now double the speed. Tests to cover.

Log when NetworkStats counters roll backwards when subtracting, and
optimizations around findIndex(). When system removes UID, also
remove from last stats snapshot to avoid xt counters from rolling
backwards.

Bug: 5472949, 5458380
Change-Id: I07c08fe5233156fac2b84450f6291868bf9bfaf2
nternal/net/NetworkStatsFactory.java
nternal/util/ProcFileReader.java
74061ff90453c79ddbde468f630a41425da07710 02-Nov-2011 satok <satok@google.com> Fix a memory leak of a Binder in SpellCheckerService

Bug: 5499490

Change-Id: I167a3e9dfdd6edd06c6ad993fbff3a535c81b09c
nternal/textservice/ISpellCheckerSession.aidl
24340afbab8ad4c191784fda8023407205bc0a75 01-Nov-2011 Adam Powell <adamp@google.com> Fix bug 5534667 - Action bar icons need more space on tablet

Set a wider minimum width for the action button style on -sw600dp.

Fix an annoying bug where recycled ActionMenuItemViews would retain a
lingering pressed state, causing an unrelated button to glow briefly.

The home/up affordance should not be focusable when it is disabled.

Change-Id: Ia68f3d09f5d977f50e4e33c354d8133367187973
nternal/view/menu/ActionMenuItemView.java
nternal/view/menu/BaseMenuPresenter.java
nternal/widget/ActionBarView.java
678ed0c5a32bac1ea18a5ac99b0b814421ea79b4 28-Oct-2011 Adam Powell <adamp@google.com> Bug 5275928 - Don't try to open an overflow menu under invalid circumstances.

Change-Id: I62ea1e982f0d3c92cb504efbae95bce238b12f72
nternal/view/menu/ActionMenuPresenter.java
nternal/widget/ActionBarContextView.java
81bd76e4b33ea00d30bb2b2193ca5bd0cf445546 28-Oct-2011 Peter Ng <petergng@google.com> Merge "Removing 2nd background clock font display from statusbar and lock screen" into ics-mr1
ccff48b7cb4a1dd81ee90fb31d4dedf5dc71b8d0 24-Oct-2011 Jim Miller <jaggies@google.com> Removing 2nd background clock font display from statusbar and lock screen

Change-Id: If9edfed231cde6590b28fc2115d78bc97b74ae4e
nternal/widget/DigitalClock.java
1a3ad7d18f0e15611268347da7f1b5db8c3b558d 26-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding accessibility support to the tablet swipe unlock." into ics-mr1
6033c0817427386cd3e95a992d1f34dad4188f96 25-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding accessibility support to the tablet swipe unlock.

1. Added handling for hover events that are transformed into
touch events and given to the touch event handling code
if accessibility is enabled.

2. Now swiping across the handle unlocks the device for both
cases - accessibility enabled or disabled.

bug:5513324

Change-Id: I7031690d69b1a2737e2ce4d1871d69d7dfbf3006
nternal/widget/WaveView.java
e49cf107e2533b7ca71c500bc20a0f6dcdf9efdc 25-Oct-2011 Ed Heyl <ed@google.com> merge ics-mr0

Change-Id: I4f0b2bb1b1136c9467e9d55f57f5333153cae65d
f8b9a4751e6d0721804931aa39545e3741ff5013 24-Oct-2011 Brian Colonna <bcolonna@google.com> Added callback to allow Face Unlock to hide black area

- Part of fix 5491362 (RelTeamHotIssue)

- Because the fix closes the camera early, this change is needed so
the black area isn't still hanging around while the camera fades
to the backup lock.

Change-Id: Iab7c264adab0fb05979fe2732048ccf2237e64c5
nternal/policy/IFaceLockCallback.aidl
53b5d17d08fa1d5fc63a9345691bf151a892fcaa 21-Oct-2011 Adam Powell <adamp@google.com> am a5c371bf: Merge "Bug 5275928 - Invasion of the monkeys" into ics-mr0

* commit 'a5c371bf1fc878f84c296a63839a5d031dea843f':
Bug 5275928 - Invasion of the monkeys
97e1836e1b07d91f18de9669c46b0c941b643a72 21-Oct-2011 Adam Powell <adamp@google.com> Bug 5275928 - Invasion of the monkeys

Fix a monkey bug where runnables set to open popup windows were being
left around.

Change-Id: I29f2c7763ab667c784b96b60ef0d7e04d358c4d9
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
1aa1c9bc68bee5a4cb57033ae26b3766702e2843 20-Oct-2011 Jim Miller <jaggies@google.com> am 2f35281a: Merge "Fix 5485925: Fix crash in transport control view" into ics-mr0

* commit '2f35281ae0ae4471527e9286f022cb960384044e':
Fix 5485925: Fix crash in transport control view
a5ff5b482ab74b327983652439bea58c0499bae0 20-Oct-2011 Jim Miller <jaggies@google.com> Fix 5485925: Fix crash in transport control view

This fixes a crash where we weren't hiding the view when there's
no registered media player. It now hides the view when AudioManager
tells it to clear the data.

It also avoids a possible race condition where a request can
come in from AudioManager before the callback is set.

Change-Id: I3360e775c75396e1eee11413d317df5b39ceb487
nternal/widget/TransportControlView.java
3585a3dfc6824581e8b4b46bfa1207bb18fad0cf 19-Oct-2011 Dianne Hackborn <hackbod@google.com> am 47f8367a: Merge "Work on issue #5465917: Wakelock *overflow* held for very long times" into ics-mr0

* commit '47f8367ab79247501d5d204632a7797fa8a888e5':
Work on issue #5465917: Wakelock *overflow* held for very long times
c24ab866b0d46685f6ddd340b9c84375cf8d6831 19-Oct-2011 Dianne Hackborn <hackbod@google.com> Work on issue #5465917: Wakelock *overflow* held for very long times

- Fix ordering problem in sync manager that would cause its wake
locks to slightly appear in the system process when they should
be fully accounted against the app.
- Allow the system process to have more wake lock names in its
battery stats.
- In the bug report output, print totals of the wake locks for each
process, to make it easier to parse what is being printed for things
like the system process with a huge number of individual wake locks.

Change-Id: I3cf39330f22f3c51c11e65e4124150d73a7da2dd
nternal/os/BatteryStatsImpl.java
7c3a18398f8cd8977079fad34a6bfc3fdab6378e 18-Oct-2011 Jim Miller <jaggies@google.com> am 8e6d75af: Merge "Fix 5473038: workaround for fd leak in lockscreen" into ics-mr0

* commit '8e6d75affa1a802b01aa38ad765d1ae9f998c0ab':
Fix 5473038: workaround for fd leak in lockscreen
a7f3a34313074a96b1cc2eb4bea0304d8375af75 18-Oct-2011 Jim Miller <jaggies@google.com> Fix 5473038: workaround for fd leak in lockscreen

This works around a file descriptor leak in Skia. It also improves
view creation time by avoiding re-loading the font every time a
DigitalClock is created.

Change-Id: I5c46445da36b1e6ba06c8ca340e436835d281180
nternal/widget/DigitalClock.java
eb4173ae298dc31bd27895c2b84125c95dbda093 17-Oct-2011 Jim Miller <jaggies@google.com> am 7b5dd873: Fix 5466793: Fix memory leak in system process when face lock is enabled.

* commit '7b5dd87351ac476dd872c51f9b819d2a3e572382':
Fix 5466793: Fix memory leak in system process when face lock is enabled.
af0aec584a824dbc772170038128755954dc12ac 17-Oct-2011 Uriel Rodriguez <urodriguez@google.com> am d814d4fa: Merge "going directly to backup after face unlock fails 15 times" into ics-mr0

* commit 'd814d4fa0c76a0384f7e32816e1ca36f237911c6':
going directly to backup after face unlock fails 15 times
7b5dd87351ac476dd872c51f9b819d2a3e572382 16-Oct-2011 Jim Miller <jaggies@google.com> Fix 5466793: Fix memory leak in system process when face lock is enabled.

Previously, the code was not unregistering the callback when we unlocked
the device, which kept a reference to LockPatternKeyguardView indirectly
by a reference to mFaceLockCallback.

It now correcly removes the callback when we unlock the device.

Change-Id: Ie592d007a1dfc2416b9e8956aba2c34e3d0120ee
nternal/policy/IFaceLockInterface.aidl
d814d4fa0c76a0384f7e32816e1ca36f237911c6 15-Oct-2011 Uriel Rodriguez <urodriguez@google.com> Merge "going directly to backup after face unlock fails 15 times" into ics-mr0
fd2ed6910f932ce43b621d6296eff112e137fbf9 14-Oct-2011 Uriel Rodriguez <urodriguez@google.com> going directly to backup after face unlock fails 15 times

- after 15 failed face unlock attempts, go to backup until the backup method is successful
- if the backup method times out (because too many unsuccessful unlocking attempts),
face unlock will not be launched until the backup method is used sucessfully
- fixes 5365919

Change-Id: I9aef7a4f1abcceefc5d6f1c0458ae5cbe8a902df
nternal/policy/IFaceLockCallback.aidl
eecd9ac0fbe0335916b8f72a89d479dd64341988 14-Oct-2011 Jim Miller <jaggies@google.com> am 83e160d3: Fix build.

* commit '83e160d3b3ad839b0c2faf40f4477a2468098995':
Fix build.
83e160d3b3ad839b0c2faf40f4477a2468098995 14-Oct-2011 Jim Miller <jaggies@google.com> Fix build.

Change-Id: Ifd5fe7933065f555f50ea91c4c301f87ca09dcdc
nternal/widget/TransportControlView.java
66d19b85b374fb32b22a2be2a435c42a6ad0f1f0 14-Oct-2011 Jim Miller <jaggies@google.com> am 1a59c7e3: Merge "Fix 5358124: Better transport control visibility management in lock screen" into ics-mr0

* commit '1a59c7e3973cd2de23e45afde1a5e8fdd8a2d30f':
Fix 5358124: Better transport control visibility management in lock screen
1a59c7e3973cd2de23e45afde1a5e8fdd8a2d30f 14-Oct-2011 Jim Miller <jaggies@google.com> Merge "Fix 5358124: Better transport control visibility management in lock screen" into ics-mr0
76842baa0f6d079bcb8933bb14a7a4dbb89db781 14-Oct-2011 Jean-Michel Trivi <jmtrivi@google.com> am 9ad680ca: Merge "Fix 5380695 Lockscreen transport control must reflect error state" into ics-mr0

* commit '9ad680ca2be19679c355de9526d79ded2887ea97':
Fix 5380695 Lockscreen transport control must reflect error state
4e6d35829ebf98ea37f77ea434550d51950c1119 14-Oct-2011 Jim Miller <jaggies@google.com> Fix 5358124: Better transport control visibility management in lock screen

This changes TransportControlView to be "sticky" on lockscreen. Basically, once it
appears on lockscreen, it stays there until unlocked and then locked again in paused state.

Tested basic design goals (using Music2):
- play then lock -> shows
- pause then lock -> not shown
- toggle pause to play while locked and not shown -> shows
- pause after played once while locked -> stays until we unlock and lock again while paused
- remote control play while paused & sleeping -> resume lockscreen -> shows

Also tested:
- configuration changes (orientation) to ensure widget continues to show after it once appears
- remote events while lock screen on -> keeps lockscreen on.
- remote events while sleeping -> doesn't wake.

Change-Id: I23418c5f7dfd1457c0844d2683772e8a3ed0abd1
nternal/widget/LockScreenWidgetCallback.java
nternal/widget/TransportControlView.java
261381cf9f52776f5f5fad8e6d2d31960c60c945 14-Oct-2011 Jean-Michel Trivi <jmtrivi@google.com> Fix 5380695 Lockscreen transport control must reflect error state

When a RemoteControlClient reports an error for its playstate,
make the play/pause button display the warning platform icon.

Note that a specific image description is not available for this
state at this time, but the one being used (the same as for the
play icon) is valid as it correctly describes the action the
button performs.

Change-Id: I59aadab3fe5bcc09a2f7be0b9e4cffb0c500e865
nternal/widget/TransportControlView.java
4defcef1cb643e998b64c594b94af287de317a41 13-Oct-2011 Jim Miller <jaggies@google.com> am 207c6731: Merge "Fix 5444675: Fix vibrate regression on Pattern and PIN unlock screens." into ics-mr0

* commit '207c67315c8668b72cbb7bd370f1d6c8479eabd4':
Fix 5444675: Fix vibrate regression on Pattern and PIN unlock screens.
8eeb4d1a70faa4d5834de44bfa515742566c6ba3 13-Oct-2011 Adam Powell <adamp@google.com> Fix bug 5394020 - Menus are pretty sluggish to bring up

Clear out some obsolete "optimizations" leftover from the old menu
system internals.

Change-Id: I325530c9fae434de2d95200e648c63149334f444
nternal/view/menu/ExpandedMenuView.java
nternal/view/menu/ListMenuItemView.java
aef555bcf26e770e37f2065913084588fb92c6fb 13-Oct-2011 Jim Miller <jaggies@google.com> Fix 5444675: Fix vibrate regression on Pattern and PIN unlock screens.

This fixes a regression caused by a resource change to the vibrate
pattern. It used to contain an array of delays and values. Now it has
another mode with just one value with an associated change to the vibrate
API.

Instead of using a custom vibration pattern, it now just follows the system
vibrate pattern for HapticFeedbackConstants.VIRTUAL_KEY, which is shared by the
home key, among other things.

Change-Id: Ib58493a96a42383955ae59f8ac3865bb46a86a31
nternal/widget/LockPatternView.java
nternal/widget/PasswordEntryKeyboardHelper.java
fd8f6f2f7557c414466f7634391821e59c1ce040 12-Oct-2011 Daniel Sandler <dsandler@android.com> Merge "Fix obsolete Honeycomb platlogo." into ics-mr0
f2894659e8df625783afcd3fa17462ab23d29145 12-Oct-2011 Adam Powell <adamp@google.com> Fix bug 5449931 - Wrong theme for icon menus

IconMenuPresenter should always use its own theme for the system
inflater.

Change-Id: Iacadce37d62a60cdf6220d82f1178098ed92d51e
nternal/view/menu/IconMenuPresenter.java
5f839f8ee426cc42af3ee0eaf5236f2f6930dd15 12-Oct-2011 Daniel Sandler <dsandler@android.com> Fix obsolete Honeycomb platlogo.

Bug: 5438131
Change-Id: I848bcc8e4d6cdd28c1ffaa08b7fcceb87242932a
nternal/app/PlatLogoActivity.java
538e565c06e915b91e7e3a901f872ccdd9bccdd3 11-Oct-2011 Adam Powell <adamp@google.com> Fix bug 5396097 - menu theme consistency

Fix a bug where action bar menus were using the wrong context to
inflate stock views. This was causing them to use the action bar's
themed widget context instead of the current theme's specific action
bar items.

Note that action views in the menu will still be inflated using the
themed widget context. This can produce some weird side effects if
the action views use theme attributes relating to these action bar
item attributes.

Change-Id: Ied3614d1fedb10a0f5366bbe7b90cd5f2f1ff969
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/BaseMenuPresenter.java
nternal/view/menu/IconMenuPresenter.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
67e043db11b29f3c0c84529ae21a0fdd7ae11c6d 11-Oct-2011 Jim Miller <jaggies@google.com> Fix 5249234: Add contentDescription to buttons on transport control on lock screen.

Change-Id: Ie4e9139e01c37a0d9542ff9996a84db0083b35ef
nternal/widget/TransportControlView.java
f005a2c83b341647ea827e548cf506d37a8bf97e 11-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding accessibility support to the pattern lock."
04b81c713e88c056b430b326350359b4e8f1377f 11-Oct-2011 Amith Yamasani <yamasani@google.com> Don't show icon for power-off confirmation dialog.

Bug: 5380396
Change-Id: I57574b613d95885c829df729297b24be1c73b876
nternal/app/ShutdownThread.java
9dcd5afabe37872eab1b0bf2d4cab7f36b9f30a1 10-Oct-2011 Adam Powell <adamp@google.com> Merge "Bug 5430909 - Overlay action bar should consume hover events"
7d09f04363cdda6a3cf8b2ad1b67c9a07fa8975f 10-Oct-2011 Adam Powell <adamp@google.com> Bug 5430909 - Overlay action bar should consume hover events

Otherwise these will incorrectly fall through to the view below.

Change-Id: I97280c41b2080f3f156554c6eb111af246e140d0
nternal/widget/ActionBarContainer.java
530d9f10a6af8ff83a184582ca81608b29510b42 04-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding accessibility support to the pattern lock.

The pattern lock fires accessibility eventa to announce start,
update, and end of a pattern. The pattern lock reacts to hover
events if touch exploration is enabled.

bug:5318807

Change-Id: I5a10c76338ca029f63f278c7e7d0aaba2386f73c
nternal/widget/LockPatternView.java
d78a38cae2f041629326d475333f43fd81ae4137 10-Oct-2011 Jeff Sharkey <jsharkey@android.com> Merge "Move battery stats to xt_qtaguid for data stats."
1059c3c30ad96a15695c1a92ae8896e078a6309f 05-Oct-2011 Jeff Sharkey <jsharkey@android.com> Move battery stats to xt_qtaguid for data stats.

Replace TrafficStats calls by reading values from xt_qtaguid kernel
module. To keep BatteryStatsImpl changes lightweight, cache recently
parsed stats. Tracks mobile ifaces from ConnectivityService.

Refactor xt_qtaguid parsing into factory outside of NMS. Add stats
grouping based on UID, and total based on limiting filters like iface
prefix and UID.

Bug: 4902271
Change-Id: I533f116c434b77f93355bf95b839e7478528505b
nternal/app/IBatteryStats.aidl
nternal/net/NetworkStatsFactory.java
nternal/os/BatteryStatsImpl.java
5c18ac651415ce71f8cb078a3ce9f5b5802d70ec 08-Oct-2011 Amith Yamasani <yamasani@google.com> Save the click position and restore it on orientation change.

Bug: 5417556
Change-Id: I817890a3ff2910aa49ec44a30edb1a39d0d97095
nternal/app/RingtonePickerActivity.java
df89e65bf0fcc651d20b208c8d8d0b848fb43418 07-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix how we hide and show the nav bar.

The PhoneWindowManager is now responsible for hiding and showing
the nav bar.

For hiding, it just moves it off the screen (easy way to get a
nice slide animation on and off). At the same time, we use a
new WM facility to put up a fake input window to capture all
touch events.

When a touch event is received, we force the system UI to clear
the navigation hiding bit so it will be shown again.

This removes a bunch of code from the system UI for hiding and
showing the nav bar. Also removes the code calling from userActivity()
to the system UI, which was bad. (Also no longer using userActivity()
fixes bugs around re-showing the nav bar due to key presses and
other wrong things.)

Change-Id: I8c3174873b5bcaa36a92322a51e8f7993e88e551
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
9a230e01a1237749a8a19a5de8d46531b0c8ca6a 06-Oct-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately

This cleans up how ui flags are managed between the client and window manager.
It still reports the global UI mode state to the callback, but we now only clear
certain flags when the system goes out of a state (currently this just means the
hide nav bar mode), and don't corrupt other flags in the application when the
global state changes.

Also introduces a sequence number between the app and window manager, to avoid
using bad old data coming from the app during these transitions.

Change-Id: I40bbd12d9b7b69fc0ff1c7dc0cb58a933d4dfb23
nternal/view/BaseIWindow.java
0c422a72edbbb0e259a123bd028eb264f5e3cd2c 05-Oct-2011 Brian Colonna <bcolonna@google.com> Added callback for Face Unlock service to poke the wakelock

Change-Id: I76a4e0f8ac0fe17e39195f4593fac7e36d7281f0
nternal/policy/IFaceLockCallback.aidl
af1ef9ed034e68db9d6c25f8b174fabf60b779d9 05-Oct-2011 Danielle Millett <dmillett@google.com> Merge "Adding a flag for if biometric weak has ever been used"
7a07219a1fc8cb94ea2694025e26f70d652ad2a1 03-Oct-2011 Danielle Millett <dmillett@google.com> Adding a flag for if biometric weak has ever been used

This flag will be used to show a tutorial screen first time it is used.
The flag is set to true once facelock has been set (via the savePassword or
savePattern when in fallback mode)

Change-Id: I43e3f876810fd32d3d5a5a285201e8054c4b3098
nternal/widget/LockPatternUtils.java
a1aebdf787443413ba870fc9203639405a5ff7bf 04-Oct-2011 Ben Komalo <benkomalo@google.com> Merge "New PIN unlock screen layout."
c8fb532d456b009e61d38e919277e00939cf894a 04-Oct-2011 Danielle Millett <dmillett@google.com> Fix 5405210: DevicePolicyManager doesn't allow Face Unlock

If Face Unlock is currently enabled when the device policy manager is installed
it now forces the user to choose a new acceptable lock type

Change-Id: I725e923240538df3f706251670bf497857d2a25f
nternal/widget/LockPatternUtils.java
cb3521e3bb3615069f1c397219b934d200c59757 04-Oct-2011 Jim Miller <jaggies@google.com> Fix 5185505: allow facelock to be enabled by a setting.

This allows face recognition to be enabled through Settings.Secure,
so we can test on selected devices.

Change-Id: I7f832cafd6a98f4289d618bc8924cd467706b778
nternal/widget/LockPatternUtils.java
51ea88a86e5cf418e956b199de35658f0a5fd623 03-Oct-2011 Ben Komalo <benkomalo@google.com> New PIN unlock screen layout.

Moves "OK" to the right and moves backspace up to beside the text field.

Bug: 5255976
Change-Id: I1b97ee108c9f10f11e5feb361810150bd6dbc776
nternal/widget/PasswordEntryKeyboardHelper.java
fee5cb54af9c86c045f1cb5d129c2cc395fe56db 04-Oct-2011 Danielle Millett <dmillett@google.com> Merge "Reworked biometric weak check functions"
58396984ef49080d5550919130fc0d869ccf840b 30-Sep-2011 Danielle Millett <dmillett@google.com> Reworked biometric weak check functions

Renamed isBiometricEnabled to isBiometricWeakInstalled. This function
now checks if the system property is set, the facelock package is
installed, and if the phone has a front facing camera. It no longer
checks if facelock is currently set as the unlock method.
Added isBiometricWeakInstalled checks to all cases where facelock is used
in LockPatternKeyguardView

Change-Id: Ia86a7ad6118101c6aab90ffb2ee9c42bf2548149
nternal/widget/LockPatternUtils.java
f8419a0299680ed580975b0fcb758990b4367db8 03-Oct-2011 Adam Powell <adamp@google.com> Fix bugs around overlay action modes.

Multiple focusable windows cause undesired behavior around selection
modes. TextView isn't sure how to behave when it loses window focus
with regard to selection handles and action modes need to be focusable
for WebView find on page since it uses an EditText as a custom view.

For now:

* Use a layered window decor for overlay action mode when there is no
action bar requested. This eliminates an extra window and avoids the
issue described for full-screen UIs.

* Disable WebView's find-on-page mode when the action mode's UI will
not be focusable. This only affects WebViews in floating windows.

Also remove the "Text Selection" title for WebView's selection mode at
UX's request, as it is inconsistent with TextView's selection mode and
the string does not fit on phones in portrait even on wide
devices. This now uses the same mechanism used in TextView to decide
whether to use title text.

Change-Id: I80caeecea9b47728cf26bb0a388153ca0bdeafe1
nternal/view/StandaloneActionMode.java
3553c296c0e0951a150f1783b2d0ff0d4bfe06cd 30-Sep-2011 Steven Ross <stross@google.com> Moving fallback check code to Settings

Change-Id: Ife924771d7bfedc6eccc6817172a699569560025
nternal/widget/LockPatternUtils.java
329979c9e6cecbcec470ec6f3ac41da82ca58d3f 28-Sep-2011 Steven Ross <stross@google.com> calling back SetupFaceLock to clean up temporary gallery

This is done when the backup lock is complete or canceled.
If successful, the permanent gallery is replaced with the new one.
If canceled, the temporary gallery is deleted

Also deletes the main gallery if the lock type is changed from facial recognition

Change-Id: Id1ce804dec6b71b6410af53c050ad265c4cad5b0
nternal/widget/LockPatternUtils.java
8917838b533c97dfd391371bfe3eaa811c3cd3b7 29-Sep-2011 Adam Powell <adamp@google.com> Merge "Fix bug 5386180 - Wire up action bar home/up for dialogs"
915ce0d917fecd14e9b8b0caa4b01e72f3e0db11 29-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5386180 - Wire up action bar home/up for dialogs

Action bars in dialogs are largely an undocumented "feature" but they
do work - with the exception of this since it previously relied on the
host being an Activity. Make it work.

Change-Id: I52ae24c3bfdd9766e4c0f035183e7f148a4e0162
nternal/widget/ActionBarView.java
267cb2b284626f910cf64352bfc494d0f8d3dc42 26-Sep-2011 Brian Colonna <bcolonna@google.com> Fix 5323545 - FaceLock no longer appears when taking a call

Prior to this fix if the screen was off and a call was received, the
onScreenTurnedOn() callback would bring up the FaceLock service,
which would cover the phone interface. It now requires the call state
to be CALL_STATE_IDLE to start FaceLock. When the phone interface
closes, the user is left at the backup lock screen. Bringing FaceLock
up after a call ends does not seem like the correct thing to do.

While working near the FaceLock callback code, the sleepDevice()
callback was removed because it is no longer used (Fix 5327896).

Some cleanup was also done with regards to KeyguardViewManager.
FaceLock calls were being made from the KeyguardViewManager in
onScreenTurnedOn() and onScreenTurnedOff() via an interface to
LockPatternKeyguardView. This level of indirection was removed
because it can just be handled inside of the corresponding calls
in LockPatternKeyguardView. Likewise the FaceLock functionality
inside of hide() in KeyguardViewManager is now in
onDetachedFromWindow() in LockPatternKeyguardView. Overall this
is much cleaner, especially considering interfacing through
KeyguardViewBase was a bit of a hack.

Patch Set 2:

- Now using KeyguardUpdateMonitor to get phone state

- Removed unnecessary wrapper functions for hiding / viewing
FaceLock area
- These were really only there because at one point I was calling
them from KeyguardViewManager and the naming was confusing

- Removed if(DEBUG) from a couple of log messages that are actually
warnings that shouldn't show up and I want to know if they happen
even if I don't have DEBUG set to true

Change-Id: Id7befc47dd421156ff6cdb3aaf62fc76fe9cfad2
nternal/policy/IFaceLockCallback.aidl
a2f00da374cd0d9776bc6c4e1cf3c3def990270b 27-Sep-2011 Jim Miller <jaggies@google.com> am b4f0a9f3: Merge "Fix 5326463: rework sim state handling in lockscreen" into ics-factoryrom

* commit 'b4f0a9f3894c1f039168ad672f4aa194999c7cdd':
Fix 5326463: rework sim state handling in lockscreen
3f5f83b54fad4c797f5dbd75f050e4980e839122 27-Sep-2011 Jim Miller <jaggies@google.com> Fix 5326463: rework sim state handling in lockscreen

Previously it was possible to get an inconsistent state because there
were two paths that updated the lock screen sim state. This reworks
the data flow to ensure the same path is always used to update the state.

KeyguardUpdateMonitor now correctly updates the entire state of the callee
whenever a new callback is registered.

In addition, KeyguardUpdateMonitor now caches the phone state in order
to avoid a round-trip binder call in updateEmergencyCallButtonState().
This avoids a condition that could make lockscreen unresponsive while
updating the emergency call button state.

KeyguardStatusViewManager also ensures the TransportControlView is
hidden when created to ensure we don't inappropriately update the carrier
line while waiting for the first callbacks to update the status lines.

Change-Id: I6b3975b703a7d90bac8d0fe29fbc0f1d9c5e0e7d
nternal/widget/LockPatternUtils.java
630a1712168f402653039e368259cb9480454fa8 26-Sep-2011 Jeff Sharkey <jsharkey@android.com> Overlay to configure data usage network types.

Specify which network types should be counted when computing data
usage totals.

Bug: 5361005
Change-Id: I830caed1a29199892d209a692b50f8b3e144cafe
nternal/util/ArrayUtils.java
296296caf65ef79218df473ad79d6f2185d3f0e4 25-Sep-2011 Brandon Keely <lbk@google.com> Merge "Avoid double-ping when tapping outside the handle."
72ec81441a9f2595774e3ea04616f8ff5bd6d7dd 24-Sep-2011 Brandon Keely <lbk@google.com> Avoid double-ping when tapping outside the handle.

Change-Id: Iccab649e075fc86a860c1ce6e8df173e9968bef2
nternal/widget/multiwaveview/MultiWaveView.java
275702c2f47ed87ab642462530092d9777f32ecd 24-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5355889 - Search action showing up in the menu dropdown in
spite of search actionview being expanded

Make sure that menu items with an expanded action view don't show up
in list menus presenting the rest of the menu.

Change-Id: I8c7b4e184a9d3ea2457543d0b8b36bc8e7068052
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/ListMenuPresenter.java
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuPopupHelper.java
a05aba9c506cd12a753c53e060c289095c3477e9 23-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5341139 - bottom bar stays if app wants to handle orientation
change

Let action bars move between split/unsplit mode on configuration
changes if set to split when narrow.

Change-Id: I13f5115a65247cb1878ee823493ca8e2b6ba4cf6
nternal/widget/AbsActionBarView.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
c56c92013c0acfa4517ed5d36d8aa78bc21452ae 23-Sep-2011 Brandon Keely <lbk@google.com> Merge "Make LockScreen ping() on a miss."
b48ca1f1ab8cf77db337d6f2bc8586cc172ab6f8 23-Sep-2011 Peter Ng <petergng@google.com> am dd33bf0e: Merge "Fix 5355659: Minor tweak to wave ping radius in MultiWaveView." into ics-factoryrom

* commit 'dd33bf0ebbde9aa702d039b6b9d5f06ac0a69dfb':
Fix 5355659: Minor tweak to wave ping radius in MultiWaveView.
a0c7a5765dbbd255f9a122ba8829ca44032acde0 23-Sep-2011 Adam Cohen <adamcohen@google.com> am 08ee7fa4: Merge "Fixing emergency dialer flicker on lock screen (issue 5314293)" into ics-factoryrom

* commit '08ee7fa463aee5e83f77789e9a99f17a34ab68b4':
Fixing emergency dialer flicker on lock screen (issue 5314293)
83227a2d067abd4b276289f62dc126dc3174ee10 23-Sep-2011 Justin Ho <justinho@google.com> am 31b638d4: Merge "Fix 5355659: Change chevron visuals, timing, and animated positioning" into ics-factoryrom

* commit '31b638d40342fc9e3198f9e7f8dffaf55049c9e1':
Fix 5355659: Change chevron visuals, timing, and animated positioning
fb708a1a6cdca91375b5d8a21b0c7001763d6119 23-Sep-2011 Jim Miller <jaggies@google.com> Fix 5355659: Minor tweak to wave ping radius in MultiWaveView.

Change-Id: Ib85c9d375e26897ce87b41addfaba503d9430f18
nternal/widget/multiwaveview/MultiWaveView.java
08ee7fa463aee5e83f77789e9a99f17a34ab68b4 23-Sep-2011 Adam Cohen <adamcohen@google.com> Merge "Fixing emergency dialer flicker on lock screen (issue 5314293)" into ics-factoryrom
ce6eb1f5f2b4dae3f4b487f6da579149f42a8b4b 21-Sep-2011 Jim Miller <jaggies@google.com> Fix 5355659: Change chevron visuals, timing, and animated positioning

Change-Id: I55e34496cc1eb4ace60b6d1ccbdb894035bca6e2
nternal/widget/multiwaveview/MultiWaveView.java
ebcd6bb1b9ac5f898621ba25c37f2e3ccd2ff33b 22-Sep-2011 Adam Cohen <adamcohen@google.com> Fixing emergency dialer flicker on lock screen (issue 5314293)

Change-Id: Ia9bf4acb84923e200b89ee55fc53bc92877001cf
nternal/widget/LockPatternUtils.java
8dcd571b89580ada6b557fc5e72010fa9696cf4e 22-Sep-2011 Brandon Keely <lbk@google.com> Make LockScreen ping() on a miss.

Change-Id: Ib0cd12f40a6027e8c950dd4bdd3d5a5210b049ac
nternal/widget/multiwaveview/MultiWaveView.java
823f074a73cfc23c40a7b576c71daa096ee9ed6a 22-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5300621 - Share menu disappears in gallery

ActionProviders (or action views) unfortunately had no way to report
that they had opened a sub-UI that would affect menu visibility
listeners used to hide action bars when not in use. This caused the
Gallery UI to hide its action bar when the share popup was open.

Add hidden API (to be made public later) to ActionProvider that can be
used to inform the menu system that a sub UI has opened or
closed. Account for this in menu visibility callbacks. Fix
ShareActionProvider to use this when its popup windows open and close.

Fix a regression where submenus were not properly reporting visibility
changes.

Change-Id: Ia6f45fb463ad106105c40d01f141c2e5c8b96f78
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/IconMenuPresenter.java
eb060254a0b7aa42ab05ed6539156c3084ec1908 21-Sep-2011 Jean-Michel Trivi <jmtrivi@google.com> am 9c43016b: Merge "Bug 5045498 Keep track of RemoteControlClient play state change time" into ics-factoryrom

* commit '9c43016b52afa855156aac2dc81a2bbe1e4ab436':
Bug 5045498 Keep track of RemoteControlClient play state change time
68622396b62f9084781add1e12f4d513b633ab54 19-Sep-2011 Jean-Michel Trivi <jmtrivi@google.com> Bug 5045498 Keep track of RemoteControlClient play state change time

Store the time at which a RemoteControlClient changes it playback
state, and send that time to the IRemoteControlDisplay.
This change will enable displays to implement strategies such as
timeouts (e.g. to not display transport controls for clients which have
been paused or stopped for a certain amount of time).

Change-Id: I902882500565743d455d56f6000efaf612cbe0a9
nternal/widget/TransportControlView.java
dede70744ab53c81cd650a60c687150146d0ba6b 20-Sep-2011 Jean-Michel Trivi <jmtrivi@google.com> am 6c038506: Merge "Fix bug 5300223 Lockscreen should recycle bitmaps" into ics-factoryrom

* commit '6c03850616a6e87de3e1943e47605cc5ebb20e2b':
Fix bug 5300223 Lockscreen should recycle bitmaps
01d96bd2afdcff866e0e1010eb7c88e101d0f6fa 19-Sep-2011 Jean-Michel Trivi <jmtrivi@google.com> Fix bug 5300223 Lockscreen should recycle bitmaps

When receiving a new bitmap to display, the lockscreen should
recycle the old bitmap (if any).

Change-Id: Ic4f65a797dfe7e3cae7a0559f6333cc99e2ae1e7
nternal/widget/TransportControlView.java
b3e6eab16153c28a30525a7c26fb7a153a5548f4 19-Sep-2011 Jean-Michel Trivi <jmtrivi@google.com> am 2f153169: Merge "Bug 5300223 RemoteControlClient uses PendingIntent for media button events" into ics-factoryrom

* commit '2f153169594249738d63aa6e2897d257f6b7d71e':
Bug 5300223 RemoteControlClient uses PendingIntent for media button events
f0cff0456258478ba768097f73d4367ab67fd7a3 15-Sep-2011 Jean-Michel Trivi <jmtrivi@google.com> Bug 5300223 RemoteControlClient uses PendingIntent for media button events

Update the implementation of the RemoteControlClient / Display
feature rely on PendingIntent as provided in the construction
of the RemoteControlClient instance.
The ComponentName that describes the target of the media button
events is set as the target of the Intent from which
a PendingIntent is constructed.
This ComponentName is still saved in the stack for persisting
the last media button event receiver.

This CL also updates the lockscreen IRemoteControlDisplay
implementation to use the PendingIntent supplied by the
application when sending transport control events. A (good)
side effect of doing this is that intent will be directly
targeted at the application.

Restoration of the media button event receiver
after reboot is not fully functional yet.

Change-Id: I2be82f2839e9dee1de02512437b3fb41cc386cde
nternal/widget/TransportControlView.java
fd4d90b8204d9a4e2ab8ce4974019b8d81287ad8 16-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> am 4e3bee76: Merge "MiltiWaveView accessibility improvement." into ics-factoryrom

* commit '4e3bee760a7f00e6ef3c89b937558df1ee6fcda0':
MiltiWaveView accessibility improvement.
2a671ac905e97d108e53e11856b01356f9248cc8 16-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> MiltiWaveView accessibility improvement.

Now hover events behave s motion events in touch exploration mode.
The use no longer needs to find the handle and tap + hold to engage.
It is enough to move on top of it.

Now the handle is engaged, i.e. can be dragged, when the user passes
on top of it for both accessibility enabled and disabled.

bug:5253968

Change-Id: If70b44cb6db8a38432216b46ecddefb3e2bc3825
nternal/widget/multiwaveview/MultiWaveView.java
247d8b08b2618c33a4ec1be974829c033c9b909f 15-Sep-2011 Danielle Millett <dmillett@google.com> Merge "isPasswordEnabled and isPatternEnabled return true if used as backup method"
98a4f7e7e12effb78b3d1035e5a670ccbbf5bca1 03-Sep-2011 JP Abgrall <jpa@google.com> NetworkManagement SocketTagger: Migrate QTagUid support to JNI.

* Instead of javaland trying to write commands to
/proc/net/xt_qtaguid/ctrl
use the libcutils/qtaguid.c support via JNI.
* Get rid of tagToKernel() handled by qtaguid library.

Requires libcutils changes from c/132538/

Change-Id: I9de5b3fa4a596c56835024c6d376769a0eea7db1
erver/NetworkManagementSocketTagger.java
93578af23ecfb8f5b6001346d63c6214cdec5d17 15-Sep-2011 Jeff Brown <jeffbrown@google.com> Merge "Velocity Tracker II: The Revenge of Velocity Tracker Bug: 5265529"
b59ab9f41faafb358afb4f951de96f34a656e0b4 14-Sep-2011 Jeff Brown <jeffbrown@google.com> Velocity Tracker II: The Revenge of Velocity Tracker
Bug: 5265529

Rewrote the velocity tracker to fit a polynomial curve
to pointer movements using least squares linear regression.
The velocity is simply the first derivative of this polynomial.

Clients can also obtain an Estimator that describes the
complete terms of the estimating polynomial including
the coefficient of determination which provides a measure
of the quality of the fit (confidence).

Enhanced PointerLocation to display the movement curve predicted
by the estimator in addition to the velocity vector.

By default, the algorithm computes a 2nd degree (quadratic)
polynomial based on a 100ms recent history horizon.

Change-Id: Id377bef44117fce68fee2c41f90134ce3224d3a1
nternal/widget/PointerLocationView.java
86ed436b83d6b71ff00d1c3db910f2952018489e 15-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5237737 - ActionBar should fire an accessibility event when
action mode is turned on/off

Fire AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED when action modes
come and go to give an indication of UI change on the level of a menu
or dialog opening/closing.

Change-Id: Id36c6153b0722b4b6927c8d36503e8ac57c2d2b2
nternal/app/ActionBarImpl.java
nternal/view/StandaloneActionMode.java
nternal/widget/ActionBarContextView.java
bc835039994f8fe70e37041a29d21335a2e22479 14-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5307916 - legacy menu theming

Let list_menu_item_layout and legacy dialog themes tie into new list
item theming internals.

Change-Id: Ic9253a2217148df72bf22b725b32512673c3bb80
nternal/view/menu/ListMenuPresenter.java
73da5fe0feda040b200aa60fff15024ec38d7edc 13-Sep-2011 Danielle Millett <dmillett@google.com> isPasswordEnabled and isPatternEnabled return true if used as backup method

When facelock is enabled, isPasswordEnabled or isPatternEnabled will return true depending
on which one is set as the backup method. This is a cleaner way to handle things, rather than
specific cases for facelock in all the methods that call these functions.

Change-Id: Iacb802b89626dfc13f2306de1a2e622ca9b69427
nternal/widget/LockPatternUtils.java
b8440110465cf2c0071e3b838cdb02d5a21fd2a9 13-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5296851 - Silly monkeys.

Change-Id: Idae81d426051c2e1b00a1d1b62b505effd0a2a68
nternal/widget/ActionBarView.java
13c7197da8a16f77f6398708a6314c80cb01e0d1 08-Sep-2011 Ben Komalo <benkomalo@google.com> Revert encryption mapping for device wipes.

External storage volumes that were emulated+encrypted needed to have
their encryption mapping removed so that it doesn't try to encrypt the
volume after formatting them.

This just wires through an argument through vold, and assumes that vold
will do the right thing even if there is no encryption mapping set.

Bug: 5017638
Change-Id: I858fae3d12cb415bc34637f520f71220ad9daaad
nternal/os/storage/ExternalStorageFormatter.java
4f4ed38a8852bcf45fbec460ab61256fe98b2b40 09-Sep-2011 Jim Miller <jaggies@google.com> Merge "Fix 5185505: Add support for weak biometric sensors to lockscreen."
6edf2637e96139735df83907c221cce16d4d7eaa 06-Sep-2011 Jim Miller <jaggies@google.com> Fix 5185505: Add support for weak biometric sensors to lockscreen.

Added binder interfaces to the framework.

Change-Id: I7d55b45baa4d1600ebd2a3828e85c3357cfcfb58
nternal/policy/IFaceLockCallback.aidl
nternal/policy/IFaceLockInterface.aidl
nternal/widget/LockPatternUtils.java
425689eea2f4f208f29b944b4973981bdbeda9f5 09-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5279075 - Handle action bar config changes when action mode is active

Change-Id: I83d40d2d555b01a9e678231c4f3c5278fab959d7
nternal/widget/AbsActionBarView.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
65d570447641d1575aa59d511591402e431fdd2e 08-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5249855 - put content descriptions for action bar tabs on images

Change-Id: Iddf13e310237cffe517697b3c3ca429a1555dcbc
nternal/widget/ScrollingTabContainerView.java
156900c48b7758e57c995eaaea1479c10756ce38 08-Sep-2011 Adam Powell <adamp@google.com> Merge "Fix bug 5174277 - Trouble with Menus"
905577f6345c014fc2489a8068ea967ba8c18012 08-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5263361: Browser instance not created in application picker

The resolver activity was hiding the following activity from recents.

Also some other fixes: a little better memory use debugging, removed
some unneeded code from window manager, moved some system activities
into their own process, added some more running process information for
manage apps.

Change-Id: I66687d16989ff965d524b92dc360f37c19199717
nternal/app/ResolverActivity.java
1d07e16c9d9ecaaaf8994ad5691c4063ab31f265 08-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5174277 - Trouble with Menus

Make sure that options menu panel presenters associated with a PhoneWindow
get re-wired properly when a new menu is generated.

Change-Id: Ic06130019aec8b8edc372054c348f147d164fc5f
nternal/view/menu/ListMenuPresenter.java
35b38c044fea0d07fd062dd027ae9d4675e8dd54 08-Sep-2011 Adam Powell <adamp@google.com> Merge "Fix bug 5258435 - ActionBar.setBackgroundDrawable"
f88b915567a37c481c4c50a6cc57e1ec0e7cf50d 07-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5258435 - ActionBar.setBackgroundDrawable

Fix this call to work properly and add methods for setting
split/stacked bar backgrounds to match existing styleable elements.

Change-Id: I8c6b1c598af1110f84a9098683d8e0226daf2e27
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarContainer.java
da7caf0a3c5076203ac21092c9ea4b7215277517 07-Sep-2011 Christopher Tate <ctate@google.com> Merge "Fix backup-agent timeouts"
94e56ef3b8de6ed485546b462559ac862c10eabf 07-Sep-2011 Adam Powell <adamp@google.com> Bug 5249855 - Add support for content descriptions on action bar tabs

Add API support for supplying content descriptions on action bar tabs.
This helps accessibility in cases where no title text is shown.

Change-Id: I8fdc4c2f2b279871b9f24b0b16e5167879b22741
nternal/app/ActionBarImpl.java
nternal/widget/ScrollingTabContainerView.java
2f8dbf5722a5d18fe6c2050b2351f6dd18ea6ffc 06-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Increasing the tap radius for the handle in MultiWaveView to improve accessibility"
66b191dad09a7552d1579a4a1d57a84e27a9ddb1 03-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Increasing the tap radius for the handle in MultiWaveView to improve accessibility

bug:5253968

Change-Id: Ibe5a3a2453db1bbeaf8e818430685b48460ab06c
nternal/widget/multiwaveview/MultiWaveView.java
8e294d45570b62a39ae972b146f0023c6beb00cb 01-Sep-2011 Christopher Tate <ctate@google.com> Fix backup-agent timeouts

Away in the misty span of very-long-ago, it was suggested that spinning
a separate thread to run the backup process was wasteful, and that it
could just run it inline on the dedicated HandlerThread that the
backup manager uses for its own operations. That was indeed true,
except that the timeout management was also using delayed messages
to that handler. You see where this is going: timeouts were never
actually being processed, with the effect that a badly-behaving
app's backup agent could lock up the entire backup / restore system
until the device was rebooted.

This is bad.

Backup operations are now driven as an asynchronous state machine:
each step (init, call one agent to obtain data, send resulting
data to the transport, finalize the backup) is handled as a formal
state transition on-looper. No synchronous wait-for-completion
or -timeout is performed on any thread.

As an additional effect this greatly tightens up the serialization
and locking semantics. We no longer have to worry about an in-
flight operation involving a standalone thread spinning off on
its own; everything is on the HandlerThread and can be coherently
manipulated from that perspective.

Along the way, this CL tightens up the per-agent error handling
logic. Previously a single failed agent would abort the entire
backup process, tantamount to a transport-level failure. This could
mean that the aforesaid badly-behaving app's agent could in effect
starve out other apps whose agents were routinely showing up later
in the queue. There's some nondeterminism involved, but in practice
it could and did happen. Furthermore, the failure case would
reschedule *immediately* in this case, because the transport itself
would see that all is well and sure, why not run a backup soon?
This, as you might imagine, causes battery-life issues.

Now we note that the single agent has failed, mark it for a future
repeat attempt, and process the rest of the queue normally, pretending
success at the transport level even though we didn't actually send
any data for that app. This means that (a) we now finish running
backups for everything in the queue, (b) reschedule backups only for
those apps whose agents individually failed during this run, and
(c) perform the retry after the normal interval [typically on the
order of an hour] rather than immediately.

NOTE: this CL does not retool the restore code path, just backup.
Restore is similarly vulnerable to misbehaving apps, though, so a
future CL will address that bug vector.

Addresses bug 5074923

Change-Id: I67e3f8d06f322607881eaa4093de6d675b85ff2c
nternal/backup/BackupConstants.java
054340d0a3f242efeaf898cca38625bdcb3b4b5a 02-Sep-2011 Jeff Sharkey <jsharkey@android.com> Show statusbar clock based on lockscreen status.

Keep track of lockscreen clock visibility, and only hide statusbar
clock when one is provided by lockscreen. This fixes bug where widget
would hide all clocks.

Bug: 5242065
Change-Id: I48de98ecb956c7f22bd40b54d771c78c1a80c14c
nternal/widget/LockScreenWidgetInterface.java
nternal/widget/TransportControlView.java
ee5e77cafec2eae70890abdcc1646ed39b06eddd 02-Sep-2011 satok <satok@google.com> Make setAdditionalInputMethodSubtypes async

Bug: 5120261
Change-Id: Ic7869cfaa5361531e08d58d7dfa5ba0feab0613e
nternal/view/IInputMethodManager.aidl
94444fc56121d704bbb5a6f02954af62e3e57a94 01-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Cleaning up the accessibility of MultiWaveView"
07a047fdd632e10d29a513bf7f175e1edbbb65ab 31-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5220390 - action bar title metrics

Adjust action bar title layout metrics to match UX specs.

Refresh new metrics properly after a config change.

Change-Id: If19fad837ca2919193d4a3a8eb01c1caff68ca67
nternal/widget/ActionBarView.java
57df88bc94f9aa06450e158b5a59ec29e3fe8874 31-Aug-2011 Svetoslav Ganov <svetoslavganov@google.com> Cleaning up the accessibility of MultiWaveView

Change-Id: I13bd71670b38a917d62118ddef5ed6982c9eba99
nternal/widget/multiwaveview/MultiWaveView.java
f058340b2f1c3d8114c48581680b4294122fe371 27-Aug-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding accessibility support to the slide lock screen

bug:5210233

Change-Id: I93e876524ae6aaf75aadbe6a21c5c17d41a705f0
nternal/widget/multiwaveview/MultiWaveView.java
1c18828d20807342d37000746b18a3c1696f3b2e 09-Aug-2011 Jim Miller <jaggies@google.com> Fix 5044158: Integrate music transport control into LockScreen

This integrates a new version of TransportControlView into LockScreen
and adds plumbing to handle new AudioService events to show/hide the view
and updates the required assets for all devices.

Updated to use new AudioManager API. Since the current API only supports
one RCD, the handler now lives in TransportControlView.

Change-Id: I220d4dd760bef35bd84209adc3c5829bf5bc9a2c
nternal/widget/TransportControlView.java
9a5cc2810bbbcb0eab4579aa4131039820d92101 29-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5124021 - Menu visibility incorrect when restoring ListView
selection mode

Fix visibility of menus when action modes are initiailized early.

Fix ListView problems persisting check states.

Change-Id: Idc21036dc39259e72f0e6831a0ccb4695f8858ef
nternal/widget/AbsActionBarView.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
7bc3ca0dc52be52ecad1c0de8c62a6a4bf8141ca 27-Aug-2011 Adam Powell <adamp@google.com> Accessibility fixes for action bars

Fix bug 5220543 - fix accessibility events for action buttons

Fix bug 5224260 - fix accessibility events for home/up

Change-Id: I7d55b4819862e1eda0809da92c52ec2d97f36af0
nternal/view/menu/ActionMenuItemView.java
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/ActionMenuView.java
nternal/widget/ActionBarView.java
4bc554b37165dbee8d805a6f73ac5e946f2769ae 26-Aug-2011 satok <satok@google.com> Merge "Fix setCurrentSpellCheckerSubtype"
3cb5b39a0e63d98c4e7b47e9a5b5758e9d4024bd 26-Aug-2011 satok <satok@google.com> Fix setCurrentSpellCheckerSubtype

Change-Id: Ib42a3b4377b8700ceaf4b7e13150848464d073c1
nternal/textservice/ITextServicesManager.aidl
aa8e509ba2d22b9ba105faad3349db8d5218ee32 25-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5091886 - action bar measurement

Change the measurement order of elements in the action bar. Custom
views are now deemed more important and may truncate title/subtitle.

Change-Id: I150862f8e48b36bcbd892f49d78c2962c5001ab1
nternal/widget/ActionBarView.java
a33c4fc5bed76727f1e06e522e0136101a2304cd 25-Aug-2011 satok <satok@google.com> Add functions to enable / disable spell checker

Bug: 5057977

Change-Id: I2b27bd5f55feb305368034d7e95f83257ac4b3e6
nternal/textservice/ITextServicesManager.aidl
be3c329ebec083e5ff933bab6b6c501519ad2bff 24-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5191728 - Specialized formatting in the split action bar

Visually center a single text menu item in the split action bar even
when an overflow button is present.

Fix a bug in allocating space in the split action bar.

Change-Id: I54eff86bf35197030c9c1656ebd71297e3c8b62b
nternal/view/menu/ActionMenuView.java
ada8c4e6a3da96a795f39a1028d448eb7aebfab3 23-Aug-2011 satok <satok@google.com> Add functions to set / get SpellCheckerSubtype

Change-Id: I977326879fe201c4dee4a87da361217175eb6041
nternal/textservice/ITextServicesManager.aidl
29aae6f36e565b8f2a99f2193597b964bb800ee8 19-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4279860: previous UI flashes before showing lock screen...

...(when turning display on after recently turning it off)

Also clean up when we decide to turn the screen on to improve that
transition. There are still problems here with turning it on
before the wallpaper gets dispayed.

Change-Id: I2bc56c12e5ad75a1ce5a0546f43a845bf0823e66
nternal/widget/multiwaveview/TargetDrawable.java
67403e096e6f59b7cd18a90d0d3f5c3d17c31407 23-Aug-2011 Mathias Agopian <mathias@google.com> BLUR_BEHIND flag is not supported anymore

Bug: 5185650
Change-Id: I56541d4967b90b150a734be1bbeff696eb6a4fb3
nternal/app/ShutdownThread.java
e20c279d9a6719a7c0d8c6606c7ba1bd207db8d3 23-Aug-2011 Adam Powell <adamp@google.com> Merge "Fix bug 5198868 - Showing previous hidden options menu doesn't work"
04dc06f52a68299c0ad70fa0a9f204d99983ba2b 23-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5198868 - Showing previous hidden options menu doesn't work

Fix bad assumption in flagging action items.

Change-Id: Ic67b56195bc308e73d1564cbf1b77e41eaa4ecab
nternal/view/menu/MenuBuilder.java
76a05fefbd401b386cd8ae264037bc3c8219bb0a 23-Aug-2011 Adam Powell <adamp@google.com> Merge "Fix bug 5143392 - Add padding to left of action bar app icon to prevent icon from moving when drilling into hierarchy"
b1e2f25b7e6d20caa233113b892ec46685f08bb6 23-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5143392 - Add padding to left of action bar app icon to
prevent icon from moving when drilling into hierarchy

Fix up the layout of home/up/titles in the action bar such that showing/hiding
the "up" indicator never changes the position of the icon, logo, or title.

Change-Id: Ic2117babe3a54619a4b787d5374295955a58fb34
nternal/widget/ActionBarView.java
70e9f4bd2c044858f3c1c040ffce973351a2383a 23-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5189070 - Don't try to show overflow popups for nonexistant menus

Change-Id: I9db43211cdece81063fc1d3c3324f1e166f27b0c
nternal/view/menu/ActionMenuPresenter.java
4f36995777a4136e8e63ea51cef2ff61df48790d 20-Aug-2011 Jim Miller <jaggies@google.com> Fix 5026428: Rework unlock attempt logic with active DPM to show better messages

Prior to this change, we didn't have a mechanism to warn the user when
they were approaching the wipe data threshold dictated by active DPMs.

Here's the new flow:

- If a device policy manager is installed and sets the max
password attempts, we start warning the user when they are within
a grace period of hitting the max (currently hard-wired to 5).

- We continue to show a dialog after each continued attempt
until the user reaches 0 remaining attempts.

- We now show a message when they hit 0 so they know why their device is
being reset. The device will reboot and wipe data shortly after this final
dialog is shown.

Also increased the criteria for a pattern attempt from 3 dots to 4 dots
since the user can never set a pattern less than 4 in length. This will
greatly reduce the likelihood of a false wipe on the pattern unlock screens
without compromising security.

Change-Id: I28825ef21dfa2e2b6540e743252c6d50c41e5ad7
nternal/widget/LockPatternUtils.java
65fd251c3913fc921468a3dad190810db19eb9df 18-Aug-2011 Jeff Brown <jeffbrown@google.com> Input system bug fixes, particularly for stylus.
Bug: 5049148

Finished stylus support, including support for indirect stylus
and mouse tools.

Added TILT axis. When stylus tilt X/Y is available, it is transformed
into an orientation and tilt inclination which is a more convenient
representation and a simpler extension to the exiting API.

Touch devices now only report touch data using a single input
source. Previously touch devices in pointer mode would report
both absolute touch pad data and cooked pointer gestures.
Now we just pick one. The touch device switches modes as needed
when the focused application enables/disables pointer gestures.
This change greatly simplifies the code and reduces the load
on the input dispatcher.

Fixed an incorrect assumption that the value of ABS_(MT_)DISTANCE
would be zero whenever the stylus was in direct contact. It appears
that the correct way to determine whether the stylus is in direct
contact (rather than hovering) is by checking for a non-zero
reported pressure.

Added code to read the initial state of tool buttons and axis values
when the input devices are initialized or reset. This fixes
problems where the input mapper state might have the wrong initial
state.

Moved responsibility for cancelling pending inputs (keys down,
touches, etc.) to the InputDispatcher by sending it a device reset
notification. This frees the InputReader from having to synthesize
events during reset, which was cumbersome and somewhat brittle
to begin with.

Consolidated more of the common accumulator logic from
SingleTouchInputMapper and MultiTouchInputMapper into
TouchInputMapper.

Improved the PointerLocation output.

Change-Id: I595d3647f7fd7cb1e3eff8b3c76b85043b5fe2f0
nternal/widget/PointerLocationView.java
bfcdfaf919cdb67897a6e24afc8f14b2c810596a 19-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5174755 - Adjust action bar overflow limits for ifRoom items

Fix a bug where action menus were not updating after configuration
changes.

Change-Id: Iaeed7d924a7b8b40849fd8e1826ed1c8f4079c94
nternal/view/menu/ActionMenuPresenter.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
82f24e82e125d9dfbed072d0d9329b90e6d9cb12 19-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5186341 - Double Action bar when displayOptions is 0

What does it mean??

Change-Id: I7978b8fb6877da6178f8db89ec085f1402acf743
nternal/widget/ActionBarView.java
2f5485587bfe99a56ab8d7b65ead3deb404d178e 19-Aug-2011 Adam Powell <adamp@google.com> Merge "Fix bug 5186160 - ActionBar.hide() doesn't hide the split ActionBar if called before onResume()"
993a63abb9ffa95de16f2788fccb440805d1ecb7 19-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5186160 - ActionBar.hide() doesn't hide the split ActionBar if
called before onResume()

Change-Id: I2c21f2bfb3314426d9dfd3b874f593f375c7838a
nternal/app/ActionBarImpl.java
23f4cc0353615107cc9c19fda9cf96ddd43266e2 18-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5099037 - No delete option when multiple videos are selected

Fix some bugs related to how action item slots are allocated in menus.

Fix some padding/margins in ActivityChooserView.

Change-Id: I12096b0165daca902c5bc8e24c1e8d54a35e9557
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuItemImpl.java
7a2424d0412584798f6de60217f7c873bc1cef5b 18-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5183775 - Action bar custom layouts with default gravity misbehave

Change-Id: I314822ed9617d2c1de55e1f3238f1ca8899393f3
nternal/widget/ActionBarView.java
0197d825f15844e51b91a0006d411ecb06350641 18-Aug-2011 JP Abgrall <jpa@google.com> Merge "core/java NetworkManagement: Don't untag sockets willy-nilly"
e8c88e6f764a77d94b0051ea169a82a61fcc0d0e 18-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5163456: logspam/tight loop in BatteryStatsImpl

No longer use the old history code.

Change-Id: I878ffe16e0014453c46db6a4f7228a81468d8cb9
nternal/os/BatteryStatsImpl.java
aad47fd78a86dd1279fa555716e252685837ac50 18-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5179524 - ActionBar custom view inflation doesn't catch layout_gravity

Change-Id: Ice5fd9da268cff64fc14acca384b249c252db5c9
nternal/widget/ActionBarView.java
f35d049b9953fbd1cd24887bac57b5e148c97846 17-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5168889 - action bar not respecting return codes of onCreate/Prepare menu

Change-Id: If28630cb21e74bde7a2474ce060078ea30170b9d
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/BaseMenuPresenter.java
nternal/widget/ActionBarView.java
36bd9844f88cd0eb90e94b45bf5b4aa27d4d5628 17-Aug-2011 JP Abgrall <jpa@google.com> core/java NetworkManagement: Don't untag sockets willy-nilly

Tagging is conditional on having some useful info to tag.
But untagging had not such restriction leading to unnecessary kernel
calls that just fail with EINVAL.

b/5165619

Change-Id: Idd4b1dc45db04429f85e3ba37656640a8d33046a
erver/NetworkManagementSocketTagger.java
3bb421d5b85a8a99c408d16e4f80163a53bc0505 17-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5165771 - Gmail: crash on launch from notifier

Change-Id: Iec9c189bd3fa5e62bc8eb520ca2a1dd4db106036
nternal/view/menu/ActionMenuView.java
64414d14a2e0c953774c154cfb4764c632f58e9e 16-Aug-2011 Adam Powell <adamp@google.com> Merge "Fix bug 5167078 - Show a 'cheat sheet' popup for icon-only action buttons"
7b5e9e6c1c7098b6d7b2c6f9ab0c316f0f66109e 16-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5167078 - Show a 'cheat sheet' popup for icon-only action buttons

Action buttons: now less confusing!

Change-Id: I5c96effa64a2cdde22b71523b99ab489869fc245
nternal/view/menu/ActionMenuItemView.java
b51645ee2c7608f0b1a50d09f203cf5323b0b02d 16-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Foreground/background network stats using sets."
9e58df5d40e345a3b5ade8bebae6bc61421ca06a 16-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5049406 - ActionBar UP with no home icon, tap highlight looks broken

Measure the action bar title layout to consume the full height of the bar.

Change-Id: Iaf0521c5c80b5bd7ceb7f756e50248f6a27fc1fc
nternal/widget/ActionBarView.java
b5d55e302d2253e4bfb233ea705caf258cdc4cb9 11-Aug-2011 Jeff Sharkey <jsharkey@android.com> Foreground/background network stats using sets.

Teach NetworkStats about "counter sets" coming from kernel, and use
them to track usage in foreground/background. Add AID_NET_BW_ACCT to
system_server so it can control counter sets.

Move to composite key of NetworkIdentitySet, UID, set, and tag when
recording historical usage. Persisting still clusters by identity,
since that is heaviest object.

Request async stats poll during systemReady() to bootstrap later
delta calculations. Reset kernel counters when UID removed. Update
various tests.

Bug: 5105592, 5146067
Change-Id: Idabec9e3ffcaf212879821515602ecde0a03de8c
nternal/os/ZygoteInit.java
erver/NetworkManagementSocketTagger.java
14b7e2c1688914ba8b6854738981337d7c0653be 12-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5078498 - Icons jump around on split action bar

Revise measurement and layout code for the lower menu on a split
action bar.

Fix some metrics in the action mode close button and in button bars.

Change-Id: I76215e28ae3b0199162dedd32794b25c9e38a346
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/ActionMenuView.java
7c0d8472d003334fafd14f7c1e7d95dbd213088b 13-Aug-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix some crashes that are happening in the system process."
f2b096194483c614b0f427b13412b614ccc40070 12-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5095223 - ICS action bar incorrectly resizing app icons

Remove experimental auto-mipmapping of icons.

Change-Id: I326ca396331a050985200b2ecf0d892474262916
nternal/widget/ActionBarView.java
8e8d65ff5fdef12c6af3d003dfef19aadc39bea9 12-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix some crashes that are happening in the system process.

- When shutting down, if the screen goes to sleep there is code
that tries to do a notifyAll without holding the lock:

java.lang.IllegalMonitorStateException: object not locked by thread before notifyAll()
at java.lang.Object.notifyAll(Native Method)
at com.android.server.am.ActivityStack.checkReadyForSleepLocked(ActivityStack.java:776)
at com.android.server.am.ActivityStack$1.handleMessage(ActivityStack.java:282)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at com.android.server.ServerThread.run(SystemServer.java:603)

- If an invalid Uri object is sent to the system process it can crash because
the Uri class throws an assertion while unmarshalling. Change this to an
IllegalArgumentException so it gets sent back to the caller:

java.lang.AssertionError
at android.net.Uri$PathPart.readFrom(Uri.java:2224)
at android.net.Uri$HierarchicalUri.readFrom(Uri.java:1106)
at android.net.Uri$1.createFromParcel(Uri.java:1689)
at android.net.Uri$1.createFromParcel(Uri.java:1681)
at android.content.IContentService$Stub.onTransact(IContentService.java:53)
at android.content.ContentService.onTransact(ContentService.java:120)
at android.os.Binder.execTransact(Binder.java:338)
at dalvik.system.NativeStart.run(Native Method)

- StrictMode can try to access the first index in the stack crawl of a stack crawl
array of length 0. Not sure why this happens, but make the code more robust:

java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
at android.app.ApplicationErrorReport$CrashInfo.<init>(ApplicationErrorReport.java:341)
at android.os.StrictMode$ViolationInfo.<init>(StrictMode.java:1978)
at android.os.StrictMode$AndroidBlockGuardPolicy.startHandlingViolationException(StrictMode.java:1097)
at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1068)
at libcore.io.BlockGuardOs.read(BlockGuardOs.java:137)
at libcore.io.IoBridge.read(IoBridge.java:426)
at java.io.FileInputStream.read(FileInputStream.java:179)
at java.io.InputStream.read(InputStream.java:148)
at com.android.internal.os.ProcessStats.readFile(ProcessStats.java:804)
at com.android.internal.os.ProcessStats.getCpuSpeedTimes(ProcessStats.java:564)
at com.android.internal.os.ProcessStats.getLastCpuSpeedTimes(ProcessStats.java:545)
at com.android.server.am.ActivityManagerService.updateCpuStatsNow(ActivityManagerService.java:1470)
at com.android.server.am.ActivityManagerService.batteryNeedsCpuUpdate(ActivityManagerService.java:1522)
at com.android.internal.os.BatteryStatsImpl$MyHandler.handleMessage(BatteryStatsImpl.java:110)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1302)

(Also fix this code to not cause strict mode to trigger at all, because there is
no need, because this is just reading stuff from /proc.)

- The system seems to crash during boot if it thinks it needs to rotate
the screen, when it is trying to take the freeze snapshot way too early.
There is no need to freeze the screen during boot or if the screen is off:

java.lang.NullPointerException
at android.view.Surface.init(Native Method)
at android.view.Surface.<init>(Surface.java:256)
at com.android.server.wm.ScreenRotationAnimation.<init>(ScreenRotationAnimation.java:91)
at com.android.server.wm.WindowManagerService.startFreezingDisplayLocked(WindowManagerService.java:8758)
at com.android.server.wm.WindowManagerService.startAppFreezingScreenLocked(WindowManagerService.java:3971)
at com.android.server.wm.WindowManagerService.startAppFreezingScreen(WindowManagerService.java:4003)
at com.android.server.am.ActivityRecord.startFreezingScreenLocked(ActivityRecord.java:515)
at com.android.server.am.ActivityStack.ensureActivityConfigurationLocked(ActivityStack.java:3997)
at com.android.server.am.ActivityManagerService.updateConfigurationLocked(ActivityManagerService.java:12535)
at com.android.server.am.ActivityManagerService.updateConfiguration(ActivityManagerService.java:12439)
at com.android.server.wm.WindowManagerService.systemReady(WindowManagerService.java:6161)
at com.android.server.ServerThread.run(SystemServer.java:521)

Change-Id: I85062bb5f6b0909a0f52feedaa75e7611d9d7fbd
nternal/os/ProcessStats.java
b0e217eacb11b6225d6156cf930a9599d2ba6b41 12-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5159073 - actionbar titles don't seem to be drawing anymore

Change-Id: I2e617438134f1ff9f192d861655b69e4790593fe
nternal/widget/ActionBarView.java
0642fed2a226c2ccc85ca1058bb875d3077a41ef 12-Aug-2011 Adam Powell <adamp@google.com> Merge "Fix bug 5075761 - Visual assets: CAB states"
9ca705e323cb737a07a667c1e86bac702f11a29c 12-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5075761 - Visual assets: CAB states

Integrate new assets for the contextual action bar (action modes).

Change-Id: I8439196f8b7466ce862e1c21a34b7ae1abf88f36
nternal/widget/ActionBarContextView.java
71f34174e977bac7283696d45c17baaa4f1f1503 12-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5156213 - Fix title visibility states wrt expanded action views.

Change-Id: I20b5c5ad8112bec17e4cb5d6e568f47005a4e731
nternal/widget/ActionBarView.java
af6b97ebe0e6a67d1691c4d7789c7bc312c1e13e 12-Aug-2011 Adam Powell <adamp@google.com> Fix action bar tabs collapsing when they shouldn't.

Change-Id: Ib0a91722b580802d2b5e3b07c4e57397665a3394
nternal/widget/ActionBarContainer.java
nternal/widget/ScrollingTabContainerView.java
9cc07c3939581909bf7de42df0215a65fab7b472 11-Aug-2011 Adam Powell <adamp@google.com> Merge "More fun with action bars and themes!"
f242368f38b21479763d6e07174547c610a51c5c 11-Aug-2011 Adam Powell <adamp@google.com> More fun with action bars and themes!

Fix bug 5144738 - Allow user to define pressed state asset for action
bar. Added android:actionBarItemBackground theme attribute. This
allows themes to define item pressed states for the action bar
independent of the standard selectableItemBackground.

Fix bug 5145416 - Custom view in action bar should use themed context
when inflating resource ID. Also applies to tab custom views.

Fix bug 5135550 - Tab divider height / Color should match spec. Added
actionBarDivider theme attribute. Similar to actionBarItemBackground
above, this allows apps to maintain proper contrast when the bar has a
different contrast profile than the rest of the activity.

Fix bug 5154778 - Theme.Holo.Light.DarkActionBar in themes.xml and
search_bar.xml are still referencing the deprecated title_bar_shadow
when we should be pointing to ab_solid_shadow_holo

Change-Id: I5ef0084de28a7c2d2fa02ae1752884feab0f8523
nternal/app/ActionBarImpl.java
e342551e56e422a4409caaa51d225e750eb7c7b0 11-Aug-2011 Kenny Root <kroot@google.com> Merge "Better errors from copyResource"
f5645cbafe7eed33452d888f16726bee8a0cd9fe 11-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5122319 - When action bar tabs run out of space they should
collapse in to a spinner.

When tabs are not given the option of dropping to their own row,
collapse them into a spinner when they would measure too large to be
visible all at once.

Fix bug 5095167 - zombie tabs return when they shouldn't when activity
handles its own orientation changes

Change-Id: I074419d99a22aa5dd1cbc00a66e600ec5cb0b54a
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarContainer.java
nternal/widget/ActionBarView.java
nternal/widget/ScrollingTabContainerView.java
f5121a9b802c6ddd3661ed5cae602380dbe67090 11-Aug-2011 Kenny Root <kroot@google.com> Better errors from copyResource

Copy resource would fail without a good error code when the file
couldn't be found during copy.

Also destroy the target container ID during move operations since it
might exist. If the copy failed due to it existing, it would get
destroyed anyway. This way the user has a chance to have a good outcome
the first time.

Bug: 3375299
Bug: 5113898
Change-Id: I00559833f0801bc50e7cc031b462495e37a6b4ab
nternal/app/IMediaContainerService.aidl
faa6ffa484f6f2a334c8bf2c7a9dc693a61608f3 08-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5116434 - Bookmark label is not highlighted.

Let the action bar tab strip handle its own height changes.

Change-Id: I9b79702c757c736ef7872a43316965cea1a5cc97
nternal/app/ActionBarImpl.java
nternal/widget/ScrollingTabContainerView.java
7d608423b721e0153f37bfd5eba78fcd2489562d 08-Aug-2011 Dianne Hackborn <hackbod@google.com> Move OOM kernel settings to activity manager.

The activity manager now take care of plugging the correct settings
into the OOM killer in the kernel. This is a lot cleaner because
it is really central to how the activity manager works, and nobody
else cares about them.

Taking advantage of this, the activity manager computes what it
thinks are appropriate OOM levels based on the RAM and display
size of the device.

Also a small optization to the package manager to keep a binding
to the package install helper for a bit after done using it, to
avoid thrashing on it.

And some new APIs that are now needed by Settings.

Change-Id: I2b2d379194445d8305bde331c19bde91c8f24751
nternal/util/MemInfoReader.java
0dc8bb25d21963528bfd0fc05ccbc01663b9fc5a 05-Aug-2011 satok <satok@google.com> Merge "API cleanup for the spell checker framework"
f1eaf7f4394fa0dc3d788f3f7816f686f514fca5 05-Aug-2011 Jim Miller <jaggies@google.com> Merge "Fix 5045008: replace "ring/silence" target in LockScreen with camera app"
be8d1cf1ac9fc514fb0cc2e8ef4a85beb0197fa0 05-Aug-2011 Jim Miller <jaggies@google.com> Fix 5045008: replace "ring/silence" target in LockScreen with camera app

This change replaces the ring/silence target with a camera target. It
is disabled and falls back to the old behavior when any device policy
disables the camera.

Updated with latest icons.

Change-Id: I2374eba08f85ff1d1b0bad2859efa30bb166fb60
nternal/widget/multiwaveview/MultiWaveView.java
d6d0628051f259d03367fe4e71af7137f9184142 05-Aug-2011 Irfan Sheriff <isheriff@google.com> Merge "Rewrote DnsPinger - now is async and concurrant"
b491877331cab95b8d2f9191a674476f826f92a5 04-Aug-2011 Adam Powell <adamp@google.com> Merge "Fix bug 5121406 - ActionBar.setLogo"
29764eab44e195ac6c2641add74b2c44c008e5c4 04-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5121406 - ActionBar.setLogo

Make the resource ID version of setLogo work.

Change-Id: I0a710b714c9fd10bc3063a8ec95e59391ba4d4e0
nternal/widget/ActionBarView.java
b234636105317942bdf2daf4f5581c2218847084 04-Aug-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: move away from the VPN permission."
d2fe04b71a89a0608eb7c67065dead2a1f540122 22-Jul-2011 Isaac Levy <ilevy@google.com> Rewrote DnsPinger - now is async and concurrant

Change-Id: I93e1374ae857832935202614e34ce18f040fcfc7
nternal/util/Protocol.java
nternal/util/StateMachine.java
5357806980269d846a15c845a6fcc0384fb18860 03-Aug-2011 satok <satok@google.com> API cleanup for the spell checker framework

Bug: 5110151

- Add a bundle to an argment of newSpellCheckerSession
- Expose SpellCheckerSessionImpl in SpellCheckerService
- Fix function names
- etc

Change-Id: Ia8ec783b7b4d5fcd18389854b445fc10fc502297
nternal/textservice/ISpellCheckerService.aidl
nternal/textservice/ISpellCheckerSession.aidl
nternal/textservice/ITextServicesManager.aidl
cf27a3ecc6782b6c86f720b1df2459a160fde81a 04-Aug-2011 Jim Miller <jaggies@google.com> Merge "Fix 5044158: layout and asset work on lockscreen PIN mode"
01704e76fa52805f6e739fc0d8e63f403e74bfa8 04-Aug-2011 Kenny Root <kroot@google.com> Merge "Better error codes for missing files"
1ebd74acf9977daa42133507e970dab88e08f0ef 04-Aug-2011 Kenny Root <kroot@google.com> Better error codes for missing files

Make sure that files that don't exist aren't returning bogus 'out of
space' error codes.

Add some Javadoc so I can remember what each thing does in an IDE.

Add copyright header to NativeLibraryHelper

Bug: 3375299
Change-Id: Iac46019160921daca65b21d38897e5165063316e
nternal/content/NativeLibraryHelper.java
nternal/content/PackageHelper.java
fcc1b41b663c1a0cb551344c4a16a5ad9ce36d60 04-Aug-2011 Chia-chi Yeh <chiachi@android.com> VPN: move away from the VPN permission.

VpnBuilder will be replaced by VpnService in the next change.

Change-Id: I2dea67a1616b74d17b372f7b214d207f1617198e
nternal/net/VpnConfig.java
79a02b15850347a2e932272b21b14c0c2b3faf50 30-Jul-2011 Jim Miller <jaggies@google.com> Fix 5044158: layout and asset work on lockscreen PIN mode

Fix PIN entry layout issues on hdpi, large-mdpi and xhdpi devices where emergencyCallButton was partially off-screen.

Copy button assets from latinIME for PIN screen.

Make PIN keyboard horizontal and vertical gaps configurable.

Change-Id: I415fcd83f02971b987c3df418d4114b8e1ab3945
nternal/widget/PasswordEntryKeyboardHelper.java
6b0e97c7c48cf9446c7d4bc1b37d4c37d78433b0 03-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5093394 - Double SearchView!! What does it mean!?

It means we should collapse any expanded action items when we
clear out all items from a MenuBuilder.

Change-Id: I59cacd862a89b3a50c61b02c64b1ea71907af83f
nternal/view/menu/MenuBuilder.java
nternal/widget/ActionBarView.java
c3afd39c6722cd57307fd90aee405179aea77f6b 30-Jun-2011 Jeff Hamilton <jham@android.com> Remove the binder interface for LLCP.

Change-Id: Idc9631cdbcac1435e285c656948a37315e32515d
nternal/nfc/LlcpConnectionlessSocket.java
nternal/nfc/LlcpException.java
nternal/nfc/LlcpServiceSocket.java
nternal/nfc/LlcpSocket.java
nternal/nfc/NfcException.java
nternal/nfc/P2pDevice.java
nternal/nfc/P2pInitiator.java
nternal/nfc/P2pTarget.java
5b9b5a9553a0276dc6b7f1f458c8d4ed03227988 01-Aug-2011 satok <satok@google.com> Change SpellCheckerInfo IPC inputs to String

Change-Id: I4c3f3c7aa7587e3f2582b43702108fa78f37ec54
nternal/textservice/ITextServicesManager.aidl
ba39839444532af0ed3766f736582413f6d7a40b 02-Aug-2011 Dianne Hackborn <hackbod@google.com> Move ImageWallpaper to SystemUI process.

Nice to not load 4MB bitmaps in the system process.

Also, hey, with how we are now scrolling the surface instead of
the bitmap, there is no reason to keep that 4MB bitmap loaded in
to memory. So don't.

Unfortunately it looks like for some reason the VM is still
holding on to the bitmap. I'll need to figure out why. Later.

Change-Id: Ib3503756144502fc5c8d5e294248c2417c4fe8c8
nternal/service/wallpaper/ImageWallpaper.java
a63ba59260cd1bb3f5c16e395ace45a61f1d4461 20-Jul-2011 Jeff Sharkey <jsharkey@android.com> Add operation counts to network statistics.

Provide API to increment "operation counts" for a UID and tag, used
to eventually derive bytes/operation stats. Internally is stored at
network layer, but should belong at data layer. Switch profiling
to use data layer stats, which are emulated by summarizing network
layer details.

Read packet counts from new /proc/ columns and collect them into
NetworkStatsHistory. Prevent double-counting by ignoring values from
first snapshot. Watch for duplicate /proc/ entries. Update tests
to verify packet and operation counters.

Bug: 5052136, 5097392
Change-Id: I1832f65a2b8a9188f8088f253474a667c21a2f09
erver/NetworkManagementSocketTagger.java
53f2531ba7bc72489d03fd17b6ce29c811fad8b5 29-Jul-2011 Daniel Sandler <dsandler@google.com> Merge "The fullest of fullscreen modes."
6d9a14c08398c58305e831d394280830bb798ee4 29-Jul-2011 satok <satok@google.com> Merge "Fix issues in TextServicesManagerService"
df5659d3d317b5cf351baffe3e0d4876e89678bf 29-Jul-2011 satok <satok@google.com> Fix issues in TextServicesManagerService

Change-Id: I48c81226d824e8aad42e01e87fcf9a5b466d2321
nternal/textservice/ITextServicesManager.aidl
ae5a9d4a92f18b1e2888c4ae4585f9480311c8bc 29-Jul-2011 Jim Miller <jaggies@google.com> Merge "Fix 5044158: Initial pass: add music transport controls to LockScreen"
6b05d58018c2806459c121e507c005639b74aee9 18-Jul-2011 Jim Miller <jaggies@google.com> Fix 5044158: Initial pass: add music transport controls to LockScreen

Refactored all lockscreen notifications to go through new KeyguardStatusViewManager.
This is required to intercept messages originally intended for separate TextViews that
are now shown in a single view when showing the transport control view.

Refactor EmergencyCallButton to be handled by common code in KeyguardStatusViewManager.

First pass at LockScreenWidgetCallback for LockScreen "widgets" to send events back to LockScreen.

First pass at LockScreenWidgetInterface, which will be required of Views that want to be rendered on
LockScreen.

Added place-holder TransportControlView until the real one is ready and integrated it into GridLayouts.

Ensured emergencyCallButton is in all views, even if not shown since some devices may lock the user
out if certain criteria isn't met (missing SIM, etc).

Refactored layouts and removed keyguard_screen_status*.xml since layouts are all over the map and
no longer make good use of a shared layout for this.

Minor tweak to MultiWaveView to fix layout issues when placed in GridLayout where the measurement
was being calculated improperly.

Moved EmergencyCallButton to bottom of view where we can.

Removed unused Alpha keyboards from tablet password unlock layouts.

Removed unused views (status2, emergencyCallText screenLocked) from layouts and made common views have common names.

Fixed bug with MultiWave layout in landscape where array was shown in wrong orientation.

Separated clock colors for phones/tablets since they're now different.

Converted remaining phone layouts to use GridLayout.

Start routing audiomanager events to lockscreen views.

Move emergency call button handling to KeyguardStatusViewManager.

Change-Id: I480b0346cfe19aad316fea0c0aaabf8862693636
nternal/widget/LockPatternUtils.java
nternal/widget/LockScreenWidgetCallback.java
nternal/widget/LockScreenWidgetInterface.java
nternal/widget/TransportControlView.java
nternal/widget/multiwaveview/MultiWaveView.java
80df829e35d0a97f92e599d36b0b16dcc956130b 29-Jul-2011 Adam Powell <adamp@google.com> Merge "Fix bug 5079507 - ICS (phone) : ActionBar tabs don't correctly resize if activity handles orientation change"
45c0b1954d7dfa6e2590ed76b915a98ae971414c 29-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5079507 - ICS (phone) : ActionBar tabs don't correctly resize
if activity handles orientation change

Make sure that bar content height and sizing/layout parameters are
properly updated after a configuration change.

Change-Id: I886df5cd9a655ba1bd34fab2b48e8b5be67fcc32
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarContainer.java
nternal/widget/ActionBarView.java
nternal/widget/ScrollingTabContainerView.java
c07cc99ebb86787fd6006d4121b67d91d28dffe0 28-Jul-2011 Jeff Sharkey <jsharkey@android.com> Merge "Keep original DialogTitle color when resizing."
60ee25643e0a7b8841063a4e97b0f18c51807e91 22-Jul-2011 Daniel Sandler <dsandler@google.com> The fullest of fullscreen modes.

View.setSystemUiVisibility() now properly accepts a
bitfield, including:

* SYSTEM_UI_FLAG_LOW_PROFILE: "lights out mode"
(previously known, erroneously, as STATUS_BAR_HIDDEN)

* SYSTEM_UI_FLAG_HIDE_NAVIGATION: for when you need every
single pixel on a device that also has a navigation bar

These flags are painstakingly aggregated across the entire
view hierarchy and carefully delivered to the status bar
service, which in turn gently passes them along to the bar
implementation.

To really get access to the whole screen, you need to use
HIDE_NAVIGATION in conjunction with FLAG_FULLSCREEN and
FLAG_LAYOUT_IN_SCREEN. See development/samples/Overscan for
an example of how to do this.

Change-Id: I5fbfe009d9ceebbbf71db73f14a7008ea7c1d4da
nternal/statusbar/IStatusBar.aidl
88ab69780f58e4b32d497266b2ad646a4d74827b 28-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5087752 - Maintain correct contrast against action bars in
inverse-bar themes

Add the actionBarWidgetTheme theme attribute. This lets a theme
specify a wrapper theme that can be used to create views that will
end up in the action bar so that the rest of the code can ignore
differences in contrast. (e.g. the inverse action bar themes.)

Apps can use ActionBar#getThemedContext() to obtain a Context with a
proper theme for views that will end up in the action
bar. MenuInflaters generated by Activities will automatically use this
to properly theme inflated action views.

Change-Id: Ib28c82bf47c25d446cca2a63f617b8a4a0afa6b2
nternal/app/ActionBarImpl.java
5c848ce793f259f38ba8c9ce52dc3bcb360040b6 28-Jul-2011 Jeff Sharkey <jsharkey@android.com> Keep original DialogTitle color when resizing.

Change-Id: Id9d3bf565cc5660ab37037e74be63221cd638ba6
nternal/widget/DialogTitle.java
ccdd4ee44f8cfbb45b2989cca833895fcc4c4225 28-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5087980 - MenuItem#expandActionView should work from within
onCreateOptionsMenu

Initialize menu presenters early enough to respond to expanding an
action view within onCreateOptionsMenu.

Have SearchView show the IME as an async post to handle attempts to
show it while the UI is still in initial setup.

Change-Id: I77f3a94ed4397737edb5a7a15bf54993b6723f5e
nternal/view/menu/MenuBuilder.java
06a2895b58d6d8ecc3fc5dffa8c5d8c4f95216a5 28-Jul-2011 Jeff Sharkey <jsharkey@android.com> Merge "Grant AID_NET_BW_STATS to system service."
e5168930975618a2b2b3f556c6c162a8cf6c9e34 28-Jul-2011 Jeff Sharkey <jsharkey@android.com> Grant AID_NET_BW_STATS to system service.

NetworkManagementService is reading stats /proc/ files, which are now
being protected by GID.

Bug: 5087530
Change-Id: I29b35a97ab621999544b6acc8ad4cf72ee053b79
nternal/os/ZygoteInit.java
4f35092af55d569975e6931ee6e8c0343f749d1e 28-Jul-2011 Kenny Root <kroot@google.com> Merge "Move extract native libraries to JNI code"
257466d4e24bd405204cb21a1663eb1cc99f6137 28-Jul-2011 Adam Powell <adamp@google.com> Merge "Bug 5076788 - Optimize the building and invalidation of menus"
89b09da7b3b1e69264d9ec710c66eb2f891b313e 27-Jul-2011 Adam Powell <adamp@google.com> Bug 5076788 - Optimize the building and invalidation of menus

Fix cases that weren't batching menu presenter changes correctly.

Have FragmentManager invalidate the options menu less often.

Change-Id: Ia66fcd09ada8b0a084ad6b08d4340a8fa0c8fc5d
nternal/view/menu/ActionMenuView.java
nternal/view/menu/MenuBuilder.java
377fe393298039e4ea8407451b9afe0475d136a0 27-Jul-2011 Amith Yamasani <yamasani@google.com> Merge "Handle callbacks to CollapsibleActionViews that are in an actionLayout."
10da590839e264735de8a4582021aca0dab81037 27-Jul-2011 Amith Yamasani <yamasani@google.com> Handle callbacks to CollapsibleActionViews that are in an actionLayout.

Also, the onActionViewCollapsed needs to be called before detaching
the action view, so that the action view can dismiss the keyboard properly.

Fixes the Gmail search case where the keyboard doesn't disappear on hitting
the "up" affordance after a search.

Change-Id: I3c2f3f90f0edf6473404e6ceae3fa08866cad736
nternal/view/menu/MenuItemImpl.java
nternal/widget/ActionBarView.java
e20414f37a9aa0c5add34253033a2847905687d7 27-Jul-2011 Jim Miller <jaggies@google.com> Fix 5044158: Turn off debugging in MultiWaveView.

Change-Id: I501e4dbdfff9dc6fbe4ab92f6b15652814480642
nternal/widget/multiwaveview/MultiWaveView.java
66269ea6f68f2f25888ce1080c94ac782742fafc 12-Jul-2011 Kenny Root <kroot@google.com> Move extract native libraries to JNI code

The built-in ZipFile class was quite a long time to find an unpack
libraries. Move everything to using the libutils ZipFileRO class that
goes quite a bit faster. Initial measurements are 6 times faster than
the Java code.

Also, read files off the disk and compare their CRC against the APK's
CRC to see if we need to write the new file to disk. This also cuts down
the bootup time by up to a second per APK that has native files.

Change-Id: Ic464a7969a17368fb6a6b81d026888c4136c7603
nternal/content/NativeLibraryHelper.java
54e677ffb026eb838237b8a5e6581833f616e32a 25-Jul-2011 satok <satok@google.com> Merge "[Step 2] Add apis for spell checker settings"
562ab585f9e413d9696ee250e5ec02f95889a157 25-Jul-2011 satok <satok@google.com> [Step 2] Add apis for spell checker settings

Bug: 5057977

Change-Id: I4617b7f1487349c5de385e7392dbc39c69fa2ebc
nternal/textservice/ITextServicesManager.aidl
55bc5f3e0408bcb5a39a6732de0b2d1aa99a55be 24-Jun-2011 repo sync <isheriff@google.com> Updated: Wi-Fi p2p framework

First stage. Get the bones in right now even though
we are not ready on the native side.

Once, we have things underneath working - we will further update the
framework

Change-Id: I4a7dab5cd4267373dc5f8989ae4122f91c384ed5
nternal/util/Protocol.java
894bf54c0f50dbbaeb737842a89516a3029e233a 22-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5027071 - Action menu parent consistency

Make sure that action menus can tolerate moving around in the bar.

Change-Id: I2dfb4ea7e647a6c4e84ec78865af6fd858e3f59f
nternal/widget/ActionBarView.java
7793719ca97571f5b3636d5a89cb067c71d627bd 22-Jul-2011 satok <satok@google.com> Merge "Create TextServiceManager and SpellCheckerService"
988323c57bd25a58f05dfa492d9b9c8ab62c5153 22-Jun-2011 satok <satok@google.com> Create TextServiceManager and SpellCheckerService

Bug: 4176026

This CL inherits https://android-git.corp.google.com/g/112600

Spec of TextServiceManager
- Chooses the most applicable TextService(e.g. SpellCheckerService, WordBreakIteratorService..)
for each locale

Spec of SpellCheckerService
- Returns whether the given string is a correct word or not
- Returns Suggestions for the given string

Change-Id: Iaa425c7915fe70767ad0b17bf6c6fbcd2a1200b2
nternal/textservice/ISpellCheckerService.aidl
nternal/textservice/ISpellCheckerSession.aidl
nternal/textservice/ISpellCheckerSessionListener.aidl
nternal/textservice/ITextServicesManager.aidl
nternal/textservice/ITextServicesSessionListener.aidl
038f1c80af06da55056120e121d43e3ee89ec726 21-Jul-2011 Adam Powell <adamp@google.com> Bug 5061529 - Save/restore action view state for menu items across
invalidations.

This includes expand/collapse state.

Add CollapsibleActionView interface. Views can implement this to have
special behavior when they are presented as an expanding/collapsing
action view. This lets SearchView and others take care of fiddly
behavior (focus stealing; opening the IME) automatically without apps
needing to implement this themselves.

Change-Id: Ibbd1eb5fcf3e3a862419e9344ad50f896bd05e36
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuItemImpl.java
nternal/view/menu/SubMenuBuilder.java
nternal/widget/ActionBarView.java
d24cd90486821535fb058531fac54aa5b9360693 21-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding accessibility support to the Status Bar."
5ea0bc1abccea067875d00dc9b9dde7c17c1efff 21-Jul-2011 Adam Powell <adamp@google.com> Bug 4948805 - fix custom title divider for dialogs

Change-Id: I1b4fc8da71deb6450b21def15570a18a6b7200e2
nternal/app/AlertController.java
6179ea3196e9306d3f14361fe9ef14191b1edba6 28-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding accessibility support to the Status Bar.

1. Added content description to pretty much all animals
in the zoo including buttons in the navigation bar,
notifications and status icons for battery, signal,
data, etc.

2. Rectored to avoid ovelaying views since they block
touch exploratino. In general overlaying views
cause trouble for touch exploration and accessibility
in general.

3. Avoid sending accessibility events in case the user is
touching outside of the StatauBAr panels to avoid
confusion.

4. Added records to accessibility events in the places where
this would help the presentation. So the event comes from
a given "leaf" view and its predecessor is adding a record
to the event for itself to provide more cotext. It is up
to the accessiiblity service to choose how to present that.

bug:4686943

Change-Id: I1c1bd123d828fb10911bca92130e9a05c1f020b3
nternal/statusbar/IStatusBarService.aidl
nternal/statusbar/StatusBarIcon.java
b187cd9c54f0100c0fb47c354cdecad29ca7c0ae 20-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5038368 - Rules for collapsing action views.

Make collapsing action views exclusive on small screens with unsplit
action bars.

Change-Id: I11cc220acc7b6acddd25f2500404b47bfb405d5c
nternal/view/menu/ActionMenuPresenter.java
nternal/widget/ActionBarView.java
5a8ca580b078c7335d8ee384dd93dc86663d8d53 20-Jul-2011 Alon Albert <aalbert@google.com> Merge "Add a getter for the active tag"
eaef351afcd586d5a84e80455f12f72fd12213ef 19-Jul-2011 Alon Albert <aalbert@google.com> Add a getter for the active tag

Change-Id: I597e041867fba7efae41feea63fa196bc10e4aa2
erver/NetworkManagementSocketTagger.java
060e3cad11541bc534ead73dae5c23ef242060cd 20-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5045004 - onActionModeFinished happens well before the
ActionBar is actually gone

Defer calling onDestroyActionMode until the action bar UI has fully
transitioned out of the mode and any bar-hiding layout change is ready
to happen. This helps apps better respond to layout changes resulting
from action mode UI.

Change-Id: I8e560ec566f4c3fa4a701c4b3aeb531c16169168
nternal/app/ActionBarImpl.java
4273ed652ae9ea2af0a77b6d59a183ebce53a680 19-Jul-2011 satok <satok@google.com> Merge "Enable IMEs to set additional subtypes in background"
6dd005b48138708762bfade0081d031a2a4a3822 18-Jul-2011 Dianne Hackborn <hackbod@google.com> I. Can. Not. Stand. ViewAncestor.

It was done so we would have the name "ViewRoot" available for a
public API. However, the name "ViewAncestor" just makes no sense.
So instead, change it to ViewRootImpl.

Change-Id: If9599ca67896f339f6fefa7d1dde121201171d97
nternal/widget/PasswordEntryKeyboardHelper.java
91e88122cf28a48fd2e2260da7d3d87dd437227a 18-Jul-2011 satok <satok@google.com> Enable IMEs to set additional subtypes in background

Bug: 4591792

Change-Id: I7e61a576c56d1a3a56001bdf2fd51ad3801add01
nternal/view/IInputMethodManager.aidl
7adcdecf808fce832b8711aeeeb30b73371ee4ae 18-Jul-2011 Alexy Shin <alexy.shin@samsung.com> NetInitiatedActivity: support AUTO response feature for SUPL IOT

Change-Id: I38a9ed0b03cb7f9ce2b81e0742ef48508d8392af
Signed-off-by: Mike Lockwood <lockwood@android.com>
nternal/app/NetInitiatedActivity.java
066836fce9a612fe58ed52ee980c56d809910e5b 17-Jul-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix a couple static leaks."
de4c26fa1a5adf3efa8995cbf69e45aa10111b8f 17-Jul-2011 Dianne Hackborn <hackbod@google.com> Fix a couple static leaks.

Change-Id: If2564dc822fbcb3bb3baf270ad2b3c29c78bf421
nternal/widget/LockPatternUtils.java
b80d332e7421e0b8cff12569c2f1b450d769e782 16-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5037642 - Refine back button behavior for action bar modes.

Action modes for the action bar used to aggressively hijack the back
button before the view hierarchy got a chance to respond to it. Loosen
this. New ordering is: view hierarchy => window feature-level modes
(action bar modes e.g. CAB/search) => Activity/window callback
behavior.

Change-Id: Iac1b22997713be968a94f77f9fa6cebaf6f923f0
nternal/widget/ActionBarView.java
28fa07e15f7a7ee83be9e5555bbfdd25711b3517 16-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5021359 - show app icon for collapsible action views.

Also fix a bug with initial enabled state of the app-home button.

Change-Id: I7eac4932deeced3ac209ad899922ac90f40c87e6
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarView.java
75683d59db7d2c34093081ed6ca1f269192c550f 15-Jul-2011 Irfan Sheriff <isheriff@google.com> Merge "WifiWatchdog rewrite to formal statemachine"
654f5090754e4e1bf4c1736d0a24769a15a6037e 14-Jul-2011 Isaac Levy <ilevy@google.com> WifiWatchdog rewrite to formal statemachine

Rewrote wifiwatchdog service to use net.statemachine

Change-Id: Id6fd42b13192ac2e99f842ff50e9edff1696675d
nternal/util/Protocol.java
58c5dc1bd6e0600fab0c4e80ae1f4c4f8426ad6d 15-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5030341 - ActionBar.getHeight is inaccurate in 2-row mode

Measure the shared container instead.

Change-Id: Ib851f773a36add19c227b3ad64a8497f1b5ff9dd
nternal/app/ActionBarImpl.java
45ce864ef41ce90938cc34d42a8e1075f69e7a61 15-Jul-2011 Dianne Hackborn <hackbod@google.com> Move LoadAverageService to the SystemUI apk.

Change-Id: I442e264802d1e35cd7d27bae121ae75f932595b6
nternal/os/ProcessStats.java
c29f4e52c3377924df26910cce3ff26278d1f484 14-Jul-2011 Adam Powell <adamp@google.com> Nicer API for disabling/enabling the home/up button in action bars.

Have an explicit call for enabling the home/up button. Auto-enable it
if the app targets < ICS to preserve Honeycomb behavior. Auto-enable
it if the app shows home as up.

This prevents unwanted touch/focus feedback on the home button when
the app hasn't wired it up to do anything useful.

Change-Id: Icfe95ab5a11b3998bca08b0fbbfe1bf6c3c89b5d
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarView.java
9837d6d02fc0968614efe5260a176e0c406fe93c 14-Jul-2011 Adam Powell <adamp@google.com> Fix bug in submenus opened from icon menus

Change-Id: I8b60ceefbccb5cad78d1b5c55702a2685a5f5382
nternal/view/menu/IconMenuPresenter.java
648b36bc3011437aeb1991dd355c83be7e5f0db5 14-Jul-2011 Adam Powell <adamp@google.com> Merge "Preserve spacing for icons in menus"
9151103ff20d28e8db2a2cc0386d57b8dad4b5d5 13-Jul-2011 Adam Powell <adamp@google.com> Preserve spacing for icons in menus

Change-Id: I3269fcffb98a84b6a5c5f9198afd2b2eae7d5f02
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/ListMenuItemView.java
nternal/view/menu/MenuPopupHelper.java
19d2c0b0c0f7e010b885492c83cd76cb90d2416a 14-Jul-2011 Jeff Sharkey <jsharkey@android.com> Merge "Control socket tagging through Settings.Secure."
62a2c8fed9cc74e9fa03871e0022205560a681a1 14-Jul-2011 Jeff Sharkey <jsharkey@android.com> Control socket tagging through Settings.Secure.

When NetworkManagementService starts, it determines if qtaguid
should be enabled. The changes pushes the enabled state to a system
property to control socket tagging.

Change-Id: I5697a990dbaad4b220a2fb055931b18077d07a74
erver/NetworkManagementSocketTagger.java
76559a65ad9d644f10beacf8895ceb217fdd0aeb 07-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Polish of the ActivityChooserView and ShareActionProvider.

1. Addressed the UX comments: ActivityChooserView's default selection
popup no longer shows a message, rather hightlights the default
action which now it displays. Alignemnt of the UI.

2. The ShareActionProvider shows a sub-menu if the host item goes
on the overflow menu.

3. Now the heade layout of the activity chooser view is not needed hence
dropped and the item and footer ones are merged.

Change-Id: I0b3de623e4c0a805be9ed73a8541e66b8c00e2d2
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuItemImpl.java
961dd11895ce72e59bca124ef5bea4e4c1183099 12-Jul-2011 Adam Powell <adamp@google.com> Update ActionProvider to support dynamically building submenus.

Stub out ShareActionProvider for building a submenu of activities to
choose from.

Change-Id: Ibd9ada77a455ed1a296c87b6d967073ca0f676c2
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuItemImpl.java
11ed1d6cae9214335c92ac38498a4e6c7d1c8324 12-Jul-2011 Adam Powell <adamp@google.com> Fix bugs around restoring submenu state after activity teardown/restore

Change-Id: I6cb5b3cad39b141dff84b8e0ca62f8f0a76a03b1
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/BaseMenuPresenter.java
nternal/view/menu/IconMenuPresenter.java
nternal/view/menu/ListMenuPresenter.java
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuPopupHelper.java
nternal/view/menu/MenuPresenter.java
nternal/widget/ActionBarView.java
622c03e6cfdd37c05f225434e5b07f8db7d4521e 12-Jul-2011 Mark Brophy <mbrophy@google.com> Merge "Expose app resume times to the ApplicationProvider."
3f9dd287b99340efaaa257759e71a8f81b2ed113 09-Jul-2011 Jeff Brown <jeffbrown@google.com> Increase activity timeouts when using a wrapper process.

This patch enables the Zygote to tell the ActivityManager when
it has started a process with a wrapper attached so that the
ActivityManager can allow it extra time to start up or process
events.

This is useful when wrapping an app with Valgrind or other tools
which add significant runtime overhead.

Bug: 4584468
Change-Id: I5db6f2f15cd30b0ec40f547d2fadfa216de2926d
nternal/os/ZygoteConnection.java
d44e1b6033eed29718f2e7e3540e4884929941a5 11-Jul-2011 Elliott Hughes <enh@google.com> Merge "SDK_INT is not "current" on unreleased builds."
2455efebcc1e3d1e19d5de4287ac99818718029e 11-Jul-2011 Elliott Hughes <enh@google.com> SDK_INT is not "current" on unreleased builds.

This change (in combination with a dalvik change) ensures that system_server
doesn't run with JNI app workarounds turned on.

Bug: 4772166
Change-Id: Ia015aa56b5684a176de3c123e8aec7f35e7ecac5
nternal/os/ZygoteConnection.java
9fc033083267d0c7f01e083400721b6cddb3a398 01-Jul-2011 Mark Brophy <mbrophy@google.com> Expose app resume times to the ApplicationProvider.

Add ActivityManager.getAllPackageUsageStats which returns
the PkgUsageStats object for all packages.

In UsageStatsService, remember the last resume time of each component, and
add that info to PkgUsageStats instances.

ApplicationProvider will use getAllPackageUsageStats and the new field
in PkgUsageStats to set the new SearchManager column
SUGGEST_COLUMN_LAST_USAGE_HINT for requests with the GLOBAL_SEARCH
permission.

Change-Id: I80e9b127410ed0d528515d2256787f30a953e9b0
nternal/os/PkgUsageStats.java
b7440a140b650932bf31cf51d3b87c3249e3b682 09-Jul-2011 Elliott Hughes <enh@google.com> Merge "Pass the targetSdkVersion through to the zygote-forked dalvik."
e1dfcb7ab01fb991079ec1f70f75281a0ca9073e 08-Jul-2011 Elliott Hughes <enh@google.com> Pass the targetSdkVersion through to the zygote-forked dalvik.

This will let dalvik implement backwards-compatibile behaviors based on
an app's targetSdkVersion.

Bug: 4772166
Change-Id: I935c5ea9144e8b4e6e21089547287486e2234b7f
nternal/os/RuntimeInit.java
nternal/os/WrapperInit.java
nternal/os/ZygoteConnection.java
nternal/os/ZygoteInit.java
d5cabff96af60d90e197007737ff04e4087f1010 08-Jul-2011 Wink Saville <wink@google.com> am a736cd54: am 848aa3ab: Merge "No need to have BASE_DATA_CONNECTION_TRACKER start at 50000." into honeycomb-LTE

* commit 'a736cd54e1de62e84a7a49a3c68c56fc6d9bfc00':
No need to have BASE_DATA_CONNECTION_TRACKER start at 50000.
a736cd54e1de62e84a7a49a3c68c56fc6d9bfc00 08-Jul-2011 Wink Saville <wink@google.com> am 848aa3ab: Merge "No need to have BASE_DATA_CONNECTION_TRACKER start at 50000." into honeycomb-LTE

* commit '848aa3ab8a00835c5af2ead954c7736e507249b5':
No need to have BASE_DATA_CONNECTION_TRACKER start at 50000.
7f8f79a1ff086c04a3ad2a442b1d39a8186e3e50 08-Jul-2011 Adam Powell <adamp@google.com> Add ALL CAPS style to TextView/TextAppearance

Switch out ugly hack in action menu items for the new style.

Change-Id: I68a0ed62a352b14d499e6478b82bbc12dcb5a030
nternal/view/menu/ActionMenuItemView.java
nternal/widget/ScrollingTabContainerView.java
8735a07a64b8891998402ac0e16d142399ecceaf 07-Jul-2011 Wink Saville <wink@google.com> No need to have BASE_DATA_CONNECTION_TRACKER start at 50000.

Update comment that values should be changed after releasing.

Change-Id: I10ed6a0238e4f5be866dd97cfb56c5e7c84ddb52
nternal/util/Protocol.java
160bb7fa60e8ece654e6ce999b6c16af50ee7357 07-Jul-2011 Adam Powell <adamp@google.com> Action bar layout tweaks

Fix a Spinner issue that reported odd baselines

Fix detection of expandable items for action menus and allocation of cells

Use the right asset for home-as-up in Theme.Holo.Light.SolidActionBar.Inverse

Add TextAppearance.Holo.Widget.ActionBar.Menu as a basis for further
menu item styling

Sync with design for tab/menu text appearance

Change-Id: I32026bbde1cd4e15b6cda30d78d3d48250c84c94
nternal/view/menu/ActionMenuView.java
d0d2517d52fedcc7f85e0d661eecdb861f85c66e 07-Jul-2011 Jeff Sharkey <jsharkey@android.com> Temporarily disable socket tagging.

Change-Id: Ib4a8babdbbe3ea05057dc930b67c2cac89ac5e42
erver/NetworkManagementSocketTagger.java
2c742c2aebf20a0534c822eb8a36da99d9df79fe 07-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5000009 - NPE in Phone UI

Change-Id: I9c5c2c73b340192d754949865b6e4ee4a9a324ff
nternal/view/menu/ActionMenuItemView.java
a72ef62e5c329a19eab9935acba816fc1369c637 07-Jul-2011 Adam Powell <adamp@google.com> Add style/theme definitions for solid action bar configurations.

Change-Id: I540e12ad3d8fc779dac24402286d995f542b5d25
nternal/widget/ActionBarContainer.java
ed61ee1fae260011ebfdb4e61e5edd319debb6c2 07-Jul-2011 Elliott Hughes <enh@google.com> Merge "Add the "debug.jni.logging" property so third-party developers can debug their JNI problems."
ae07ecf3766c38af1c12822458b98036b28bd4c0 07-Jul-2011 Elliott Hughes <enh@google.com> Add the "debug.jni.logging" property so third-party developers can debug their JNI problems.

This turns on the super-verbose but indispensible logging of all native method
calls and all calls to JNI functions (for third-party code only). In particular,
if you have a local reference bug, you can search for the reference given in
the crash and see exactly where it came from. In every case I've seen so far,
that's pinpointed the bug exactly.

Change-Id: Ifb7ba02ae637bdd53cd8500febdcb9d4d7799bda
nternal/os/ZygoteConnection.java
35aecd5884a5ccfe380903e39f30f468315e8f92 01-Jul-2011 Adam Powell <adamp@google.com> Updates for action menus

Sync with UX designs for action menus in split action bar mode.
Layout is now based on a grid cell scheme.

Tweak action menu item layouts.

Fix some bugs with drawing LinearLayout dividers.

Rename config resources to follow convention.

Action bar menu items now show text in ALL CAPS. This is done in a
locale-dependent manner, but if it produces problems in specific
locales the config resource config_actionMenuItemAllCaps should be set
to false for that locale.

Change-Id: I064c2dd85e012e89551f29153efcfc17f9106333
nternal/view/menu/ActionMenuItemView.java
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/ActionMenuView.java
nternal/view/menu/MenuItemImpl.java
2e46764a707bd14cad22bc179669eeecb2d7c647 04-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: implement status report for legacy VPN.

Change-Id: I81c28dafd9588572df76cbc303b0d6a0f41f9bc6
nternal/net/LegacyVpnInfo.aidl
nternal/net/LegacyVpnInfo.java
nternal/net/VpnConfig.java
34e7813e962de99df9813014678ef5901227c5f1 03-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: minor refinement.

Change-Id: I2b59cbe8554b6c6f8da48c465252489394f32653
nternal/net/VpnConfig.java
d6315c0ebb6ebbc67f0c669e92f92be70b49ba2c 02-Jul-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: give legacy VPN a fake package name."
e9107901ae264de4ff5603d3cfc63a03ca4117d4 02-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: give legacy VPN a fake package name.

And add more comments.

Change-Id: I0cbc495fcb2c8dd105e16a841619b3b9bd227eae
nternal/net/VpnConfig.java
51ac0e94a83cfccb5105aa14df1077729a5b4ccc 17-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding a ShareView and ActionProvider for menus.

1. Adding a widget for sharing contenet with other applications.
The widget orders the share targets based on previous shares.
It displays the share target list as either a popup anchored to
itslef or as a dialog.

2. Added a ShareDataModel that will back widgets or other classes
that are interested in share targets for a given intent ordered
according to share history. This class is backing the ShareView

3. Added ActionProvider mechanism for the MenuItems. The action
provider of a menu creates the action view as well as performs
a default action if the menu item is on the overflow menu and
is triggered but none of the menu callback has handled that.

bug:4590827

Change-Id: Iaa4add2df2538b8c6c7edbeaf2880486d4fd75c5
nternal/view/menu/ActionMenuItem.java
nternal/view/menu/MenuItemImpl.java
41d1685a22ba8038517d6fdb57006023e03f12e1 01-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: integrate legacy VPN.

Change-Id: I00e77664354c05e0edfcd5fb2e3da2ca434ed521
nternal/net/VpnConfig.java
8909b10175303bd5e2ca82b7ba12cd0017050ef3 01-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: Use List<String> instead for dnsServers and searchDomains.

Change-Id: I5d72c182ad47f59121a04b68ec6c2d164e2d00a8
nternal/net/VpnConfig.java
5db03df1fff4900eb485304d4fd185110bea1a0c 01-Jul-2011 Chia-chi Yeh <chiachi@android.com> VpnDialogs: prepare for the usages of legacy VPN.

- Use PendingIntent to start activities.
- Handle configs without package names.
- Switch to system UID.

Change-Id: Ia78112a97e3628b603d9e059705e32694ebe142b
nternal/net/VpnConfig.java
8c4706252228755ed181d19532b7e0cfec270ba4 01-Jul-2011 Adam Powell <adamp@google.com> Add API to report the presence of a permanent menu key on the device.

Action bar now uses this to determine whether to show an overflow menu.

Change-Id: Ife4f724d02bbc0d9d86d94740c85299f6dacae91
nternal/view/menu/ActionMenuPresenter.java
1c8d207201150c29ac92c424e1320c715a64b5bc 30-Jun-2011 Jim Miller <jaggies@google.com> Fix 4691563: Polish MultiWaveView experience in LockScreen and InCall screen
Better activation experience:
- Hold off on switching out targets until current animation has finished.
- Hide unselected targets when a target is selected.
Code simplification:
- Use explicit callback objects to handle animation updates instead of having MWV implement the interface.
- More compact chevron-loading code.
- Don't use animations for properties that need to change immediately.

Other minor timing tweaks.

Change-Id: I328533e8ab7b4c69c7ba51c8c55002765dcbbd46
nternal/widget/multiwaveview/MultiWaveView.java
f6ce6a9bacbb220c6ea7b552c481237f23e64ae7 29-Jun-2011 Adam Powell <adamp@google.com> Fix some issues with the action bar and action modes.

Fix bug 4976004 - bad title measurement for split action modes

Fix bug 4902960 - action modes leaving a hidden action bar in a bad state

Sync with design for the behavior of various permutations of action
bar configuration + modes.

Change-Id: Id75f6b5911b761fabc5fef2cc2600ce197cf9a92
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarContainer.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
nternal/widget/ScrollingTabContainerView.java
2c22882181e867c9ba4e74ee973b87a71db3389f 29-Jun-2011 Dianne Hackborn <hackbod@google.com> Merge "Plumb information from the framework about asec container size."
fe41366e3a92d622c9bc016f91c8294f072d9548 29-Jun-2011 satok <satok@google.com> Merge "Add onClickView to InputMethodService"
863fcd62171e55bc9f2105d9fb5877df982454d8 21-Jun-2011 satok <satok@google.com> Add onClickView to InputMethodService

Bug: 4697141

- onClickView is called everytime the user taps EditText

Change-Id: Ia71ad325e50a20e9e1001def662ef992bb50a9d0
nternal/view/IInputMethodSession.aidl
8568db534118fc14cc28100306d51626464ff319 29-Jun-2011 Jesse Wilson <jessewilson@google.com> Move socket tagging from libcore.

Change-Id: I7515896936c5bbd212c88e2801b831914219a925
nternal/os/RuntimeInit.java
erver/NetworkManagementSocketTagger.java
292f8bc9d1b790ab975a87a842c7fabc908b97e0 28-Jun-2011 Dianne Hackborn <hackbod@google.com> Plumb information from the framework about asec container size.

Change-Id: Ie0ec3cb6d463aefa341a8cbea80be790451ba5e3
nternal/content/PackageHelper.java
61b9fae046bd766dc951262f728a12784e5ec6ff 28-Jun-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix battery history management."
bf591ff682f14db7ba7b3554897e9cdcf245da59 28-Jun-2011 Jim Miller <jaggies@google.com> Fix 4691563: Fix memory leak caused by Tweeners hanging onto references.

This fixes a bug where the animations in MultiWaveView were keeping references
to bitmaps and preventing them from being reclaimed during GC. The solution
is two-fold:
1. When any given animation completes, it is now removed from the list of running
animators objects.
2. When the client explicitly calls reset(), we release all references to
animators and objects.

Change-Id: Ice434ed1720fe4c253b9607ef61699d41f87f777
nternal/widget/multiwaveview/MultiWaveView.java
nternal/widget/multiwaveview/Tweener.java
ae3844527a305cef8bbd1c895b79be45a6c51dbc 28-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix battery history management.

When rebooting the history time offset was not being handled
correctly, causing garbage data.

Change-Id: Ieca5a72c4c7c374bfe7f8673eed87354af148ef0
nternal/os/BatteryStatsImpl.java
6556c074ee84d0e56aca9ae267e330db73dfb236 25-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4903822 - vertical gravity bugs in action bar custom views

Change-Id: I20a319bf8fd5b5acf823a2651639f94d6efac5e4
nternal/widget/ActionBarView.java
c8b0b005cb616deb9646f2c2b995890fa9530f94 23-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4771354 - Phone landscape action bar subtitle slightly cut off
on the bottom

Let action bar title sizes adapt for restricted space in landscape.

Fix home spacing for tablets to eliminate redundant layout.

Change-Id: If38a43d87ca1aebf96b5d7adfdb1cf36c41ec07e
nternal/widget/ActionBarView.java
0d5d1b7e8cc06b4c62a863314debbb8b24554f1f 23-Jun-2011 Adam Powell <adamp@google.com> Tweak action bar metrics.

Free up some more pixels in the action bar and better define how icons
within it resize.

Change-Id: I0768180e595ee7b23190a26607e8989fa1bac38f
nternal/widget/ActionBarView.java
08a975ef86200a73db51bfbcca6bea8ad2a63cbd 22-Jun-2011 Jim Miller <jaggies@google.com> Update LockScreen layouts to latest UX spec.

- better placement and consistent handling of emergency button.
- use new GridLayout for landscape modes.
- add dimensionable parameters for time and status line fonts.
- fix assets and emergencyCallButton resource references when building for tablets.

Change-Id: I5f4c9cfb6a88ce3ccd8ab4fdafede8e6e59f9407
nternal/widget/LockPatternView.java
0edc52970f82b6a42324ebec9458b3098112e499 22-Jun-2011 Philip Milne <pmilne@google.com> Merge "Minor tweaks to GridLayout for KeyGuardScreenUnlock."
8969d9924c662ab4cdacc342bbdc33756db730be 22-Jun-2011 satok <satok@google.com> Revert "Create TextServiceManager and SpellCheckerService"

This reverts commit eaddb894865a804279659b4aad6364a34ab50beb.
nternal/view/ITextServiceManager.aidl
f86ee14f6a53d409489261415901c6397877ce3d 22-Jun-2011 satok <satok@google.com> Merge "Create TextServiceManager and SpellCheckerService"
42b91bbcdaf64b2f19d0a9ce168964b31a5dc139 22-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4818050 - Need a way to get notified when a PopupMenu gets
dismissed/canceled

Add an OnDismissListener to PopupMenu.

Change-Id: I7abe1b9c9bea5e758a9c32631185e50cd7eb1ed0
nternal/view/menu/MenuPopupHelper.java
45d061656aab9f13dc1bb0e5d9378dd661a25f8e 22-Jun-2011 Adam Powell <adamp@google.com> Merge "Fix bug 4725323 - 'More' shows the icons which are already available in settings"
51195b56ff6d3d589abefde27f0a99b5a9a04ff8 22-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4725323 - 'More' shows the icons which are already available
in settings

Change-Id: I161787710fbadaa19b93de3e69f3c60db2be73a6
nternal/view/menu/ListMenuPresenter.java
1fd16378812792913a6aa6923acbec20037e09ff 21-Jun-2011 Philip Milne <pmilne@google.com> Minor tweaks to GridLayout for KeyGuardScreenUnlock.

Also:

. Swapped order of args in internal getMargins() methods.
. Stopped implying row/col weight = 1 when size = MATCH_PARENT.

Change-Id: I657fb3e54867eb9735f9509878968941bf6a6a49
nternal/widget/LockPatternView.java
ea1ca952c625d51dc71e1cc3d955b239921888c7 21-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4108953 - Old-style menus do not show menu items marked as
showAsAction="always"

Change-Id: I63299143ea780abeed6dcdece6934f0e704b46a2
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/MenuItemImpl.java
b35e372bf4080f3b1940a371f1e39fb5dccde990 20-Jun-2011 Jim Miller <jaggies@google.com> Handle dropped motion events in MultiWaveView due to high system activity

This change causes MultWaveView to look at historical motion events to make
unlocking easier during high system load.

Updated after review.

Change-Id: Ibfc3cb513936e3b8488aa4390164bf5e214c982f
nternal/widget/multiwaveview/MultiWaveView.java
15a16a835ef07d484e0ae11666cef9231c2f8184 20-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4729242 - Crash while launching browser app.

Change-Id: Id049bcc53943b0cbe17e9f345af67adc2b10bdef
nternal/widget/ActionBarView.java
eaddb894865a804279659b4aad6364a34ab50beb 01-Jun-2011 satok <satok@google.com> Create TextServiceManager and SpellCheckerService

Bug: 4176026

Spec of TextServiceManager
- Chooses the most applicable TextService(e.g. SpellCheckerService, WordBreakIteratorService..)
for each locale

Spec of SpellCheckerService
- Returns whether the given string is a correct word or not
- Returns Suggestions for the given string

Change-Id: Ia25e7b4f308778891929e31b8cbd741f6848cce4
nternal/view/ITextServiceManager.aidl
b3721b9f7dec8575bf3b2fe04496bdd201f277bc 18-Jun-2011 Adam Powell <adamp@google.com> Merge "Allow the action bar title to take on the role of "up" in the absence of a standard "home" icon."
54c7d7e61cd975d73b7eb0a5a0c75d21b6a7a12b 18-Jun-2011 Adam Powell <adamp@google.com> Allow the action bar title to take on the role of "up" in the absence
of a standard "home" icon.

Change-Id: Ie1a9adca674500a29da36956455667bbb55a616f
nternal/widget/ActionBarView.java
94c9f39ece18183c3ad2ad224ddb4690e3dd5045 18-Jun-2011 Jim Miller <jaggies@google.com> Merge "Handle dropped motion events in Pattern Unlock due to high system activity"
9c8e735817b8ff57070a035d2463f22eea50b8d4 18-Jun-2011 Jim Miller <jaggies@google.com> Merge "Update pattern unlock and assets to match new UX design spec."
0d244193bed0c995e2beaff5e217200457b28b9d 17-Jun-2011 Jim Miller <jaggies@google.com> Update pattern unlock and assets to match new UX design spec.

Fix bug with LockPatternView measurement.
Clean up forgotPassword/emergencyCall button code.
Lots of layout tweaks. Now uses new GridLayout for many of them.
New assets.

Updated after review.

Change-Id: I52d4ce65c6b6c644ac60eb55bb8eaff8bfeb1071
nternal/widget/DigitalClock.java
nternal/widget/LockPatternView.java
aced12fd2276ed7664af6bf70ff03ce2acaf6545 18-Jun-2011 Jim Miller <jaggies@google.com> Handle dropped motion events in Pattern Unlock due to high system activity

This enables the pattern unlock screen to look at historical motion
events to make unlocking easier during high system load.

Change-Id: I74a9c2d0833e8bb6745b89e8d397116baebb24a1
nternal/widget/LockPatternView.java
ec08cacd78c4b746ac385c874f41833fc06ebc2f 18-Jun-2011 Adam Powell <adamp@google.com> Merge "Fix bug 4689431 - PopupMenus too narrow on phones"
38639b1d75933bfb720db79fce26f09478709614 18-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4689431 - PopupMenus too narrow on phones

Change-Id: I624b46d17c1d964fd6cb04abf96333c7a8474d75
nternal/view/menu/MenuPopupHelper.java
72fba1caea8778d4e0a5693b188873c6faab4dbb 17-Jun-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: move VpnDialogs related methods into VpnConfig."
cd0385bf8c571484a15f2d2d3182a6340950270f 17-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Remove HanziToPinin.java"
7b0b834c3d12564c44ac134879a6dbc70e74be6e 17-Jun-2011 Chia-chi Yeh <chiachi@android.com> VPN: move VpnDialogs related methods into VpnConfig.

This might not be the best place for the glue code, but it is
known that choosing VpnBuilder will introduce a dependency
cycle of VpnBuilder, ConnectivityService, and the Vpn class.

Change-Id: I3f03617d1fe1a0b8fb3705c23265676fff51a75c
nternal/net/VpnConfig.java
f1a4549604639e3d9eafc406426ddc252d427b57 17-Jun-2011 Adam Powell <adamp@google.com> Bug 4726236 - NPE at dispatchRestoreInstanceState

Change-Id: Ib7eba6ead85fa4daa8046bbc2d4d3fcc1d4223c3
nternal/view/menu/ListMenuPresenter.java
a93347a62ec9887862abb9d6f216906c533a8562 14-Jun-2011 Adam Powell <adamp@google.com> Dialog-o-rama!

New styling for Holo dialogs. Now 76% easier for apps to create
dialog-based layouts! (Less tricky padding and margin rules)

Cancelable AlertDialogs now are canceled when the user touches
outside.

Dialogs in landscape mode will try not to fill the width of the
screen.

Change-Id: I621b5a19780883ee703a8492510451b480a0b8cc
nternal/app/AlertController.java
nternal/widget/DialogTitle.java
1515c0b5192996fdaf49c6ab8841a0d5b8ea9ca9 17-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove HanziToPinin.java

Those files are moved to ContactsProvider package.

Must be after If786dd286dab47ca1b2ccab38c5fa43ae390c0f7

Bug: 4645142
Change-Id: I774426347e8331fc1c203d5d8e6887e83baffc9f
nternal/util/HanziToPinyin.java
d6f69d0e5235a5adce5226d2144ef08d05b1889c 16-Jun-2011 Chia-chi Yeh <chiachi@android.com> Merge "VPN: migrate from generic Bundle to our own Parcelable VpnConfig."
04ba25c418bc4538e9dc0f047cfb9608d358f679 16-Jun-2011 Chia-chi Yeh <chiachi@android.com> VPN: migrate from generic Bundle to our own Parcelable VpnConfig.

Note that VpnConfig is for internal use only.
Also remove hidden methods from ConnectivityManager.

Change-Id: Ic298c4dc9a2c6c452bd8f4be6fa84e7ac489c0c4
nternal/net/VpnConfig.aidl
nternal/net/VpnConfig.java
3b1fc47d004f6b29af8f40d181baa3460b1e3b15 13-Jun-2011 Michael Jurka <mikejurka@google.com> Port recent apps from tablet to phone

- wire up to long press on home
- remove unused recents activity
- remove duplicate recents resources in -large directories (using -sw600dp instead)
- fix issue with zoom/scale translation when recents was brought up

Change-Id: I45538ccaff49b46ac3659c4828f9e2b0cd075241
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
938ef7aeb75268c0b092727fb76e999ffb744b56 15-Jun-2011 Dianne Hackborn <hackbod@google.com> Merge "resolved conflicts for merge of e95c07bd to master"
c391a9888c6c3038a53fd53c330a65f68ff09a28 15-Jun-2011 Adam Powell <adamp@google.com> Merge "Fix bug 4521549 - Crash in ScrollingTabContainerView, when using a tab with null text"
251df77861525cca79d38bcee7c45c16c6752e40 15-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4521549 - Crash in ScrollingTabContainerView, when using a tab
with null text

Change-Id: I6c287c95bafa732018048c11933ddba82fa26d9f
nternal/widget/ScrollingTabContainerView.java
e460e6d7181282937fc79119e3271bb8a80cffcf 15-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add View.getResolvedLayoutDirection()"
c0053223bedf33581b0830fb87be32c1f26e5372 13-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Add View.getResolvedLayoutDirection()

- update Callback2 interface
- update Gravity.getAbsoluteGravity() and Gravity.apply() to be more generic
by changing "boolean isRtl" parameter to "int layoutDirection"
- fix BiDiTests for RTL FrameLayout

Change-Id: I97bb456c22d5fd3ecb34f08564ce4dbed37e7459
nternal/view/menu/IconMenuItemView.java
3fe9cc5ea6a9e1acd52144c8ae6cb0492dba34ba 15-Jun-2011 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of e95c07bd to master

Change-Id: I9af0c08a9f1c1f68661efe051a66835e850b76f6
e95c07bd8a4f658e035ba0ed2079357961af011b 15-Jun-2011 Dianne Hackborn <hackbod@google.com> am 7c7f8e18: am 0a8a2324: Merge "Fix issue #4603422: Compatibility mode button doesn\'t always update" into honeycomb-mr2

* commit '7c7f8e18dee8b582ec8e30a1412903ceec2ef5f5':
Fix issue #4603422: Compatibility mode button doesn't always update
7c7f8e18dee8b582ec8e30a1412903ceec2ef5f5 15-Jun-2011 Dianne Hackborn <hackbod@google.com> am 0a8a2324: Merge "Fix issue #4603422: Compatibility mode button doesn\'t always update" into honeycomb-mr2

* commit '0a8a2324239d7604e2a68349585aa67b59b25f4c':
Fix issue #4603422: Compatibility mode button doesn't always update
7d04932ef5c001769ccef244f551b75773f1666b 15-Jun-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4603422: Compatibility mode button doesn't always update

We now tell the system bar every time the top activity has changed for
it to re-evaluate its UI state.

Also fix issue #: 4607102 Low rider notifications. It turns out this
was due to the change in the dialog asset; the notification UI was relying
on this having a lot of padding to make it sit above the status bar.
Now we have an explicitly mechanism to set how much it overlaps (or doesn't)
the status bar.

Change-Id: Iab5ebd86e620ff4fc4cd77206e18af962ec2830e
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
e0adac0e72312048c3d874b24bc35d8c43253306 14-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4551701 - com.android.browser: java.lang.IllegalStateException

Fix a bug with split action bars and orientation changes.

Change-Id: If067803281c6ac23b51da5bf075fdf1be28afdc2
nternal/widget/ActionBarView.java
70832a3d77d90f09fb7ba27612c9cbec6a92abe6 14-Jun-2011 Jim Miller <jaggies@google.com> Some tuning for MultiWaveView animations and assets:
- allow individual chevrons to be specified for (top, bottom, left, right).
- move ring to pressed position (currently w/o animation)
- add top/bottom chevron handling and refactor code accordingly.
- constrain drag handle to the ring

Change-Id: I859b2d03d8f0397c68b87a8ee15df20d55c9552c
nternal/widget/multiwaveview/MultiWaveView.java
nternal/widget/multiwaveview/Tweener.java
0c2313dc4f4bfaf6aa0506df4c54f25591a9e4c7 11-Jun-2011 Jeff Brown <jeffbrown@google.com> Mimic Zygote preload steps when using wrappers.

Change-Id: I45f182a952920f328d092e5ac86fc0f1c35eb6c1
nternal/os/WrapperInit.java
nternal/os/ZygoteInit.java
bc38d3e44e698f4db749c2feed34e13a94c54a1b 11-Jun-2011 Jeff Brown <jeffbrown@google.com> Merge "Optimize orientation changes."
24572375323dee79e3b456af07640ca194fd40bf 10-Jun-2011 Jeff Brown <jeffbrown@google.com> Optimize orientation changes.

Modified setRotation to allow it to restart a rotation in
progress as long as the rotation animation has not yet started.
This enables the system to recover more quickly from mispredicted
orientation changes.

Removed the call to System.gc() when freezing the display, which
added 60-80ms before we even started the orientation change.
We used to need this to make it less likely that an upcoming GC
would cause a pause during the window animation, but this is
not longer a concern with the concurrent GC in place.

Changed the wallpaper surface to be 32bit. This accelerates
drawing and improves the overall appearance slightly.

Reduced code duplication in the WallpaperManager.

Change-Id: Ic6e5e8bdce4b970b11badddd0355baaed40df88a
nternal/service/wallpaper/ImageWallpaper.java
b505074e8273887fbcd1e933738a42e770085fb8 09-Jun-2011 Jim Miller <jaggies@google.com> Add new MultiWaveView widget and integrate it into LockScreen

This adds a new multi-target widget to the framework and integrates
it into LockScreen.

Now with updated assets.

Change-Id: Ib41595b9e80a7be6d647f44c803a77f9e5bfeca9
nternal/widget/multiwaveview/Ease.java
nternal/widget/multiwaveview/MultiWaveView.java
nternal/widget/multiwaveview/TargetDrawable.java
nternal/widget/multiwaveview/Tweener.java
cc2e5bea7da9339a9c03a9616f22348978e8909c 10-Jun-2011 Adam Powell <adamp@google.com> Fix some measurement/sizing with split action bars

Change-Id: I5fded370d214eb0a50d06fd6a14446227d3b30ac
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarView.java
21e2f1b4a0877ee38f7ba89eb32f585fb34431f3 10-Jun-2011 satok <satok@google.com> Merge "API to set additional subtypes"
e7c6998e0a953ae55487d4fe122739646f9280aa 03-Jun-2011 satok <satok@google.com> API to set additional subtypes

Bug: 4321667

- Due to the voice team's strong request

Change-Id: Ia8bbc277c0987bde996e6f65541877cec96a3ca1
nternal/view/IInputMethodManager.aidl
81cf3ecadefb8fd6c05771b0b9947babaa9c8eaf 17-May-2011 Adam Powell <adamp@google.com> Action buttons now use themable style.

Obey action view layoutparams.

Change-Id: Ia466008465b57659615fbf9d450ce3fdb3c06379
nternal/view/menu/MenuItemImpl.java
fdac5ea9715a3bd2a3ceed847b60551a28e956bb 10-Jun-2011 Adam Powell <adamp@google.com> Merge "Refine the behavior of split action bars."
1ab418a222e1834c4b1312fde355e41a1947af0d 10-Jun-2011 Adam Powell <adamp@google.com> Refine the behavior of split action bars.

Change-Id: I27212c7554025433ee366f0766971f0092b26d67
nternal/app/ActionBarImpl.java
nternal/view/menu/ActionMenuPresenter.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
924b7c74960c88660d0d4bae84433c1592a81834 10-Jun-2011 John Wang <johnwang@google.com> am 4d042048: am 08a8f3f9: Merge "Set emergency call text visibility." into honeycomb-LTE

* commit '4d042048243f38d3062ab4719ac26c9154380115':
Set emergency call text visibility.
310849abb1a0763ea9912b59187f0a4271efaa2e 09-Jun-2011 Adam Powell <adamp@google.com> Bug 4563099 - Action bar tabs - place second row tabs on top in the
absence of home/up

Change-Id: I9d656962161f0cb26cecbc85991b347d2e951c76
nternal/widget/ActionBarContainer.java
4d042048243f38d3062ab4719ac26c9154380115 09-Jun-2011 John Wang <johnwang@google.com> am 08a8f3f9: Merge "Set emergency call text visibility." into honeycomb-LTE

* commit '08a8f3f9dc035bc462061ae87090a8da59c6713a':
Set emergency call text visibility.
5328bf0b2e62c2719daf9154edbe81fd819974a6 09-Jun-2011 John Wang <johnwang@google.com> Set emergency call text visibility.

Set emergency call text visibility based on
emergencyCallCapable config for sim missing
and networklock screens.

bug:4392059
Change-Id: Ibfe92405ada7b452927940295c090d88ecd79519
nternal/widget/LockPatternUtils.java
de13001f765e30bc29a3a74bfa751cc42e426a93 08-Jun-2011 John Wang <johnwang@google.com> am 1f866589: am 71030e53: Merge "Add SIM PUK unlockscreen." into honeycomb-LTE

* commit '1f8665895f71904b9d757854277cb637841356c3':
Add SIM PUK unlockscreen.
d2a458750e5a3d490af09cecb5c28370baf0a913 29-May-2011 Jeff Sharkey <jsharkey@android.com> Map network identity using ConnectivityService.

Instead of deriving network identity based on raw subsystem broadcasts,
listen for updates from ConnectivityService. Added atomic view of all
active NetworkState, and build map from "iface" to NetworkIdentity set
for stats tracking.

To avoid exposing internal complexity, INetworkStatsService calls use
general templates. Added TelephonyManager mapping to classify network
types using broad labels like "3G" or "4G", used to drive templates.

Cleaned up Objects and Preconditions.

Change-Id: I1d4c1403f0503bc3635a59bb378841ba42239a91
nternal/util/Objects.java
nternal/util/Preconditions.java
1f8665895f71904b9d757854277cb637841356c3 07-Jun-2011 John Wang <johnwang@google.com> am 71030e53: Merge "Add SIM PUK unlockscreen." into honeycomb-LTE

* commit '71030e536522449f34dc584fda94f34e7be6ee19':
Add SIM PUK unlockscreen.
0f7b3f8ba5c2f0b8f96e072bd866c9fb374ebdeb 31-May-2011 John Wang <johnwang@google.com> Add SIM PUK unlockscreen.

Puk unlockscreen is implemented as SimPukUnlockScreen.

Added config_enable_puk_unlock_screen to control the display of puk unlock screen.

Using config_voice_capable to control the display of emergency call button.

bug:4384956

Change-Id: I2b8256b4ecdf3d4f1e85c4e868fac1810cfd29be
nternal/widget/LockPatternUtils.java
8643aa0179e598e78d938c59035389054535a229 20-Apr-2011 Svetoslav Ganov <svetoslavganov@google.com> Interrogation of the view hierarchy from an AccessibilityService.

1. Views are represented as AccessibilityNodeInfos to AccessibilityServices.

2. An accessibility service receives AccessibilityEvents and can ask
for its source and gets an AccessibilityNodeInfo which can be used
to get its parent and children infos and so on.

3. AccessibilityNodeInfo contains some attributes and actions that
can be performed on the source.

4. AccessibilityService can request the system to preform an action
on the source of an AccessibilityNodeInfo.

5. ViewAncestor provides an interaction connection to the
AccessibiltyManagerService and an accessibility service uses
its connection to the latter to interact with screen content.

6. AccessibilityService can interact ONLY with the focused window
and all calls are routed through the AccessibilityManagerService
which imposes security.

7. Hidden APIs on AccessibilityService can find AccessibilityNodeInfos
based on some criteria. These API go through the AccessibilityManagerServcie
for security check.

8. Some actions are hidden and are exposes only to eng builds for UI testing.

Change-Id: Ie34fa4219f350eb3f4f6f9f45b24f709bd98783c
nternal/view/BaseIWindow.java
eefaf27d55cb51f5d3986ec73b07f80e545338c5 03-Jun-2011 Brian Carlstrom <bdc@google.com> Merge "KeyStore.reset changes"
e2afc2420d29c2d3d04a05ed5839c12f3b267b23 03-Jun-2011 Brian Carlstrom <bdc@google.com> KeyStore.reset changes

restore keystore reset behavior of removing master key.
otherwise after reboot keystore has is LOCKED and not UNINITIALIZED
cmds/keystore/keystore.cpp

when removing password, reset the keystore, so it doesn't remain
locked with a now bogus password.

core/java/com/android/internal/widget/LockPatternUtils.java

Change-Id: If5e0bb50b42599e9ca27a8b91d6cec12528419a1
nternal/widget/LockPatternUtils.java
c6f1f4ac3b3f19222cb72c44e19d5251a3b46831 02-Jun-2011 Gilles Debunne <debunne@google.com> am ca6c3a2b: am 4ce6822b: am 24de44a1: Merge "ExternalStorageFormatter takes an optional StorageVolume target." into honeycomb-mr2

* commit 'ca6c3a2bba4445f492117697cb304a014a185159':
ExternalStorageFormatter takes an optional StorageVolume target.
5ee36c48be8d36c5f4025202e8ede561c9ad3aba 02-Jun-2011 Adam Powell <adamp@google.com> Handle action modes in the IME extract mode view.

This presents action modes (such as the one for text editing) in a
less screen-consuming way in the IME extract mode layout. The submit
button is replaced by an "Edit..." button that shows the action mode
menu when clicked.

Still needs UX design and tweaking.

Change-Id: Ia7b3f3446edced0ee5a9abc5e2f0ff16f4fa3ab1
nternal/app/ActionBarImpl.java
c3076425bba5c129408338be4e138f8be16855a6 02-Jun-2011 Adam Powell <adamp@google.com> Fix bug 4520517 - IllegalStateException entering tab mode

Change-Id: I0ebf3aea98060e27e9687f48dff05f7310046ce5
nternal/widget/ActionBarView.java
8d02deabac62c4a68a335a7b3141795466362b89 01-Jun-2011 Adam Powell <adamp@google.com> Implement bug 4500971 - Collapsable action views

Action views may now be flagged as 'collapsable'. This means that the
action menu will always show them in the collapsed state by
default. When selected, the action view will "take over" the
navigation/view side of an action bar until dismissed via the home/up
button.

This feature allows for more long-term exclusive modes akin to
ActionModes but less intrusive. The action menu itself remains
unaffected. Collapsable action views are ideal for things such as
search or categories of tool palettes.

Change-Id: Ibafce5631befbfe67c5d834c2e2617d3d7f6da7a
nternal/view/menu/ActionMenuItem.java
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/BaseMenuPresenter.java
nternal/view/menu/ListMenuPresenter.java
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuItemImpl.java
nternal/view/menu/MenuPopupHelper.java
nternal/view/menu/MenuPresenter.java
nternal/view/menu/SubMenuBuilder.java
nternal/widget/AbsActionBarView.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
7ae03cda10eddbde0d992ec82b2d5dacaf6eb10f 01-Jun-2011 Brian Carlstrom <bdc@google.com> Merge "Integrating keystore with keyguard (Part 1 of 4)"
5cfee3fabb3482c6a6df1c8b6f21e843cf214527 31-May-2011 Brian Carlstrom <bdc@google.com> Integrating keystore with keyguard (Part 1 of 4)

Summary:

frameworks/base
keystore rewrite
keyguard integration with keystore on keyguard entry or keyguard change
KeyStore API simplification

packages/apps/Settings
Removed com.android.credentials.SET_PASSWORD intent support
Added keyguard requirement for keystore use

packages/apps/CertInstaller
Tracking KeyStore API changes
Fix for NPE in CertInstaller when certificate lacks basic constraints

packages/apps/KeyChain
Tracking KeyStore API changes

Details:

frameworks/base

Move keystore from C to C++ while rewriting password
implementation. Removed global variables. Added many comments.

cmds/keystore/Android.mk
cmds/keystore/keystore.h
cmds/keystore/keystore.c => cmds/keystore/keystore.cpp
cmds/keystore/keystore_cli.c => cmds/keystore/keystore_cli.cpp

Changed saveLockPattern and saveLockPassword to notify the keystore
on changes so that the keystore master key can be reencrypted when
the keyguard changes.

core/java/com/android/internal/widget/LockPatternUtils.java

Changed unlock screens to pass values for keystore unlock or initialization

policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java
policy/src/com/android/internal/policy/impl/PatternUnlockScreen.java

KeyStore API changes
- renamed test() to state(), which now return a State enum
- made APIs with byte[] key arguments private
- added new KeyStore.isEmpty used to determine if a keyguard is required

keystore/java/android/security/KeyStore.java

In addition to tracking KeyStore API changes, added new testIsEmpty
and improved some existing tests to validate expect values.

keystore/tests/src/android/security/KeyStoreTest.java

packages/apps/Settings

Removing com.android.credentials.SET_PASSWORD intent with the
removal of the ability to set an explicit keystore password now
that the keyguard value is used. Changed to ensure keyguard is
enabled for keystore install or unlock. Cleaned up interwoven
dialog handing into discrete dialog helper classes.

AndroidManifest.xml
src/com/android/settings/CredentialStorage.java

Remove layout for entering new password

res/layout/credentials_dialog.xml

Remove enable credentials checkbox

res/xml/security_settings_misc.xml
src/com/android/settings/SecuritySettings.java

Added ability to specify minimum quality key to ChooseLockGeneric
Activity. Used by CredentialStorage, but could also be used by
CryptKeeperSettings. Changed ChooseLockGeneric to understand
minimum quality for keystore in addition to DPM and device
encryption.

src/com/android/settings/ChooseLockGeneric.java

Changed to use getActivePasswordQuality from
getKeyguardStoredPasswordQuality based on experience in
CredentialStorage. Removed bogus class javadoc.

src/com/android/settings/CryptKeeperSettings.java

Tracking KeyStore API changes

src/com/android/settings/vpn/VpnSettings.java
src/com/android/settings/wifi/WifiSettings.java

Removing now unused string resources

res/values-af/strings.xml
res/values-am/strings.xml
res/values-ar/strings.xml
res/values-bg/strings.xml
res/values-ca/strings.xml
res/values-cs/strings.xml
res/values-da/strings.xml
res/values-de/strings.xml
res/values-el/strings.xml
res/values-en-rGB/strings.xml
res/values-es-rUS/strings.xml
res/values-es/strings.xml
res/values-fa/strings.xml
res/values-fi/strings.xml
res/values-fr/strings.xml
res/values-hr/strings.xml
res/values-hu/strings.xml
res/values-in/strings.xml
res/values-it/strings.xml
res/values-iw/strings.xml
res/values-ja/strings.xml
res/values-ko/strings.xml
res/values-lt/strings.xml
res/values-lv/strings.xml
res/values-ms/strings.xml
res/values-nb/strings.xml
res/values-nl/strings.xml
res/values-pl/strings.xml
res/values-pt-rPT/strings.xml
res/values-pt/strings.xml
res/values-rm/strings.xml
res/values-ro/strings.xml
res/values-ru/strings.xml
res/values-sk/strings.xml
res/values-sl/strings.xml
res/values-sr/strings.xml
res/values-sv/strings.xml
res/values-sw/strings.xml
res/values-th/strings.xml
res/values-tl/strings.xml
res/values-tr/strings.xml
res/values-uk/strings.xml
res/values-vi/strings.xml
res/values-zh-rCN/strings.xml
res/values-zh-rTW/strings.xml
res/values-zu/strings.xml
res/values/strings.xml

packages/apps/CertInstaller

Tracking KeyStore API changes
src/com/android/certinstaller/CertInstaller.java

Fix for NPE in CertInstaller when certificate lacks basic constraints
src/com/android/certinstaller/CredentialHelper.java

packages/apps/KeyChain

Tracking KeyStore API changes
src/com/android/keychain/KeyChainActivity.java
src/com/android/keychain/KeyChainService.java
support/src/com/android/keychain/tests/support/IKeyChainServiceTestSupport.aidl
support/src/com/android/keychain/tests/support/KeyChainServiceTestSupport.java
tests/src/com/android/keychain/tests/KeyChainServiceTest.java

Change-Id: Ic141fb5d4b43d12fe62cb1e29c7cbd891b4be35d
nternal/widget/LockPatternUtils.java
c619e74cc62678cef09b5f92e87e762a1f02aab7 01-Jun-2011 Gilles Debunne <debunne@google.com> ActionBar makes room for icons when no title is provided

Change-Id: I5bd09e00b50496032deda40ea22367d727230611
nternal/view/menu/ActionMenuItemView.java
nternal/widget/ActionBarContextView.java
39a8dc4aaf6b8ff63b3168a8f7e3b8153d3891d8 28-May-2011 Adam Powell <adamp@google.com> Fix bug 4499292 - ActionBar tabs don't show the first time

Fix an order of operations issue with actionbar tab initialization.

Change-Id: Ie1b1c76614eafc68e0069985b93683b44699b958
nternal/widget/ActionBarView.java
3526556135e433504742c2ae4fcaada3525a6464 28-May-2011 Adam Powell <adamp@google.com> Fix bug 4399686 - missing menu after returning from fullscreen video
playback in browser

Change-Id: I992c6b1b4db738f937646e0dcac1c83fa5ab4e35
nternal/widget/ActionBarView.java
098f5bd427574b2d80912d683a2d4c0ca23e998f 27-May-2011 Adam Powell <adamp@google.com> Merge "Action bar tab layout tweaks."
d21aa12e8eb9d46ee92bf408b4b48386c6bf062d 27-May-2011 Adam Powell <adamp@google.com> Action bar tab layout tweaks.

Let tabs consume the full action bar when the menu is empty and other
elements are disabled when the tab bar would normally split onto a
second row..

Fix bug 4489724 - bug in ActionBarImpl#cleanupTabs.

Change-Id: I28a235d339137add0b106c6e733a6767fa547810
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarContainer.java
nternal/widget/ActionBarView.java
5ff0f99b23da389f59fe736c4c670c60f13be8ea 27-May-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add support for Gravity BEFORE and AFTER"
6a03640539405afbdefe72894759281b98aa6e6f 23-May-2011 Fabrice Di Meglio <fdimeglio@google.com> Add support for Gravity BEFORE and AFTER

- update layouts
- add Callback2 for RTL aware Drawable
- add unit tests

Change-Id: Ic64d0291e262170aff7297c6580b0b422eaa8d89
nternal/view/menu/IconMenuItemView.java
nternal/widget/TextProgressBar.java
ca6c3a2bba4445f492117697cb304a014a185159 27-May-2011 Gilles Debunne <debunne@google.com> am 4ce6822b: am 24de44a1: Merge "ExternalStorageFormatter takes an optional StorageVolume target." into honeycomb-mr2

* commit '4ce6822bc63665ca3e9d9984766f367ce4f4d3a7':
ExternalStorageFormatter takes an optional StorageVolume target.
4ce6822bc63665ca3e9d9984766f367ce4f4d3a7 27-May-2011 Gilles Debunne <debunne@google.com> am 24de44a1: Merge "ExternalStorageFormatter takes an optional StorageVolume target." into honeycomb-mr2

* commit '24de44a1877be3e5d63697f90c98a87a4d88b1fb':
ExternalStorageFormatter takes an optional StorageVolume target.
25151e4792e9be8dbb892b7eba7349773b8127af 27-May-2011 Adam Powell <adamp@google.com> Fix bug 4487948 - action bar tabs + configuration change = :(

Change-Id: If7f622865ae5597cd9fb664a2952481da5c7e09a
nternal/widget/ActionBarContainer.java
37051cdd8624c4821bb68169be427061c48ad837 26-May-2011 Gilles Debunne <debunne@google.com> ExternalStorageFormatter takes an optional StorageVolume target.

Change-Id: Ic85689659dbf49a7fcc1b7aaf25e4a94e62848b9
nternal/os/storage/ExternalStorageFormatter.java
f9f01008624e2d28c15a90d942fa36f98c8c967d 19-May-2011 satok <satok@google.com> Add Apis to send notifications when the suggestion was picked

- Due to a strong request from VoiceIME

Bug: 4443922

Change-Id: Ia539de0acf66053e0349daec459d75e36805f6bf
nternal/view/IInputMethodManager.aidl
nternal/widget/EditableInputConnection.java
f8ac6b7394cfd37f01471bb35475ff2930eee140 24-May-2011 Adam Powell <adamp@google.com> Action bar tab layout

Sync with UX on action bar tab layout behavior.

Make action bar tabs behave better with configuration changes.

LinearLayout now supports largest child measurement in unspecified
mode.

Change-Id: Id520641715a61c07e64124a0c5a70912996c98a0
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarView.java
nternal/widget/ScrollingTabContainerView.java
c1eb82373a89cff9ed04e581a8fb39eee1f739ab 24-May-2011 Jeff Brown <jeffbrown@google.com> Merge "Input device protocol enhancements."
80fd47ce75253dcdc2cfa85d7a3f42634b923a47 24-May-2011 Jeff Brown <jeffbrown@google.com> Input device protocol enhancements.

Added support for Linux multitouch protocol B (slots).

Added support for using the device's input properties as a hint
to determine the intended usage of a touch device.

Added support for the ABS_MT_DISTANCE axis.

Fixed a bug reporting the presence of the orientation axis.

Change-Id: Icf7b5a5a0f1a9cdf6ad2b35be8ea0c1a35815d48
nternal/widget/PointerLocationView.java
b5b1fb25853eb2e00f981d3b0bb52acd50684c4f 24-May-2011 Jeff Brown <jeffbrown@google.com> Merge "Support wrapping app processes to inject debug instrumentation. Bug: 4437846"
ebed7d6e35f7f960e6e6add2b8ab7c7a31a511c3 17-May-2011 Jeff Brown <jeffbrown@google.com> Support wrapping app processes to inject debug instrumentation.
Bug: 4437846

Change-Id: I4552501c693716b14714afb5c5248edaca9547ab
nternal/os/RuntimeInit.java
nternal/os/WrapperInit.java
nternal/os/ZygoteConnection.java
nternal/os/ZygoteInit.java
f4232e0097ffb672f5d1559b20c7230081efe34f 23-May-2011 Adam Powell <adamp@google.com> Change action button layout for split action bars

Change-Id: Ie1427ae6b0334bf0a8afd5cae968c286c82a3837
nternal/view/menu/ActionMenuView.java
f746fc9e45c2bc80d8af2eb10d849c5807ebe1c7 21-May-2011 Adam Powell <adamp@google.com> Fix bug 4450805 - item selection dispatching in submenus.

Change-Id: I6c56c9c8c6bd6c719250df4a21bda7d0ef463de4
nternal/view/menu/SubMenuBuilder.java
90177e59e5211dd9ab33761ce800e8a86a49d1e2 20-May-2011 Adam Powell <adamp@google.com> am d40575eb: am b9537db8: Merge "DO NOT MERGE Action bar config changes" into honeycomb-mr2

* commit 'd40575eb983eb7a1d383acc1f30f467374acd085':
DO NOT MERGE Action bar config changes
d40575eb983eb7a1d383acc1f30f467374acd085 20-May-2011 Adam Powell <adamp@google.com> am b9537db8: Merge "DO NOT MERGE Action bar config changes" into honeycomb-mr2

* commit 'b9537db8d9ee27efb4a98415ad2d6b50c1806e5d':
DO NOT MERGE Action bar config changes
dacbb746c99bd80bd618f1ba14eaa5a969e3b148 20-May-2011 Adam Powell <adamp@google.com> DO NOT MERGE Action bar config changes

Handle action bar padding on configuration changes when the app
handles these changes itself.

Change-Id: I044da9253a0be6b4bbabdc12891b6d4786725afa
nternal/widget/ActionBarView.java
961f8bef185389f81f33e091f108e2f313a43e5a 18-May-2011 Adam Powell <adamp@google.com> am 98603eed: am 30a76196: Merge "Fix bug 4416126 - orientation change bug with action bar overflow menu" into honeycomb-mr2

* commit '98603eed2ff95d1d0dcb7fc1ecf3c35f3b447f55':
Fix bug 4416126 - orientation change bug with action bar overflow menu
98603eed2ff95d1d0dcb7fc1ecf3c35f3b447f55 18-May-2011 Adam Powell <adamp@google.com> am 30a76196: Merge "Fix bug 4416126 - orientation change bug with action bar overflow menu" into honeycomb-mr2

* commit '30a76196c8f426b530a80166817d3280acb2b100':
Fix bug 4416126 - orientation change bug with action bar overflow menu
5d6c990b7fa1f83a7d96fbdcd6b056275e091878 18-May-2011 Adam Powell <adamp@google.com> Fix bug 4416126 - orientation change bug with action bar overflow menu

Change-Id: I8e327bd41e610c792db4eed36ed46b58e94c0ea0
nternal/view/menu/ActionMenuView.java
5d4034a37e5ac3832b91388024f6eddf343cf3f6 17-May-2011 Adam Powell <adamp@google.com> resolved conflicts for merge of 2b6ace58 to master

Change-Id: Icaff26a56c3e467317ca16d71e61fe8c5e60dfda
2b6ace5811c17e5fe5e4cf0b215395b7fb4c250d 17-May-2011 Adam Powell <adamp@google.com> am bd32a79e: am f721b398: Merge "Prevent cases of bogus action bar measurement." into honeycomb-mr2

* commit 'bd32a79ecb1109c71f80510c927f6dbc131ae563':
Prevent cases of bogus action bar measurement.
bd32a79ecb1109c71f80510c927f6dbc131ae563 17-May-2011 Adam Powell <adamp@google.com> am f721b398: Merge "Prevent cases of bogus action bar measurement." into honeycomb-mr2

* commit 'f721b398ad69503e1212e5fe8a44d176d25f135a':
Prevent cases of bogus action bar measurement.
1b4a1628f3c6deb5f3ce9027c4e5aaf98dab4d75 17-May-2011 Adam Powell <adamp@google.com> Prevent cases of bogus action bar measurement.

Change-Id: I92d3bc41aa82835e1aa23f208ab61e943266f186
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
143c529f28bd49e077e4bc36ff30ed2ff7ffb838 17-May-2011 Adam Powell <adamp@google.com> am 21f1d49f: am a7f52d46: Merge "DO NOT MERGE Use action bar overflow menus on large configurations as well as xlarge." into honeycomb-mr2

* commit '21f1d49f0eac47c1ebbabf82f145dc60f988d069':
DO NOT MERGE Use action bar overflow menus on large configurations as well as xlarge.
21f1d49f0eac47c1ebbabf82f145dc60f988d069 17-May-2011 Adam Powell <adamp@google.com> am a7f52d46: Merge "DO NOT MERGE Use action bar overflow menus on large configurations as well as xlarge." into honeycomb-mr2

* commit 'a7f52d4665967b4331d38408ba81af37ec589cb4':
DO NOT MERGE Use action bar overflow menus on large configurations as well as xlarge.
b07f943273a06383b4ab81793cbb6292f3d1586a 16-May-2011 Adam Powell <adamp@google.com> DO NOT MERGE Use action bar overflow menus on large configurations as
well as xlarge.

ICS will have a more intelligent way of determining this.

Change-Id: I1ba6460dec09b8259db858c78a9157bb7742c85d
nternal/view/menu/ActionMenuView.java
fe9f8ab03a63b1037f07dd85799fbea80ec6adaa 07-May-2011 Jeff Brown <jeffbrown@google.com> Add initial API for stylus and mouse buttons.

Added the concept of pointer properties in a MotionEvent.
This is currently used to track the pointer tool type to enable
applications to distinguish finger touches from a stylus.

Button states are also reported to application as part of touch events.

There are no new actions for detecting changes in button states.
The application should instead query the button state from the
MotionEvent and take appropriate action as needed.

A good time to check the button state is on ACTION_DOWN.

As a side-effect, applications that do not support multiple buttons
will treat primary, secondary and tertiary buttons identically
for all touch events.

The back button on the mouse is mapped to KEYCODE_BACK
and the forward button is mapped to KEYCODE_FORWARD.

Added basic plumbing for the secondary mouse button to invoke
the context menu, particularly in lists.

Added clamp and split methods on MotionEvent to take care of
common filtering operations so we don't have them scattered
in multiple places across the framework.

Bug: 4260011
Change-Id: Ie992b4d4e00c8f2e76b961da0a902145b27f6d83
nternal/widget/PointerLocationView.java
1d4d30aebd2c22627131819cabfe95f97def2c83 28-Apr-2011 Daniel Sandler <dsandler@google.com> It's lights out for you, navigation bar!

Views requesting lights out mode will cause the navbar to
disappear (this is useful for viewing videos/photos/etc
using every pixel of the screen).

But there's a catch: any user activity at all will cause the
lights to come back on and the navbar to return.

Change-Id: I535ed3ba9ae7fab3282c402be256add765395b6f
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
fba19ff5e8135878a1d87ed696e0a89cc776f37e 28-Apr-2011 Irfan Sheriff <isheriff@google.com> DO NOT MERGE Define Protocol class

Adds a common namespace for communication across
different state machines

Change-Id: Ib6a29715c651371f91a950348a8525275b6026a0
nternal/util/Protocol.java
5c1cb19f4075b3c4ab895a30ab5f2469aff5b553 06-May-2011 Adam Powell <adamp@google.com> Fix bug 4383987 - animate action modes with split action bars

Change-Id: I6aa800ae12ef51d1ba79f059ede7413d662a7d1a
nternal/widget/AbsActionBarView.java
b51cc1dd63808da505cd8beb7300f57dc98ff1d3 05-May-2011 Patrick Dubroy <dubroy@google.com> Merge "Only delay pressed feedback for Views inside a scrolling parent"
e0a799a2ac1ca78e30fbac9e4e12a063425c08d3 05-May-2011 Patrick Dubroy <dubroy@google.com> Only delay pressed feedback for Views inside a scrolling parent

Add a method on ViewGroup to determine whether it supports scrolling.
This allows us to show the pressed feedback immediately in many cases,
improving responsiveness of buttons, etc.

This patch also lengthens the timeout in order to reduce flashes
when the user is scrolling.

Change-Id: Ieb91ae7a1f8e8f7e87448f2a730381a53947996f
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
c6cc0f8c19d9eccf408a443fa2bf668af261dcd0 12-Apr-2011 Joe Onorato <joeo@google.com> Rename ViewRoot to ViewAncestor.

ViewRoot is about to be a new public class for poking at ViewAncestor.

Change-Id: Ie95d707c6d8bbb48f78d093d7b2667851812a7d5
nternal/widget/PasswordEntryKeyboardHelper.java
f3cd1d957c0d709a4704722b6397c934c1a770b8 27-Apr-2011 Adam Powell <adamp@google.com> Bug 4269063 - Populate contentdescription in action bar

home/up and action menu

Change-Id: Ia09d78d9d37848621e025b9af93a92cfd3bb8dc7
nternal/widget/ActionBarView.java
d1f4207ba577e2ac3f39a719f8ee4bb9f4940dc1 04-May-2011 Adam Powell <adamp@google.com> Fix bug 4355335 - android.app.cts.DialogTest.testContextMenu failing on IRJ28

Change-Id: Icfcd8c2aadd0fb9e49296b8318858317407e1b7f
nternal/view/menu/MenuDialogHelper.java
0d42f17f5ef034314ed65c3df47ed8ca24d38a12 03-May-2011 Adam Powell <adamp@google.com> Merge "Fix bug 4345702 - update action bar tab views when the Tab object is updated"
0d8ec1d739e15c232c58a5a5de605685830c287e 03-May-2011 Adam Powell <adamp@google.com> Fix bug 4345702 - update action bar tab views when the Tab object is
updated

Also fix a bug with visibility of split action bar views.

Change-Id: Iadd63d5e9b6cb9debab0f7a777e424e4c4807a13
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarView.java
f45f13bd152ce2743b3da06b83e9d25abe8b0917 03-May-2011 Wink Saville <wink@google.com> am 3165f1a8: am d0d44c4e: Merge "Make DataConnection asynchronous." into honeycomb-LTE

* commit '3165f1a8eb707b36a6b2c66379c3fde85d9cc2fd':
Make DataConnection asynchronous.
3165f1a8eb707b36a6b2c66379c3fde85d9cc2fd 03-May-2011 Wink Saville <wink@google.com> am d0d44c4e: Merge "Make DataConnection asynchronous." into honeycomb-LTE

* commit 'd0d44c4e988ecdea86c2bb04e29d8f6d20c1c631':
Make DataConnection asynchronous.
e42b189f369b6b0cb35095bc5386ba82b5ce39a5 03-May-2011 Adam Powell <adamp@google.com> Remove debug logging

Change-Id: If1a8ef5461b98239d8f55f842e1043b6b3d0f070
nternal/view/menu/ActionMenuPresenter.java
04748befb89768cdd2f0a3560d4951ff94c2b0af 03-May-2011 Adam Powell <adamp@google.com> Merge "Refactoring of action bar internals"
640a66eac612b850b5dabd3b93bd94f83ed2d567 29-Apr-2011 Adam Powell <adamp@google.com> Refactoring of action bar internals

Split action bar implementation details. Factor out common components
into AbsActionBar. Layout rules for the lower half of split action
bars.

Change-Id: I6bc39ba6c343055597880a7d4663dd8f30aa4999
nternal/app/ActionBarImpl.java
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/ActionMenuView.java
nternal/view/menu/MenuBuilder.java
nternal/widget/AbsActionBarView.java
nternal/widget/ActionBarContainer.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
0b80114a2d80c359a1b462c388247995ef653c00 03-May-2011 Wink Saville <wink@google.com> Make DataConnection asynchronous.

Change-Id: Ic0e01dded25ba1fdb3b2c6d0f95a1193f608a0e0
nternal/util/Protocol.java
a0449f03eb12462189f7a75f55e4751e1e2bcbcd 02-May-2011 Wink Saville <wink@google.com> Resolve merge conflicts for merge of 21083066 to master.

Change-Id: Ief83f7abdd3396af965fb86ad6815e16ce36ff5c
210830664d8525b6913a349b067ce11245f3536b 02-May-2011 Wink Saville <wink@google.com> am 7e74c60d: Merge "Enhance AsyncChannel." into honeycomb-LTE

* commit '7e74c60db5261ea137c8f6672f8573873eb5814e':
Enhance AsyncChannel.
0246bbc8d7b646a2344d04d5af41580fa9e17a98 02-May-2011 Wink Saville <wink@google.com> Enhance AsyncChannel.

- Use Protocol for BASE of CMD's.
- Add synchronous connect methods.
- Back port sha1 c23971b3e4f92ac31996d4f9f32eef3cb4ef65fd from master

Change-Id: If0b3f6cbbb8d4268cad6ca19d26ab2ee42390d86
nternal/util/AsyncChannel.java
nternal/util/Protocol.java
5e3357fcee2a23a08434873a89e8ada4c6e6d893 02-May-2011 Conley Owens <cco3@android.com> Merge commit '5eb49e0f' into m

Conflicts:
core/java/com/android/internal/os/BatteryStatsImpl.java

Change-Id: Idc9c84c2ca7dec2540ceccead7927fddb912ff12
5eb49e0f1e8e03e8808d8d7da6d5ffb761400e0b 30-Apr-2011 Conley Owens <cco3@android.com> am e321d064: am 2f463ef1: Merge "Adding a sanity test in the while loop in readHistory()"

* commit 'e321d06430304fa93282c765aa6070c908121a16':
Adding a sanity test in the while loop in readHistory()
2f463ef18bb235be57b39cbda536bcd2df2d0908 29-Apr-2011 Conley Owens <cco3@android.com> Merge "Adding a sanity test in the while loop in readHistory()"
9b4bee0f14bbd137b0797127aff2df46a6321ec5 28-Apr-2011 Adam Powell <adamp@google.com> Introducing the split action bar.

Apply (or extend) the theme Theme.Holo.SplitActionBarWhenNarrow or
Theme.Holo.Light.SplitActionBarWhenNarrow to enable splitting the
action bar across both the top and bottom of the screen. This places
the action menu along the bottom, leaving more room at the top for
titles, navigation, and custom views and more room at the bottom for
menu items.

TODO: Refine layout of the action menu when placed at the bottom of
the screen. Make action modes split as well.

Change-Id: I92c91f99c533f26aecf6b828ed041386c4f16922
nternal/app/ActionBarImpl.java
nternal/view/menu/ActionMenuPresenter.java
nternal/widget/ActionBarView.java
2dbf683b61cd2e6389fed2c028a18928234e315f 28-Apr-2011 Irfan Sheriff <isheriff@google.com> am c1f39396: am 8f87f838: Merge "Define Protocol class for use with StateMachine" into honeycomb-LTE

* commit 'c1f39396b94837f728c56b4c3e2f5c37e1d0eef7':
Define Protocol class for use with StateMachine
3fc75e9267a585101a06edc13d141b58efb9691f 28-Apr-2011 Irfan Sheriff <isheriff@google.com> Define Protocol class for use with StateMachine

Adds a common namespace for communication across
different state machines

Change-Id: I0a9ae872112567afd35a1dc95ac9283170f3f459
nternal/util/Protocol.java
dae7824c4b78d02159c6ad0896f246942d7b3d8c 26-Apr-2011 Adam Powell <adamp@google.com> Action bar work for phones

Drop tabs to a second row at < w480dp

Make 9-patches for the cab's "done" button thinner

Add a "disable home" display option to the action bar to turn off
focus and touch feedback when tapping home would do nothing

Change-Id: Ib2eedf311655f02055357321e2e9ad5b9037fed1
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarContainer.java
nternal/widget/ActionBarView.java
d0f650c6c3a123c856bb0adb138ae7cd0deed3d1 23-Apr-2011 Adam Powell <adamp@google.com> Fix mipmap selection for action bar icons

Change-Id: I6d34dabb5289284fd5821695ad14d8bdeb97e50d
nternal/widget/ActionBarView.java
45c515b0e962ee8ffc901872bcc9f25599ea0e78 22-Apr-2011 Adam Powell <adamp@google.com> Action bar work for phones

Tweak sizing and layouts for action bar on smaller devices. The action
bar's size is now partially dependent on form factor and orientation
to conserve screen space, especially in landscape mode.

Alter the max action menu items for smaller devices. Disallow text on
action menu items with a horizontal width of less than 480dp when an
icon is available.

Remove the "Done" text on the action mode close button. (TODO: get a
properly sized 9-patch resource for this - the current one has an
intrinsic width that is too large.)

When setting an action bar icon as a resource ID, the bar will attempt
to load a mipmapped resource that is the closest available for the
target size.

Change-Id: I2498c640666ade310fdd1d3a2078bd4000b392a2
nternal/app/ActionBarImpl.java
nternal/view/menu/BaseMenuPresenter.java
nternal/view/menu/MenuItemImpl.java
nternal/widget/ActionBarView.java
a86b350977be53146d568bc0736d0f2b4aef8de5 21-Apr-2011 Adam Powell <adamp@google.com> Fix bug 4329016 - Refresh menus properly while in batch update mode

Change-Id: Ia4a4feffb0a77a99e0b241c9cf1d737577d9154d
nternal/view/menu/MenuBuilder.java
696cba573e651b0e4f18a4718627c8ccecb3bda0 29-Mar-2011 Adam Powell <adamp@google.com> Refactor menu internals.

In the old world, MenuBuilder and MenuItemImpl were responsible for
generating views for any presentation of a menu. MenuBuilder needed to
know any types and resources involved, and the implied caching
semantics did not work well for menus presented within AdapterViews.

In the new world, the MenuPresenter interface takes over the
responsibility of generating views or adapters for menu
items. MenuBuilder/MenuItemImpl still provide extra metadata tracking
used by these presenters. Mutiple presenters may be active for a
single menu at a time. All of this remains internal framework
implementation details.

BaseMenuPresenter provides a simple base for presenters that treats
the host MenuView more like an AdapterView. This allows for less
rebuilding of views when items are added/removed.

Callbacks have been restructured. Calls that relate to the menu itself
are still handled by MenuBuilder.Callback, but calls related to a
specific presentation of a menu are handled by MenuPresenter.Callback
objects attached to a MenuPresenter.

Also add API to programmatically set divider options for LinearLayout
and hidden API so that ActionBarView can have finer-grained control
over divider placement.

Change-Id: I2265b86a084279822908021aec20dfbadc1bb56b
nternal/app/ActionBarImpl.java
nternal/view/StandaloneActionMode.java
nternal/view/menu/ActionMenuItemView.java
nternal/view/menu/ActionMenuPresenter.java
nternal/view/menu/ActionMenuView.java
nternal/view/menu/BaseMenuPresenter.java
nternal/view/menu/ExpandedMenuView.java
nternal/view/menu/IconMenuItemView.java
nternal/view/menu/IconMenuPresenter.java
nternal/view/menu/IconMenuView.java
nternal/view/menu/ListMenuItemView.java
nternal/view/menu/ListMenuPresenter.java
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuDialogHelper.java
nternal/view/menu/MenuItemImpl.java
nternal/view/menu/MenuPopupHelper.java
nternal/view/menu/MenuPresenter.java
nternal/view/menu/MenuView.java
nternal/view/menu/SubMenuBuilder.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
343c1ad7200619230a55caa6aa8a9d041e62b29d 19-Apr-2011 Wink Saville <wink@google.com> am 37677849: am 64c42cae: Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.

* commit '37677849998e6c9a39afe0a730b2f0131a371f3b':
Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.
64c42cae4482fe0157e977b8ddd0f2c2436b3f31 18-Apr-2011 Wink Saville <wink@google.com> Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.

Change-Id: Ib4b33894da75f5f156066092fb145b478e52f7d7
nternal/util/HierarchicalState.java
nternal/util/HierarchicalStateMachine.java
nternal/util/IState.java
nternal/util/State.java
nternal/util/StateMachine.java
230c323231c0de13a473fd35ecad7dd478487fc9 15-Apr-2011 Dianne Hackborn <hackbod@google.com> Merge "More battery stats improvements."
68f1b78b7b9139a0e34285ff641a664e664a14b8 11-Apr-2011 satok <satok@google.com> Add an API to get the last used input method subtype

Bug: 4075039

- Voice input requires to know the last used input method subtype.

Change-Id: I603a4fb88a2af5195e52188adfa6585ad80304fa
nternal/view/IInputMethodManager.aidl
1fadab5c36445bb9f0997904dbce44f8e234f847 15-Apr-2011 Dianne Hackborn <hackbod@google.com> More battery stats improvements.

We now write to the parcel using deltas. For common situations,
it only takes 4 bytes to write a delta (new command, time delta,
significant state changes, flags indicating additional state that
follows).

Increasing the buffer size to 128K, this give us 32,768 samples
if they all fit in the smallest delta. A device that is doing
something every minute (like acquiring a wake lock or doing a
wifi scan) for our max target battery life of 30 days would
generate 43,200 samples.

Also some turning to the maximum time between samples at which
we decide to completely collapse two samples.

Change-Id: I074a698d27ccf9389f9585abfc983af2f5ba7a54
nternal/os/BatteryStatsImpl.java
0ffc988a7f47013805d5abeed1c20f159b3bd799 14-Apr-2011 Dianne Hackborn <hackbod@google.com> Rewrite battery history storage.

We now write battery history directly into a buffer, instead of
creating objects. This allows for more efficient storage; later
it can be even better because we can only write deltas.

The old code is still there temporarily for validation.

Change-Id: I9707d4d8ff30855be8ebdc93bc078911040d8e0b
nternal/os/BatteryStatsImpl.java
37e344cbe277e8f4da944c19cffaf34f38f6396e 11-Apr-2011 Wink Saville <wink@google.com> am 1b00dc66: am 3156a8c1: Merge "Move ProcessedMessage into HierarchicalStateMachine." into honeycomb-LTE

* commit '1b00dc66d4b61b9a2bf44f76a9d3f54be91a2dbf':
Move ProcessedMessage into HierarchicalStateMachine.
d3059487abd526b91b912f70939c1c6994eecf52 11-Apr-2011 Wink Saville <wink@google.com> Move ProcessedMessage into HierarchicalStateMachine.

ProcessedMessage is really private to HSM and so moving
it into the HSM class.

Change-Id: Ida476fc7aae5e9bfb6ac632dac979e11f489b6fc
nternal/util/HierarchicalStateMachine.java
nternal/util/ProcessedMessages.java
ceb889711ff182aa0635f0776fdeeb7185f3a105 08-Apr-2011 Brian Carlstrom <bdc@google.com> Merge "Tolerate missing AccountManager resource, not just missing resource name"
b3fc1a5b8b8f88eaf00b05957523cbdc0944b24b 06-Apr-2011 satok <satok@google.com> Rename CorrectionSpan to SuggestionSpan

Change-Id: I004b2e012b2de4de959a31da1f55b63ca7c14199
nternal/widget/EditableInputConnection.java
43a17654cf4bfe7f1ec22bd8b7b32daccdf27c09 07-Apr-2011 Joe Onorato <joeo@google.com> Remove the deprecated things from Config.java. These haven't been working since before 1.0.

Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
nternal/app/ResolverActivity.java
nternal/content/NativeLibraryHelper.java
nternal/net/DomainNameValidator.java
nternal/os/BinderInternal.java
nternal/os/RuntimeInit.java
nternal/os/ZygoteInit.java
46703b099516c383a6882815bcf9cd4df0ec538d 07-Apr-2011 Brian Carlstrom <bdc@google.com> Tolerate missing AccountManager resource, not just missing resource name

In addition to the primary change in the subject, also some minor cleanup of javadoc, typos, CloseGuard warning, etc found while working on a new AbstractAccountAuthenticator.

Change-Id: I73f3408773a43a0021a15f8d051fd3dbbdf898a5
nternal/os/ZygoteInit.java
08065b9f09ead8895d97b2971622af8c179e1768 02-Apr-2011 Brian Carlstrom <bdc@google.com> Tracking merge of dalvik-dev to master

git cherry-pick --no-commit a80febd83c8bf0b6717da2a7136179bdc906a5b7

git cherry-pick --no-commit 5e642b41cf44c5da7afdd95ab3d5e2bdbf7b31dd

git cherry-pick --no-commit 4886db14c9eee4b6fee69bd54c57c5af04709c4c

git cherry-pick --no-commit 560c685e448769904047507b9484ce8111967d7e

git cherry-pick --no-commit 63dde7a2fcfa53dc531558635b64cea613d3cdb4

git cherry-pick --no-commit 74e5cb91060a379d98dd3a333b5f231bfb4f502e

git cherry-pick --no-commit 1cc8c9708b555e2e338b7798d38887a2fefcfea6

git cherry-pick --no-commit 09625a21f5abe0c0db15757f58585d552d62c3d7

git cherry-pick --no-commit fcb02dfe0f5a2bb7c07e6d6fc69f756a484b5458

git cherry-pick --no-commit a68cb7fa3ab42854768b8145ff85231663770292

git cherry-pick --no-commit 716beb1c131dd2c6b805d4f681debaa20075010c

git cherry-pick --no-commit 8c29b1097a7afe3a77e27546a56e396f3620a4ec

git cherry-pick --no-commit 9c6a1a55d1c8086c1cc57464eea43725694ff70c

git cherry-pick --no-commit b14f5ea5c57acdd009ba5b51f1bbe430f3d353b8

Change-Id: I8cc94175441b009e23549762d6baee1dbace4881
nternal/os/ZygoteInit.java
07fe4097872d6716f5303686da882e363c41d086 30-Mar-2011 Brian Carlstrom <bdc@google.com> Merge "SamplingProfilerIntegration and SamplingProfiler improvements (3/3)"
ed7e00729f78d11107f0e9a7f0559dfe4be6b560 24-Mar-2011 Brian Carlstrom <bdc@google.com> SamplingProfilerIntegration and SamplingProfiler improvements (3/3)

Summary:

frameworks/base
- fix profiling to collect data beyond the first snapshot
- avoid many small files, accumulate data over process lifetime

libcore:
- add support for VM specific sampling, trying to cut down overhead
- added support for converting snapshot files to text format
- fixed race in profiler when stopping

dalvik
- added VMStack.setThreadStackTrace interface for filling a stack
trace into an existing StackTraceElement[]

Details:

frameworks/base

Changed snapshots from text to binary hprof format (bumping version to 3)
Changed from one file per snapshot to one file per process lifetime.
Restart profiling after snapshot.

core/java/com/android/internal/os/SamplingProfilerIntegration.java

Add quick test in maybeSnapshot to avoid doing work when the
SamplingProfilerIntegration is disabled. Make maybeSnapshot
private. Remove unneeded memory allocation in handleLowMemory.

core/java/android/app/ActivityThread.java

libcore

Added ThreadSampler interface. This allows VM specific thread
sampling optimizations. The portable version continues to use
Thread.getStackTrace().

dalvik/src/main/java/dalvik/system/profiler/ThreadSampler.java
dalvik/src/main/java/dalvik/system/profiler/PortableThreadSampler.java
dalvik/src/main/java/dalvik/system/profiler/SamplingProfiler.java

Add VMStack.setThreadStackTrace and use in new DalvikThreadSampler
to avoid allocating a full stack trace when only a limited depth
is desired.

dalvik/src/main/java/dalvik/system/profiler/DalvikThreadSampler.java
dalvik/src/main/java/dalvik/system/VMStack.java

Refactored BinaryHprof.readMagic out of BinaryHprofReader so it
can be used by HprofBinaryToAscii converter to probing file
types. Added magic number constant to be shared between readMagic
and BinaryHprofWriter.

dalvik/src/main/java/dalvik/system/profiler/BinaryHprof.java
dalvik/src/main/java/dalvik/system/profiler/BinaryHprofReader.java
dalvik/src/main/java/dalvik/system/profiler/BinaryHprofWriter.java
dalvik/src/main/java/dalvik/system/profiler/HprofBinaryToAscii.java

Removed unneeded HprofWriter interface. Changed to simpler static
interface to write HprofData to binary and text formats.

dalvik/src/main/java/dalvik/system/profiler/HprofWriter.java
dalvik/src/main/java/dalvik/system/profiler/AsciiHprofWriter.java
dalvik/src/main/java/dalvik/system/profiler/BinaryHprofWriter.java
dalvik/src/test/java/dalvik/system/profiler/SamplingProfilerTest.java

Added support for reading snapshot files created by
SamplingProfilerIntegration by stripping the text header to allow
easier conversion to the text format.

dalvik/src/main/java/dalvik/system/profiler/HprofBinaryToAscii.java

Fixed race between Sampler and
SamplingProfiler.stop. SamplingProfiler.stop previously simply
called the Sampler's TimerTask.cancel method, but this does not
wait for a currently running Sampler to finish. The TimerTask
documentation says the only reliable way to do this is to have the
run() cancel itself, so that is what is now done, with new code to
ensure that SamplingProfiler.stop does not return until the
Sampler has been terminated.

dalvik/src/main/java/dalvik/system/profiler/SamplingProfiler.java

dalvik

Refactored VMStack_getThreadStackTrace to create helper getTraceBuf
used to implement new VMStack_setThreadStackTrace. The new version
interface fills an existing StackTraceElement[], avoid allocating
unnecessary StackTraceElements.

vm/native/dalvik_system_VMStack.c

Refactor dvmGetStackTraceRaw to create dvmSetStackTraceRaw which
fills in an existing, potentially smaller, StackTraceElement[].

vm/Exception.c
vm/Exception.h

Change stack depths to be unsigned to avoid signed/unsigned comparison warnings.

vm/Ddm.c
vm/Exception.c
vm/Exception.h

Change-Id: I4b90255e4e1d33ea2b569321c4968b0f3369f251
nternal/os/SamplingProfilerIntegration.java
e3797a15fbf769a0abcbe121cfd33b4b658aea1e 21-Mar-2011 satok <satok@google.com> Removed APIs for setCorrectionSpan from InputConnection

("setCorrectionSpan" was added in Id3abc9ea4d11753cd )

Also..
- Added a class java doc for CorrectionSpan
- Removed FLAG_DEFAULT
- Changed the return type of getSuggestions from Array<CharSequence> to String[]

Change-Id: If5eb091e307a7a40c5b4a70ec1fe6059ecd9fb2d
nternal/view/IInputConnectionWrapper.java
nternal/view/IInputContext.aidl
nternal/view/InputConnectionWrapper.java
nternal/widget/EditableInputConnection.java
ba08462ebe766204089c68b346dd3dcf9ddd5fbb 25-Mar-2011 Adam Cohen <adamcohen@google.com> Merge "Modifying RemoteViewsFactory interface"
4ad06c32bda3d95382ab6ef29b1b5777e8516de3 25-Mar-2011 Brian Carlstrom <bdc@google.com> Merge "Tracking SamplingProfiler change in libcore"
2625feae79ab418355c2a4dafe8b162bba3cc1cf 24-Mar-2011 Adam Cohen <adamcohen@google.com> Modifying RemoteViewsFactory interface

-made onDestroy() one way
-moved uncaught exception handling to the application process

Change-Id: I958571a34eaa48b27e441e3a117c109fb2d2c644
nternal/widget/IRemoteViewsFactory.aidl
a9602db3d5a6c9bc5a7a31b4fe3cc141235ad332 24-Mar-2011 Brian Carlstrom <bdc@google.com> Tracking SamplingProfiler change in libcore

Change-Id: Ic45a1570c01340a5406468a9d0f2a5357175fd80
nternal/os/SamplingProfilerIntegration.java
1147bb698908156cf26615af0bd7e4d1180f1f20 24-Mar-2011 Adam Powell <adamp@google.com> Merge "Fix bug 4084399 - with usb keyboard, actionbar menuitems with icon+text take dpad focus twice in row"
6bddd8771d05889024778caa78fb1eaae68a0802 24-Mar-2011 Adam Powell <adamp@google.com> Fix bug 4084399 - with usb keyboard, actionbar menuitems with
icon+text take dpad focus twice in row

Fix action menu item layout focusability so that only the full item is
focusable. Fix up listeners appropriately.

Change-Id: I127c36404894869a08c5f4472491e3e596563c5c
nternal/view/menu/ActionMenuItemView.java
b7c25ce3aef3c6e930fc3f31436f52aed8ebed14 24-Mar-2011 Jeff Brown <jeffbrown@google.com> Merge "Add MotionEvent.HOVER_ENTER and HOVER_EXIT."
a032cc008618b83ecbbede537517d1e7998e3264 08-Mar-2011 Jeff Brown <jeffbrown@google.com> Add MotionEvent.HOVER_ENTER and HOVER_EXIT.

The input dispatcher sends a HOVER_ENTER to a window before dispatching
it any HOVER_MOVE events. For compatibility reasons, the window will
*also* receive the HOVER_MOVE. When the pointer moves into a different
window or the pointer goes down or when events are canceled for some reason,
the input dispatcher sends a HOVER_EXIT to the previously hovered window.

The view hierarchy behavior is similar. All views under the pointer
receive onHoverEvent with HOVER_ENTER followed by any number of HOVER_MOVE
events. When the pointer leaves a view, the view receives HOVER_EXIT.
Similarly, if a parent view decides to capture hover by returning true
from onHoverEvent, the hovered descendants will receive HOVER_EXIT.

The default behavior of onHoverEvent is to update the view's hovered
state by calling setHovered(true/false). Views can query their current
hovered state using isHovered().

For testing purposes, the hovered state is mapped to the pressed
drawable state. This will change in a subsequent commit with the
introduction of a new hovered drawable state.

Change-Id: Ib76a7a90236c8f2c7336e55773acade6346cacbe
nternal/widget/PointerLocationView.java
d814504979c989915888a777606c3c68c0bab316 24-Mar-2011 Adam Powell <adamp@google.com> Fix bug 3484000 - ActionBar visibility issue

Fix up action bar visibility state when shown without animation.

Change-Id: I51e56e2c983d7bb608bb6834d39ac2c5d926d63c
nternal/app/ActionBarImpl.java
07e1f988c053e37dcde2479052d8bedb9db5bec2 24-Mar-2011 Adam Powell <adamp@google.com> Fix bug 4136071 - CAB causes the action bar to be shown, regardless of
previous state

Hide the action bar upon finishing a mode if it was hidden when the
mode started. If show() is called while the mode is active, the bar
will not hide when the mode finishes.

Change-Id: I7d9b593b9ecd9fa633251abebcdca0d85405252a
nternal/app/ActionBarImpl.java
1969b8799085322f9ef6e75b78c2c9a5d5944801 22-Mar-2011 Adam Powell <adamp@google.com> Fix bug 4142917 - Add support for specifying a custom home icon in action bar

Add ActionBar methods for setting icon and logo.

Change-Id: I6151689138c734b7212c3469b8ba8f28f0fd5ec4
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarView.java
8f4c49d86e38f423ffeccd3ccc0c493246be30d0 22-Mar-2011 Carl Shapiro <cshapiro@google.com> Merge "Remove dead code from the Zygote initialization."
f973eaae0841988e9ea8d51a3e28418d03e2be1c 22-Mar-2011 Carl Shapiro <cshapiro@google.com> Remove dead code from the Zygote initialization.

Change-Id: Iad66437d6dae01ab94cfade86f3f7416a2896728
nternal/os/ZygoteInit.java
21c83b4d9f8b19a39f12dded617e727b0cb89e33 18-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> am f15b3db3: am 10221a22: am b02d3956: am e16a1bfa: Use system locale list.

* commit 'f15b3db3eb69683d23f379697cf86f8487845847':
Use system locale list.
b02d395650a9a5fb13812cefa0ada1501f5b6d62 18-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> am e16a1bfa: Use system locale list.

* commit 'e16a1bfa9cd9a9a0430e2fe890586ae451f0faaf':
Use system locale list.
e16a1bfa9cd9a9a0430e2fe890586ae451f0faaf 18-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use system locale list.

Context's assets may be different from system's. We should
prefer system's to reflect PRODUCT_LOCALE.

Bug: 4104675
Change-Id: I968c3baf6bfeb945f1b71ec709d5088332482319
nternal/app/LocalePicker.java
adb435835fb9a5f2bb74d29930b239dde18504a7 09-Mar-2011 satok <satok@google.com> Add CorrectionSpan and APIs to pass a secure CorrectionSpan to TextView

- CorrectionSpan is a span which has suggestions made by IME.
This has a function to change the current IME to other IME specified
in this span. For security reasons, only the current IME
is allowed to use this function through InputConnection.
(IME token is used for checking the validity of it.).

- CorrectionSpan stores following information:

flags, subtype Id, InputMethodInfo Id, suggests, locale, original string

Change-Id: Id3abc9ea4d11753cdc4f483a2bb3128f49ba198a
nternal/view/IInputConnectionWrapper.java
nternal/view/IInputContext.aidl
nternal/view/InputConnectionWrapper.java
nternal/widget/EditableInputConnection.java
d022c23aed0d022057c0074a158b522c83e906e4 15-Mar-2011 Kenny Root <kroot@google.com> Merge "Revise free space checks for package installs"
e196481d59982664247bc18d5743727965362dfa 15-Mar-2011 Adam Powell <adamp@google.com> am fbe9ca72: am 1d233d97: Merge "Fix bug 4088936 - Tabs in the action bar don\'t seem to have a fading edge" into honeycomb-mr1

* commit 'fbe9ca72625e9789f334e96b731a6ce0e4153ada':
Fix bug 4088936 - Tabs in the action bar don't seem to have a fading edge
c18c38f36eb04707a7995d69db17e1f0915c6d94 15-Mar-2011 Adam Powell <adamp@google.com> Fix bug 4088936 - Tabs in the action bar don't seem to have a fading edge

Change-Id: I23c736ad458c721dfa86563f66b42dd5d6ca708e
nternal/widget/ActionBarView.java
62e1b4e9d41a01db423b5e4684ecf529ed46106d 15-Mar-2011 Kenny Root <kroot@google.com> Revise free space checks for package installs

Change-Id: Ie72bbab77aa89a50ec096edc1f471eab74829e67
nternal/app/IMediaContainerService.aidl
nternal/content/PackageHelper.java
0c5820ad8eafd3828ab0dea4794945b4f0637e13 14-Mar-2011 Mike Lockwood <lockwood@android.com> am 151c74b3: am e976ff4a: Merge "Add a dialog to ask user to start an application for a USB device or accessory" into honeycomb-mr1

* commit '151c74b3c679a1799d01f210a2a3f4a658154320':
Add a dialog to ask user to start an application for a USB device or accessory
bce6f8f249ff2b65df9ed790cc460053ab8eccec 13-Mar-2011 Mike Lockwood <lockwood@android.com> Add a dialog to ask user to start an application for a USB device or accessory

This is used when there is only one application available and the user has
not chosen to start it by default.
If more than one application is available we continue to use UsbResolverActivity

Bug: 4074719

Change-Id: Id61f2ccc6de5b9ac70fb4670006ff1fee2028d55
Signed-off-by: Mike Lockwood <lockwood@android.com>
nternal/app/ResolverActivity.java
1b365921e88b14857d8e0826e221c371d25f6cb2 10-Mar-2011 Jim Miller <jaggies@google.com> Fix 3201849: Enable hardware acceleration in LockScreen WaveView [DO NOT MERGE]

Change-Id: I07bbed7843857158cd2c1ffd9b184bde7fd5860d
nternal/widget/WaveView.java
3fa8a454f61c772036f5f38661d1a077fd3d8388 10-Mar-2011 Jim Miller <jaggies@google.com> Fix 3201849: Enable hardware acceleration in LockScreen WaveView

Change-Id: Id64e82fe2e09ac231736d7867cd47b504d79b81b
nternal/widget/WaveView.java
06a0c9f5ee1f1c51607446f29ffb9697fa95e549 10-Mar-2011 Jeff Brown <jeffbrown@google.com> Merge "Make PointerLocationView also log generic motions and some keys. (DO NOT MERGE)" into honeycomb-mr1
460d2c18860dfaeb1d9b36db012f340d0b79e1be 10-Mar-2011 Dianne Hackborn <hackbod@google.com> am de478eca: am 7b5cb3c0: Merge "Fix issue #4068088: NPE at com.android.internal.os.BatteryStatsImpl..." into honeycomb-mr1

* commit 'de478eca19adc263c033d777b0e6a33c8113fd24':
Fix issue #4068088: NPE at com.android.internal.os.BatteryStatsImpl...
7b5cb3c033f758368580664a8bdad43b47f3682d 10-Mar-2011 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #4068088: NPE at com.android.internal.os.BatteryStatsImpl..." into honeycomb-mr1
32de2f67ea8276086ae91cbda1d0ef06caf4b3cb 09-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4068088: NPE at com.android.internal.os.BatteryStatsImpl...

...addHistoryRecordLocked(BatteryStatsImpl.java:1210)

It was doing a bunch of stuff without holding a lock!

Change-Id: Ie5b56514370e0bfc87ba7737d75e01df0859817e
nternal/os/BatteryStatsImpl.java
696e66e44b89ca812137a31a1eab09bb8e84aa95 07-Mar-2011 Jeff Brown <jeffbrown@google.com> Make PointerLocationView also log generic motions and some keys. (DO NOT MERGE)

Change-Id: I657588ae08fa462a6ad79326bcd8a199885ff28b
nternal/widget/PointerLocationView.java
27230862b1185a76255e4ff541c657dc63108057 09-Mar-2011 Adam Powell <adamp@google.com> am 529eb76b: am 12230eaa: Merge "Fix bug 4065021 - Adjust spacing of the "home" action bar item to be consistent with the "up" indicator" into honeycomb-mr1

* commit '529eb76b8add903c67ecf0178b6b4603edd64ebb':
Fix bug 4065021 - Adjust spacing of the "home" action bar item to be consistent with the "up" indicator
2b0952b197470a457f4f436911f1d07f553d15da 09-Mar-2011 Adam Powell <adamp@google.com> Fix bug 4065021 - Adjust spacing of the "home" action bar item to be
consistent with the "up" indicator

Make sure that the "home" affordance in the action bar always occupies
the same amount of space regardless of whether or not the "up"
indicator is visible. This means centering the application icon/logo
in the remaining space after the "up" indicator has been added.

Change-Id: I3c81cfe8255546d4dd676af913895713baba4f13
nternal/widget/ActionBarView.java
e6320d0b177016e0fe23c11c75a3cd35b55170d0 08-Mar-2011 Irfan Sheriff <isheriff@google.com> Merge "Handle client loss for a full connection"
c23971b3e4f92ac31996d4f9f32eef3cb4ef65fd 05-Mar-2011 Irfan Sheriff <isheriff@google.com> Handle client loss for a full connection

Bug: 3513246
Change-Id: I928544a05702bb004457e2b0d2eeb3c34f98edf9
nternal/util/AsyncChannel.java
5281cc81762421e3e106288e3aeea638cd58228f 08-Mar-2011 Jeff Brown <jeffbrown@google.com> Merge "Make PointerLocationView also log generic motions and some keys."
8fca37ce308e45f58220752ef9776c55ef44491d 05-Mar-2011 Adam Powell <adamp@google.com> Fix bug 3501766 - Make the action bar "up" visual more prominent

Change-Id: Id4b104dd6ca1df662479ab54f045e119585f990f
nternal/widget/ActionBarView.java
c3fe7669d6276b43e82c802743a7e8974bae52a5 07-Mar-2011 Jeff Brown <jeffbrown@google.com> Make PointerLocationView also log generic motions and some keys.

Change-Id: Ia7ec0f1a98e9eaf1c59db90b8f77a3cd4cf69625
nternal/widget/PointerLocationView.java
7866be2b76e421ca28e5dcbd3e7d362baf279dd9 03-Mar-2011 Mike Lockwood <lockwood@android.com> am 40bbf929: DO NOT MERGE: Backport USB accessory support to gingerbread

* commit '40bbf9295d5245d3917629ce15f7b37670aef1ac':
DO NOT MERGE: Backport USB accessory support to gingerbread
7e48e76cab10377367b925790cf3a840651009fa 02-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Start using NetworkUtils.numericToInetAddress."
e590373ea71251cfffc8f22f011e2e6335dce716 23-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Start using NetworkUtils.numericToInetAddress.

Generates InetAddresses without risking an accidental dns lookup. For use with supposedly
numeric-only ip address strings.

Change-Id: I694f3976ce1c6382854706f6557ea88a289add3a
nternal/net/DomainNameValidator.java
40bbf9295d5245d3917629ce15f7b37670aef1ac 01-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: Backport USB accessory support to gingerbread

Signed-off-by: Mike Lockwood <lockwood@android.com>
nternal/app/ResolverActivity.java
02eb8746de2d60563ec2751a34d20923192e4293 27-Feb-2011 Mike Lockwood <lockwood@android.com> UsbManager: Enhancements for managing USB devices and accessories

When a USB device or accessory is connected, the UsbService now asks the
user which application to associate with the device or accessory.
Applications interested in devices or accessories must specify the
devices they work with via meta-data attached to their manifest.
Permission to communicate with the device is assigned when the user chooses
the activity to use for the device.
The user has the option of clicking the "always use this application" checkbox
to make the assignment automatic in the future.
The user may later clear this preference and revoke permission for an application
to have permission to communicate with the device by clicking the "Clear defaults"
button for the activity in the Manage Applications panel in Settings.

Added class UsbResolveActivity (a subclass or ResolveActivity for choosing
an activity for a USB device or accessory)

Added UsbDeviceManager, which manages the mapping between USB devices/accessories
and applications, including default applications for devices and accessories,
and manages application permissions.

Add interface to allow Settings to clear device and accessory
preferences and permissions for an application.

Remove obsolete ACCESS_USB permission.

Add new signatureOrSystem MANAGE_USB permission to allow administrating
preferences and permissions.

Moved UsbService.java to a "usb" subdirectory, along with new classes
UsbResolveActivity and UsbDeviceManager.

Change-Id: I92554381e9779e68ce380daaee4e1401fb875703
Signed-off-by: Mike Lockwood <lockwood@android.com>
nternal/app/ResolverActivity.java
f41768c5837a078239e92d8fa1d2155394e4b6ac 28-Feb-2011 Mike Lockwood <lockwood@android.com> am f7b99b32: Merge "Give system server permission to access USB. DO NOT MERGE" into gingerbread

* commit 'f7b99b32ad7a4872376355acabb5984142ba5e75':
Give system server permission to access USB. DO NOT MERGE
89e7f9fd70689e08bbaf8ea29e58ece3002414a1 28-Jul-2010 Mike Lockwood <lockwood@android.com> Give system server permission to access USB. DO NOT MERGE

Change-Id: I8d64bcaf2483eaa8690aef7ee2d1bb8ed9453fbe
Signed-off-by: Mike Lockwood <lockwood@android.com>
nternal/os/ZygoteInit.java
33bbfd2232ea9eaae9a9d87a05a95a430f09bd83 25-Feb-2011 Jeff Brown <jeffbrown@google.com> Add support for mouse hover and scroll wheel.

Dispatch ACTION_HOVER_MOVE and ACTION_SCROLL through the View
hierarchy as onGenericTouchEvent. Pointer events dispatched
this way are delivered to the view under the pointer. Non-pointer
events continue to be delivered to the focused view.

Added scroll wheel support to AbsListView, ScrollView,
HorizontalScrollView and WebView. Shift+VSCROLL is translated
to HSCROLL as appropriate.

Added logging of new pointer events in PointerLocationView.

Fixed a problem in EventHub when a USB device is removed that
resulted in a long stream of ENODEV errors being logged until INotify
noticed the device was gone.

Note that the new events are not supported by wallpapers at this time
because the wallpaper engine only delivers touch events.

Make all mouse buttons behave identically. (Effectively we only
support one button.)

Change-Id: I9ab445ffb63c813fcb07db6693987b02475f3756
nternal/widget/PointerLocationView.java
84bbb020217adcdfe0694c44ccab57e208ffde16 21-Feb-2011 Winson Chung <winsonc@google.com> Fixing issue where RemoteViewsService.onDestroy() was never being called.

Change-Id: I15ad04eee18bc3e09d4846c7f2f2d2d8d168e518
nternal/widget/IRemoteViewsFactory.aidl
22577b8d3a39c1373594ba3e4427212eee4cd6d4 24-Feb-2011 Jason Chen <jasonchen@google.com> am 5ff79c3b: Merge "DO NOT MERGE Cherry-pick of Ie4026a7c back to GB" into gingerbread

* commit '5ff79c3b06d7087153617dc973491fc890700af5':
DO NOT MERGE Cherry-pick of Ie4026a7c back to GB
9248e95a2f03afe4cded90f0209ab825f253dd37 06-Jan-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE Cherry-pick of Ie4026a7c back to GB

Original change description follows:
-----------------------------------

Implement issue #3326435: Battery stats improvements

Keep track of discharge while screen is on vs. off.

Checkin looks like:

5,0,u,dc,1,1,1,0

The last four numbers are, from left:

- Maximum battery drain over time period.
- Minimum battery drain over time period.
- Battery drain while screen was on.
- Battery drain while screen was off.

Change-Id: Ie3cfe52df29b3f28ba8dc3350abe6cc967c76324
nternal/os/BatteryStatsImpl.java
3d865240e776374ced4ea50e6cb7f8ac92a32640 21-Feb-2011 Per Andersson <per.andersson3@sonyericsson.com> Adding a sanity test in the while loop in readHistory()

Adding a sanity test in the while loop in readHistory() which
is useful in case the file read (batterystats.bin), is corrupt.
The file can get corrupt (missing end of file marker -1) if
writeHistory fails for some reason. Without this change
readHistory will continue looping untill an OutOfMemory is
thrown.

Change-Id: I3418d258e7cb99aa2f9d934c9449a19806499ce4
nternal/os/BatteryStatsImpl.java
cc0c159e9b3dd4e0f48da0ce3e33d2c68a651413 19-Feb-2011 Jeff Brown <jeffbrown@google.com> Add new hover move action and scroll wheel plumbing.

Added support for tracking the mouse position even when the mouse button
is not pressed. To avoid confusing existing applications, mouse movements
are reported using the new ACTION_HOVER_MOVE action when the mouse button
is not pressed.

Added some more plumbing for the scroll wheel axes. The values are
reported to Views but they are not yet handled by the framework.

Change-Id: I1706be850d25cf34e5adf880bbed5cc3265cf4b1
nternal/widget/PointerLocationView.java
6f2fba428ca5e77a26d991ad728e346cc47609ee 19-Feb-2011 Jeff Brown <jeffbrown@google.com> Add new axes for joysticks and mouse wheels.

Added API on InputDevice to query the set of axes available.
Added API on KeyEvent and MotionEvent to convert keycodes and axes
to symbolic name strings for diagnostic purposes.
Added API on KeyEvent to query if a given key code is a gamepad button.
Added a new "axis" element to key layout files to specify the
mapping between raw absolute axis values and motion axis ids.
Expanded the axis bitfield to 64bits to allow for future growth.
Modified the Makefile for keyboard prebuilts to run the keymap
validation tool during the build.
Added layouts for two game controllers.
Added default actions for game pad button keys.
Added more tests.
Fixed a bunch of bugs.

Change-Id: I73f9166c3b3c5bcf4970845b58088ad467525525
nternal/widget/PointerLocationView.java
e7c943926db892d479ba4a0a9b9b314db8abaaee 19-Feb-2011 Adam Powell <adamp@google.com> Merge "Add an API to listen for window attach/detach events on a View."
4afd62b18c52a55371ab923d54f93615ad68fd7a 19-Feb-2011 Adam Powell <adamp@google.com> Add an API to listen for window attach/detach events on a View.

Fix bug 3312949 - inconsistent state in MenuPopupHelper

Change-Id: Ie802ada3f8de4cf71c92fcc7c6abce9ba85e7b75
nternal/view/menu/MenuPopupHelper.java
5284090631e638b916d9a453212e9dc802656a67 18-Feb-2011 Wink Saville <wink@google.com> Changes for ril.h version 6.

Change-Id: Iacd9d362c4836546ac277cf3571227d426a721aa
nternal/os/BatteryStatsImpl.java
ca51e8788a58f2af3525b7214a675f2d0233e5da 15-Feb-2011 Adam Powell <adamp@google.com> Fix some bugs with MenuPopupHelper and ListPopupWindow

Clean up handling of a few conditions in MenuPopupHelper that the
monkeys manage to trigger around the use of ViewTreeObserver. (bug
3443819, bug 3312949)

Fix a bug where a stale handler message could cause a ListPopupWindow
to reopen itself after being dismissed. (bug 3453607)

Change-Id: I488014767ccee785500862a2572beb35901d173b
nternal/view/menu/MenuPopupHelper.java
01feaee3d9767ef1185783877e92244f14d7d4ba 11-Feb-2011 Adam Powell <adamp@google.com> Fix bug 3372468 - ActionBar menu shouldn't be clickable after
ActionBar.hide() is called

Action bar will capture touch events and prevent focus from passing to
its children while animating out.

Change-Id: I4501f785ead2afa34f020f9bc1a1121932f3c047
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarContainer.java
50efbed668a9410cdec51f7c8604fa44ed267fed 09-Feb-2011 Adam Powell <adamp@google.com> Fix bug 3345948 - ActionBar.show()/hide() shouldn't animate if called
before first layout

Enable/disable the action bar show/hide animation as part of the
activity/dialog lifecycle. This allows apps to set action bar
visibility state as the activity first becomes visible or returns to
visibility without the associated animation.

Change-Id: I85ff9268d2cb2c8fcd3364dd275597fe90529224
nternal/app/ActionBarImpl.java
326a23a38172a2552dcc33169db5e67c85a8080a 08-Feb-2011 Adam Powell <adamp@google.com> Merge "Fix bug 3426162 - Overflow menu closes on its own"
f2d7a5d8312b78f84e6cc63277ec7ec874722015 08-Feb-2011 Adam Powell <adamp@google.com> Fix bug 3426162 - Overflow menu closes on its own

Makes populating action menus smarter, doesn't completely empty and
repopulate. Fixes issues where changing menus can leave popups without
an anchor.

Change-Id: I03cc266f0952123c5704a78cdcfc69b77af1915b
nternal/view/menu/ActionMenuView.java
nternal/widget/ActionBarView.java
9ac50056ddf8ad44a04cdfe60bf0716f8a227008 07-Feb-2011 Mike Cleron <mcleron@google.com> am c1467908: am b8578741: Merge "Fix issue #3424823: 4-corner trick causes runtime restart" into honeycomb

* commit 'c14679089376fb7df28eb0a829518b33abb1d794':
Fix issue #3424823: 4-corner trick causes runtime restart
32cd1d5053fdca49463adc83adb7b7dad13904e0 07-Feb-2011 Daniel Sandler <dsandler@google.com> resolved conflicts for merge of 31796297 to master

Change-Id: Ice632b3378f8f67c186245fdb63b022ade864ba1
7da70821f7a2c22dfed4a2c2afc3c9e73427babc 07-Feb-2011 Dianne Hackborn <hackbod@google.com> am 94baff47: am 1b1962f3: Merge "Fix issue #3420898: More wallpaper issues" into honeycomb

* commit '94baff47975fb3ae1380333f23fc2de2dc65eb86':
Fix issue #3420898: More wallpaper issues
b85787411085bbea0ac725135cae02a4167b7aa7 04-Feb-2011 Mike Cleron <mcleron@google.com> Merge "Fix issue #3424823: 4-corner trick causes runtime restart" into honeycomb
912d9d13698693709991b76f83a8d64179e97e83 04-Feb-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3424823: 4-corner trick causes runtime restart

Change-Id: Ibd3fc63d0ab975a2b74765a00023c7f783b24216
nternal/service/wallpaper/ImageWallpaper.java
4ad2547fe08bab430d7d9f9cc4b789410856c9c3 04-Feb-2011 Daniel Sandler <dsandler@google.com> Merge "Ongoing notification for GPS use." into honeycomb
e40451a89dc91dfd636af7cb32a23b4a4cc93fdc 03-Feb-2011 Daniel Sandler <dsandler@google.com> Ongoing notification for GPS use.

This change improves upon the notification priority API
introduced in change I9e738cc4, allowing privileged clients
to set the priority of a notification when posting it
directly to INotificationManager. StatusBarTest is updated
to test this new feature.

The new LocationController in SystemUI uses this facility to
post a high-priority ongoing notification whenever GPS is in
use (replacing the functionality of the legacy GPS status
bar icon).

Also happens to fix http://b/3325472 (adding a log message
when notifications are dropped because of a missing icon).

Bug: 3412807

Change-Id: I523016ffa53bf979be98ddc4a2deb55a6270c68a
nternal/statusbar/StatusBarNotification.java
4dce4fc8ea8c5c6df9db33b24b5733d5d9ef0f6b 04-Feb-2011 Daniel Sandler <dsandler@google.com> am a2e82d4c: am 6f922cbe: Merge "Implement priority ordering in notifications." into honeycomb

* commit 'a2e82d4c69bc25eb9f262be0efb4bd38695c4f86':
Implement priority ordering in notifications.
ac1471a4fff660710f88afc679c4119fdf8dc417 03-Feb-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3420898: More wallpaper issues

- The ImageWallpaper wasn't watching for the desired dimensions to
change, at which point it needs to resize its surface.
- The system process has been running with the small dalvik heap
limit, which is too tight with these huge wallpapers; this would
cause switching wallpapers to eventually stop working as it
couldn't get the memory it needed to load the new one.
- The compatibility mode background surface had a bunch of issues,
such as moving its windows to the right by the window size to
make them disappear. This of course doesn't play well with the
now super-sized wallpaper surface. This code is re-worked to
not require such shenanigans.

Change-Id: I64fde4059645d8507f1c4761ba6c17b89877a5c0
nternal/service/wallpaper/ImageWallpaper.java
a31e4190cb44eaa51bb8dee7d715fcd72d6c0b03 03-Feb-2011 Daniel Sandler <dsandler@google.com> Implement priority ordering in notifications.

Ongoings are the only notifications currently given higher
priority (and it's in an internal data structure, not a
public API, so fear not about abuse---this will be no worse
than on the phone where ongoings floated to the top).

The only thing left is to give privileged customers a way to
alter the priority of their notifications.

Bug: 3412807
Bug: 3146719
Change-Id: I9e738cc413982845cf4858faa8ccd0a7dbf3187c
nternal/statusbar/StatusBarNotification.java
929a1c219248b62778807cac8ea256c7ac0fda6a 02-Feb-2011 Brian Carlstrom <bdc@google.com> Removing android.security.MessageDigest

Bug: 3392028
Change-Id: I6b9732da17d086ba00c846c3ad1c7fb39baf9502
nternal/widget/LockPatternUtils.java
f185552f63fe4a4a1a8de602bc6fc6e57d3ff7fe 02-Feb-2011 Dianne Hackborn <hackbod@google.com> Make image wallpaper use a big surface.

Change-Id: I119f2bfee5fde08040520bd0da8574194a893ab5
nternal/service/wallpaper/ImageWallpaper.java
d76cee2b09866c5a22c1de45becc03677be52e95 01-Feb-2011 Adam Powell <adamp@google.com> Fix bug 3408834 - actionbar stays gone when leaving reader in
lightsout mode

Fix an opportunity for race conditions when the action bar is
shown/hidden rapidly.

Change-Id: I91c0666cad3afd8a4d870d642f971949fba0d333
nternal/app/ActionBarImpl.java
b2abd8c424a68eb6a5e3615a99f66c0bd46e6063 30-Jan-2011 The Android Open Source Project <initial-contribution@android.com> Mass merge from gingerbread - do not merge

Change-Id: I45dc3596bf4211d8f91c64f2d1d00588878df629
3c89f6d1bd0821d0ae0205a5b48176156735aaac 30-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Add "Use physical keyboard" option to system bar IME button." into honeycomb
a2e765ef1ad2cb907a4ae0a93bb15e4764ebb59a 29-Jan-2011 Jason parks <jparks@google.com> Merge "Update the encryption password when the device password is changed." into honeycomb
962d556a12b60b04f3c8b0bdfda84165bb4ba062 29-Jan-2011 Jean-Baptiste Queru <jbq@google.com> Merge f126ad3b from gingerbread

Change-Id: I13a79033239d306fcf9291ca7fad7445f2cd1f47
c5e35fd24652725f8cf8a182572800aeca3fd108 29-Jan-2011 Arnaud Ferir <arnaud.ferir@trusted-logic.com> am 5e81a6e2: Fix trace mismatch.

* commit '5e81a6e21e9977acd9dfafaf030bf51c8572a98f':
Fix trace mismatch.
4485edce05aecd5a8fd9bdb215e2a4386c520fe4 29-Jan-2011 Jim Miller <jaggies@google.com> am 42a46157: Fix 3379239: Catch exceptions from workaround for OOM.

* commit '42a461570b9c5502959e429c4f16ca5ca860c4f2':
Fix 3379239: Catch exceptions from workaround for OOM.
2992ea782fa61780d8e0de7a36a2a84622f8694b 29-Jan-2011 Jeff Brown <jeffbrown@google.com> Add "Use physical keyboard" option to system bar IME button.

Bug: 3391067
Change-Id: I136087ca4f726d0068d5983d7d3686787ba60c55
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
d11f5d2c5e41b4f2f5bda5ecca793efd2ab2300b 28-Jan-2011 Gilles Debunne <debunne@google.com> Merge "Fix for TextView's error popup behavior when using soft keyboard." into honeycomb
f7b3cd4efd40b7631f36ea014407a850f7dc637e 27-Jan-2011 Jason parks <jparks@google.com> Update the encryption password when the device password is changed.

* Added changeEncryptionPassword() to the MountService.
* Update LockPatternUtils to call changeEncryptionPassword()
when the password is changed.

Note we only require the new password to change the
encryption password.

Bug: 3382129
Change-Id: I26a7e919e325e75e22fa4290da0a8b1b57b55a80
nternal/widget/LockPatternUtils.java
857fd9b8562c29913e03ed29288bd1802d37dc60 28-Jan-2011 Joe Onorato <joeo@google.com> Plumb whether an input view is actually visible or not through from the IME
to the status bar.

Bug: 3391067
Change-Id: I049531155bf7ee0b29874916c0b5b0a45b73c09e
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
nternal/view/IInputMethodManager.aidl
b7fc63f7aac3689696f7f84953009b5928ac3db3 28-Jan-2011 Gilles Debunne <debunne@google.com> Fix for TextView's error popup behavior when using soft keyboard.

Bug 3370191

The documented behavior is to hide the error when the text changes.
However, this should not be the case if the error was reset by a text watcher.

Comparing errorBefore and errorAfter as was done before is not sufficient in the
case where the error is reset to the same value. String pool optimization will re-use
the same Object and it will look like the error has not been modified (hence the
blinking behavior reported in the bug).

For this reason, TextView has a mErrorWasChanged flag. The fix is to export methods
that can use this flag as in done inside TextView when a physical keyboard is used.

These methods are hidden.

Change-Id: Ie3ec59a368f3b1588b81242890b971ac48e8ff7e
nternal/widget/EditableInputConnection.java
992f75bcd0ca37147df832c0cfc41995422df6db 27-Jan-2011 Jeff Hamilton <jham@android.com> resolved conflicts for merge of 6687ecb4 to honeycomb-merge

Change-Id: Id9677d2ef1c03191cf73a7d90e80b57ea686afec
8996cf071abf5e6a6458da258a1d59bcaafc3c2c 27-Jan-2011 Jim Miller <jaggies@google.com> Fix 3381324: Restart ripples when the user moves away from the edge.

This changes the behavior of WaveView to start waves again when
the user moves the halo back towards the center.

Change-Id: Ia3b8fbd091e90e83e0c34b98a3060d3236191d7a
nternal/widget/WaveView.java
2c070bae4493cd1976c5086ec4cbf6ce10482742 26-Jan-2011 Winson Chung <winsonc@google.com> Merge "Re-enabling queued unbinding of services after requests to the service. (3394210)" into honeycomb
16c8d8a558f94ec14ef52bb5ac11044e2d0d902c 21-Jan-2011 Winson Chung <winsonc@google.com> Re-enabling queued unbinding of services after requests to the service. (3394210)

- Fix for crash when detaching from window
- Potential fix for occasional IllegalStateException when updating List based widgets

Change-Id: I3d3f2bb691552a1136111043db686c4926b510c6
nternal/widget/IRemoteViewsFactory.aidl
644f9c3ad93f6674abff4143b78404cd222b5e30 25-Jan-2011 Joe Onorato <joeo@google.com> Make FLAG_FULLSCREEN not go into lights out mode anymore.

Change-Id: I4a0aa8789f537717f82df4efb6a35108e1ab1784
nternal/statusbar/IStatusBarService.aidl
5dcc9bd7261d6b19135bf972cf603b355b5316f4 25-Jan-2011 Adam Powell <adamp@google.com> Merge "Fix bug 3387855 - Menu flashes on left side of screen" into honeycomb
eb645a15b95ba917ce360b135f92cbcb6df56104 25-Jan-2011 Jeff Hamilton <jham@android.com> am f126ad3b: Merge "Use classnames instead of ints for NFC techs." into gingerbread

* commit 'f126ad3b6484ef62eed202f1f49cc4557c0a3848':
Use classnames instead of ints for NFC techs.
e2b03a62e5014ea60e24a989544fa549b493a520 25-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3387855 - Menu flashes on left side of screen

Post popup menu click events rather than executing inline so that the
popup can close undisturbed.

Change-Id: I01481bd37d7921c10c6b8b484eab33f0d25447ff
nternal/view/menu/MenuPopupHelper.java
d88e9aa575eb3a9d20cdb0e8918d54993e1ce1e0 24-Jan-2011 Jeff Hamilton <jham@android.com> Use classnames instead of ints for NFC techs.

This makes the system more flexible and allows
adding new technology types without having to
update the API.

Change-Id: Iaee6b633965e501a70e8afc3f1d54d9d94a4d05a
nternal/app/ChooserActivity.java
nternal/app/ResolverActivity.java
30bc34f191ca8a009af313fc751e5b4bff6e39a1 25-Jan-2011 Jeff Brown <jeffbrown@google.com> Fix surface frame size reporting.

The SurfaceHolder provided by the wallpaper service was not reporting
the correct size in getSurfaceFrame(). This broke an optimization in
the ImageWallpaper. The old code happened to work because calling
lockCanvas on the SurfaceHolder with a null dirty rectangle happened
to have the side-effect of updating the SurfaceHolder's surface frame
size field because it passed mSurfaceFrame as the dirty rect, causing
mSurfaceFrame to be set to the size of the region to be drawn.

However, relying on this side-effect is wrong. Among other things,
the dirty region could actually be smaller than the surface frame.

This patch fixes WallpaperService, SurfaceView and ViewRoot to ensure
that the surface frame size is always set explicitly and is not modified
by calls to lockCanvas.

Change-Id: I10948f5ec269409ceaf0f7d32b3f6731e9499ebc
nternal/service/wallpaper/ImageWallpaper.java
nternal/view/BaseSurfaceHolder.java
8d37c4efeb853fdc6626f89b5bc0ec79eb451162 25-Jan-2011 Brian Carlstrom <bdc@google.com> Merge "Tracking jarjar of org.bouncycastle to com.android.org.bouncycastle" into honeycomb
93dd6a6ad1825b3c0296aa1b1afc8f3c8d90206f 25-Jan-2011 Dianne Hackborn <hackbod@google.com> am 3ea5728e: Tweak level at which we reset battery stats to 90%.

* commit '3ea5728e703554f8ba0bb3aa1367d6dc45d704bb':
Tweak level at which we reset battery stats to 90%.
1821ff9022f0ea5f5c5d82a96a05f46192d50c26 25-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3178934 - Make MenuBuilder notify its adapters of changes

Change-Id: I28603afbdfdd913aa06f3a07065e27aff1dc524b
nternal/view/menu/MenuBuilder.java
4140faeebbfa23d56068c1862b2913fb62145f4f 25-Jan-2011 Brian Carlstrom <bdc@google.com> Tracking jarjar of org.bouncycastle to com.android.org.bouncycastle

Bug: 3086427
Change-Id: I7af99fe4c36d9a519777f0499ccab65646313879
nternal/backup/LocalTransport.java
85d3ef337bdd21109e9c29356a6df96aacb3f849 25-Jan-2011 Jim Miller <jaggies@google.com> Merge "Fix 3381304: disable key preview in LockScreen's qwerty keyboard" into honeycomb
c831e3192ccd9b2cf69ec7c973005e578631da3b 24-Jan-2011 Adam Powell <adamp@google.com> Merge "Fix bug 3382994 - android.view.WindowManager$BadTokenException" into honeycomb
55767443adaf31c377ff1d7abf2d3fe7f01bfbaa 24-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3382994 - android.view.WindowManager$BadTokenException

Remove pending callbacks when ActionMenuView is detached.

Change-Id: Ia61e446f60f10dd82476c00b4c11177182e7db60
nternal/view/menu/ActionMenuView.java
abbcc241c0db3d9167b5e6baeac1a07f009a05a5 24-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3237638 - make it easy to change a "refresh" AB button/icon
into the indeterminate progress icon

This fixes a bug that caused ActionViews to not be updated properly
after a pass through invalidateOptionsMenu/onPrepareOptionsMenu. Apps
can now set/clear action views to display progress spinner widgets or
anything else on demand.

Change-Id: I138eceb504177c6bb5b86d40a68a82973aa841a5
nternal/view/menu/MenuItemImpl.java
10ab8617e85c9a675ff8251cd328beb4e047777c 24-Jan-2011 Arnaud Ferir <arnaud.ferir@trusted-logic.com> am 5e81a6e2: Fix trace mismatch.

* commit '5e81a6e21e9977acd9dfafaf030bf51c8572a98f':
Fix trace mismatch.
5e81a6e21e9977acd9dfafaf030bf51c8572a98f 24-Jan-2011 Arnaud Ferir <arnaud.ferir@trusted-logic.com> Fix trace mismatch.

Change-Id: Ie6e9a2baef63d2b5621593203742c2ffeaafc4ba
nternal/nfc/LlcpSocket.java
033f63a1a5e8f768a72a11561fe70957eb44fa3e 24-Jan-2011 Jeff Brown <jeffbrown@google.com> Fix a regression in the wallpaper drawing.

We should not lock and post the surface if we don't intend to
draw anything into it.

Change-Id: Idfd1cf127bdc1f5e1f5e783a8991d44de90878da
nternal/service/wallpaper/ImageWallpaper.java
a6ce081970a78233ba6b9792149ee5f1390cba7b 24-Jan-2011 Adam Powell <adamp@google.com> Merge "Fix bug 3381275 - Too much padding on the left of a custom nav bar" into honeycomb
2a7ea67a03f3e53f59129fdea98c42c1ea02097f 24-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3381275 - Too much padding on the left of a custom nav bar

Hide the title layout if it's empty to omit any included padding.

Change-Id: I01d287c8e214ed3648a47f5ca00b50f78d1659ad
nternal/widget/ActionBarView.java
4c541b1303b0ee2b9b0d19bee85d3780c5c4c110 24-Jan-2011 Joe Onorato <joeo@google.com> Merge "visibility ("lights out") API." into honeycomb
664644d9e012aa2a28ac96f305b1ce6499ec8806 24-Jan-2011 Joe Onorato <joeo@google.com> visibility ("lights out") API.

1. Views may setSystemUiVisibility() to recommend that
the system chrome (status bar or other UI) show or hide
itself. (This functionality was previously available only
via the FLAG_FULLSCREEN window flag for some SystemUI
implementations.)

2. Views may register a OnSystemUiVisibilityChangedListener
on a view, and find out when the system UI actually
appears or disappears, allowing apps to coordinate the
appearance of their own UI if desired.

Bug: 3241144
Change-Id: Ia1758d94099182d49a1e3688ea2738ae4995b829
nternal/statusbar/IStatusBarService.aidl
nternal/view/BaseIWindow.java
7ed3d005ac5ed26221ccc3596c0b81522909ca76 24-Jan-2011 Adam Powell <adamp@google.com> Merge "Fix bug 3380292 - long title in actionbar context mode pushes buttons over edge" into honeycomb
b0ff6f995553a5deb1f22e43e44715b316d33a88 24-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3380292 - long title in actionbar context mode pushes buttons over edge

Also adjust default web text selection menu to allow overflow, preventing items
from being cut off in portrait or on smaller screens.

Change-Id: I686c9a8daab31a38c2fcb75ee1402f09f568c238
nternal/widget/ActionBarContextView.java
e2be3416f2851a5bc482ad103c771f212e88ef20 24-Jan-2011 Jesse Wilson <jessewilson@google.com> Merge "Don't call broken+deprecated SamplingProfiler.writeHprofData" into honeycomb
7dd879a6a7efe4726007a7c0a0e6553398789017 24-Jan-2011 Jim Miller <jaggies@google.com> Fix 3381304: disable key preview in LockScreen's qwerty keyboard

Change-Id: I679dc9306a95b02bd7319e100c9f8871848fb134
nternal/widget/PasswordEntryKeyboardHelper.java
1323ab83e4be088fd66ad73ea9da617e46382987 23-Jan-2011 Jim Miller <jaggies@google.com> am 42a46157: Fix 3379239: Catch exceptions from workaround for OOM.

* commit '42a461570b9c5502959e429c4f16ca5ca860c4f2':
Fix 3379239: Catch exceptions from workaround for OOM.
42a461570b9c5502959e429c4f16ca5ca860c4f2 23-Jan-2011 Jim Miller <jaggies@google.com> Fix 3379239: Catch exceptions from workaround for OOM.

This catches possible exceptions caused by attempting to
unregister a receiver that may have already been unregistered.
This is related to the OOM issue workaround in Change I99a7e0c3.

Change-Id: Ib69a8acc6b12659125c958a03efac0a8a68a3859
nternal/widget/DigitalClock.java
fa2e504087362989e5dd7fe6e65b6481cef59495 23-Jan-2011 Jeff Brown <jeffbrown@google.com> Avoid unnecessarily redrawing the wallpaper.

Added some logic to ImageWallpaper to avoid redrawing the wallpaper
when it is not necessary. Even with the resize fixes, we were still
redrawing the wallpaper an extra 5 times due to visibility and
offset changes which had no real effect.

Change-Id: Ifa39b7bb8c0f7a6a41bc81e00cc2159440f529c5
nternal/service/wallpaper/ImageWallpaper.java
db35269ae4e6a6572156e39557a993d5b730c167 23-Jan-2011 Jesse Wilson <jessewilson@google.com> Don't call broken+deprecated SamplingProfiler.writeHprofData

http://b/3381260
Change-Id: I5cf5ef8fbac2ada3669a0f7eff42f834db6573d7
nternal/os/SamplingProfilerIntegration.java
b3312b88c1f10cd29f9b55b03d5b41fc429ebfb5 22-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3360851 - actionbar overflow menu button doesn't trigger "audible selection"

Change-Id: I768d35f9752d5f6466708fd191781aa26aefd121
nternal/view/menu/ActionMenuView.java
6465f7753783a614948fb3ffbd8c072345b4eea1 20-Jan-2011 Jim Miller <jaggies@google.com> Fix 3374446: Allow multiple shift keys in Keyboard.

This fixes a bug introduced in 3c6dd8f9 because we now
have two shift keys. The code now tracks a global state
and looks for up to two shift keys.

Update after review and added code to handle extra
invalidate required by additional shift key.

Change-Id: Ic1728dd0ceec089089cd1beca1b0b30565d6e658
nternal/widget/PasswordEntryKeyboard.java
nternal/widget/PasswordEntryKeyboardView.java
1264c33163146d6088675d197551a63b3f9d360b 20-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3362375 - API REVIEW: remove unused public 'up' id

Fix bug 3362453 - API REVIEW: android.app.ActionBar

Change-Id: I4e0233cd9355a47682bfe7b4a7fda39801586f1a
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarView.java
a85467bc8da8d4cecd47ed30da04c72c4f7bd842 20-Jan-2011 Gilles Debunne <debunne@google.com> Error popup no longer flickers in TextViews.

The removed lines were committed by the Android Open Source Project.
Their intent was probably: the message was there before, it is identical
after a text change, let's remove it to not annoy the user who already saw it.

The behavior however is that the message is displayed then hidden, then displayed
as the user types.

Bug 3365016

Change-Id: Ie820f8e5465ad8ab5890272c42627686e0d7961b
nternal/widget/EditableInputConnection.java
7666ebd9f29df718f57354e0317db2ccbe6369b0 19-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Bee seeing you..." into honeycomb
81f39eb6e76d0be1dd341af835e8002a0f80524e 12-Jan-2011 Winson Chung <winsonc@google.com> Refactoring app widgets to address security/performance issues.

- Moving the service binding to AppWidgetService to prevent arbitrary apps from binding to widget services
- Requiring RemoteViewsServices to require android.permission.BIND_REMOTEVIEWS permission

Change-Id: Id135bafba998299eb278067712b8a5d8487cfd04
nternal/appwidget/IAppWidgetService.aidl
nternal/widget/IRemoteViewsAdapterConnection.aidl
3023afefd4cedcd7a8994b059c7d4d04a45edd44 19-Jan-2011 Dianne Hackborn <hackbod@google.com> Bee seeing you...

Change-Id: I023425e1752b91fed36e6b005b7b03816f779d9c
nternal/app/PlatLogoActivity.java
661b6cfb2bcecdd335540db7059e5d8e22c2e79a 19-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Okay, new plan for dialogs." into honeycomb
ef57575887bde74ef09e9f21aae6b02f9c8163c7 19-Jan-2011 Dianne Hackborn <hackbod@google.com> Okay, new plan for dialogs.

Don't dismiss by default when tapping outside, even for AlertDialog.

If AlertDialog doesn't have any buttons, tapping outside will dismiss it.

Applications can make their own dialogs (or activities looking like
dialogs) can use the existing and new APIs to control this behavior
themselves so that it does the right thing.

Change-Id: I02bfb9161e169de0033200211b3a7ec80080bd83
nternal/app/AlertController.java
nternal/app/ChooserActivity.java
a1e6358a4c62c8b6de1f2428901e45b688bd9e9f 19-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3365208 - Contextual Action Bar is not displayed when the context item is changing

Change-Id: I9e7ec4ab14c6008397d26c499ccf478f8875f918
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarContextView.java
c6d2a767ce26014fee85ecbe81e1c439898f2ebc 18-Jan-2011 Jim Miller <jaggies@google.com> Merge "Fix 3303606: invalidate WaveView after resetting state" into honeycomb
607d320c9d18a57350bef72cc74017366ffd04ec 17-Jan-2011 Jim Miller <jaggies@google.com> Fix 3303606: invalidate WaveView after resetting state

This fixes a bug where the unlock state machine was in the
reset state when it awakes which caused it to ignore
the first unlock attempt. The reason for this is the state
machine didn't run again until the next user input.

We now invalidate the drawing area to ensure the unlock state
machine runs and is ready when LockScreen shows again.

Change-Id: I9f2b279d432ff634ba0b29e606cdc954718a2ad2
nternal/widget/WaveView.java
a1487347f5ba24648303bf8c9e455ca2ef0de7ea 17-Jan-2011 Adam Powell <adamp@google.com> Merge "Fix bug 3362446 - NPE in legacy menus" into honeycomb
4192e38827b27416410516d4bb0d545c36f4660e 17-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3362446 - NPE in legacy menus

Change-Id: Icf9a0bec46c74ace3acbc85eea45d1d769b699d1
nternal/view/menu/MenuBuilder.java
db7f38673c33ba55801019007ff18fa4c57f75e0 17-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Start renaming FragmentTransaction.openTransaction() to beginTransaction()." into honeycomb
48e7b458694acdf3a4fc58e62437f1dbc4f29d83 17-Jan-2011 Dianne Hackborn <hackbod@google.com> Start renaming FragmentTransaction.openTransaction() to beginTransaction().

Change-Id: Ib4a6d824b33cca699b7b25159c491fb610d5f5da
nternal/app/ActionBarImpl.java
77769c7a9130afa48e46dbd79da8271c271ab1e9 17-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3360954 - Text overlaid on menu icons

Change-Id: Ie59a325b7037d93aeec01c862646f900d52e1d7c
nternal/widget/ActionBarContextView.java
36fced9b211255e2137014e21fb3259042d8da85 17-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3050138 - Action bar does not display correctly when many
action items are added

Rules for action bar overflow:

Items are considered for inclusion in the order specified within the
menu. There is a limit of a total count, optionally including the
overflow menu button itself. This is a soft limit; if an item shares a
group ID with an item previously included as an action item, the new
item will stay with its group and become an action item itself even if
it breaks the max item count limit. This is done to limit the
conceptual complexity of the items presented within an action
bar. Only a few unrelated concepts should be presented to the user in
this space, and groups are treated as a single concept.

There is also a hard limit of consumed measurable space. This limit
may be broken by a single item that exceeds the remaining space, but
no further items may be added. If an item that is part of a group
cannot fit within the remaining measured width, the entire group will
be demoted to overflow. This is done to ensure room for navigation and
other affordances in the action bar as well as reduce general UI
clutter.

The space freed by demoting a full group cannot be consumed by future
menu items. Once items begin to overflow, all future items become
overflow items as well. This is to avoid inadvertent reordering that
may break the app's intended design.

Change-Id: I878f6b15619059258c91c01f4fe838feac161d6d
nternal/view/menu/ActionMenuView.java
nternal/view/menu/MenuBuilder.java
578e73dac8ba6cd27d3a708f691aefd8a1e33bbb 17-Jan-2011 Jim Miller <jaggies@google.com> am 6687ecb4: Merge "Fix 3106227: use WeakReferences for receivers in DigitalClock class" into gingerbread

* commit '6687ecb447025a1c56253d0fd67ad30af070db17':
Fix 3106227: use WeakReferences for receivers in DigitalClock class
7a1c32e719725787acda4885ad7bd8031975e8c7 15-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Add support for detecting finger orientation." into honeycomb
517bb4c859a2bb8d30316204f39bf5b6c89c3e4d 15-Jan-2011 Jeff Brown <jeffbrown@google.com> Add support for detecting finger orientation.

Change-Id: I901fc61f7705fcd7950190dc8782bad616032ee2
nternal/widget/PointerLocationView.java
8b886fab5496b0b1f5193f21855220176deddc37 14-Jan-2011 Jim Miller <jaggies@google.com> Fix 3106227: use WeakReferences for receivers in DigitalClock class

This works around a bug in the framework where LockScreen wouldn't
get GC'd under certain circumstances which would lead to an OOM
crash. It now uses WeakReferences for observers inside the
DigitalClock container class and unregisters them if the containing
DigitalClock goes away.

Also removed mLive variable which was unused and could potentially
leak the receivers.

Left mAttached for debugging so we can use it to determine if the
calls to onAttachToWindow() and onDetachFromWindow() are grossly
unbalanced which may be the root cause of the original problem.

Have cleanUp() explicitly clear unused references to make
tracing through hprof references easier.

Change-Id: I99a7e0c356001b05eab5aa729564553666febfea
nternal/widget/DigitalClock.java
06bc9721d8f5db053b51e1c536e746833ad46036 15-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Disable soft keyboard when keyboard attached." into honeycomb
4aed78b5056560f499e5953f659fa90a06ecc38a 15-Jan-2011 Jeff Brown <jeffbrown@google.com> Disable soft keyboard when keyboard attached.

Also hide menu shortcuts everywhere until we can get around to
redesigning the menu UI to be more consistent.

Bug: 3306545
Bug: 3330748
Change-Id: I4d4e19525cdfc93d9aae0dcaa1e6266fb552c5bc
nternal/view/menu/MenuBuilder.java
9f125d341521efc8535e32e35a641be50d405c36 15-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3339039 - Preserve proper behavior for action button text when
updated.

Change-Id: If3529616d5a2b69638b2b0c4070d5ebbb418410c
nternal/view/menu/ActionMenuItemView.java
946137520d67d3c18ceaba058e622f24b7fbf04d 14-Jan-2011 Adam Powell <adamp@google.com> Merge "Rework action bar menus." into honeycomb
e7d468410b3a783560d5158a5798cef1b4b67702 14-Jan-2011 Adam Powell <adamp@google.com> Rework action bar menus.

Fix bug 3328810 - remove icons from action bar overflow menu. Popup
menus now will not show icons. Give popup menu items a minimum width.
Alter the sizing of popup menus.

Fix bug 3192635 - revise rules for action menu dividers. Dividers now
appear between the overflow button and any other items next to it, and
anywhere they disambiguate touch targets between text and other
content. Action views are on their own and should include their own
dividers if needed.

Remove dividers from around action bar spinners and tabs.

Change-Id: I935b48b473606ac2adde5e2b251bf30ebe2a3da9
nternal/view/menu/ActionMenuItemView.java
nternal/view/menu/ActionMenuView.java
nternal/view/menu/ListMenuItemView.java
nternal/view/menu/MenuItemImpl.java
nternal/widget/ActionBarView.java
48e8ac311bdb50a62717b95b40e556b3506068a3 14-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3347747 - Use a better context when fetching resources for
action modes

Change-Id: I0c6595c290a9d41f673944c127d2e9aaf7dc84ce
nternal/app/ActionBarImpl.java
32aa2c90ee6e12f6c53c7d572d5c02f1d795b8f7 12-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3338079 - Dialog styled activity decor

Fixed a bug in FastScroller that could cause a crash on an empty list
in always-show mode.

Fix holo light button text color

Change-Id: I7b50043d715b9b870eb34808017d743ba64d2e08
nternal/app/AlertController.java
f0ad6e6eaf48ac8f4007232ad0a8511a7b5cfc0e 11-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3333015 - Overflow menu item submenus do not open

Submenus of action bar menus will open as new menus.

Change-Id: I924b87bbea91b0df5e3608ec894530302c0e1d8d
nternal/view/menu/ActionMenuView.java
nternal/view/menu/MenuPopupHelper.java
81f9b286d1308ba72c0d4a12668311e37b8b4ddd 10-Jan-2011 Jim Miller <jaggies@google.com> Fix 3299611: Use system font for AM/PM indicator

This fixes a bug where translations wouldn't pick up the proper
AM/PM indicator because AndroidClock.ttf doesn't contain the
full Android character set for translations.

Change-Id: I61737bae7383946906a4e6b776afa7463da9355d
nternal/widget/DigitalClock.java
00bba682efedbe121f31c98697f91101b1c22b82 09-Jan-2011 Adam Powell <adamp@google.com> Amendment to fix for bug 3332414

Change-Id: Id3047f6ea6f8f5c68318057798e285cc1e06d094
nternal/widget/ActionBarContextView.java
dd10b66601ed0b288dc93b43e14cd9fd71355728 09-Jan-2011 Adam Powell <adamp@google.com> Bug 3332414 - UI glitch in CAB options

Change-Id: Ic066f968b0125276c315f31adbd96420e528362f
nternal/widget/ActionBarContextView.java
947f7824118f0e9b642df8760a8725a7eda59318 08-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3245465 - Themed dialog icons

Added light/dark versions of holo dialog icons. Apps using
AlertDialogs that wish to use the system dialog icon should use
setIconAttribute(android.R.attr.alertDialogIcon) instead of
setIcon(android.R.drawable.ic_alert_dialog).

Change-Id: I40793a3164478be5ffa045ededfcab8210753a4b
nternal/app/HeavyWeightSwitcherActivity.java
nternal/app/ShutdownThread.java
5e3f284baa271cb0fbf90e504d19fdd2e385382e 08-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3200615 - "MenuPopupHelper cannot be used without an anchor"

Add protection against views disappearing before previously posted
Runnables attempt to show a menu anchored to them.

Change-Id: Ia2a322e76665e61feb5bdb92377d5066cb6d5b04
nternal/view/menu/ActionMenuView.java
nternal/view/menu/MenuPopupHelper.java
d16c9884bb0bd06f9d7aa1be649226a5df6591ee 07-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3330223 - onCreateOptionsMenu() unable to getActionView()
immediately after orientation change

Inflate action view layout resource earlier so that calls to
getActionView are valid immediately after menu inflation.

Change-Id: I8023328b1a77670ac42a783f6e4b46aa5c2a798e
nternal/view/menu/ActionMenuView.java
nternal/view/menu/MenuItemImpl.java
97b0b7bbd41bf3bc6095a513c329e1143300ec3a 07-Jan-2011 Dianne Hackborn <hackbod@google.com> am 3ea5728e: Tweak level at which we reset battery stats to 90%.

* commit '3ea5728e703554f8ba0bb3aa1367d6dc45d704bb':
Tweak level at which we reset battery stats to 90%.
345a9f4e6d0a1b60664b010385f36456a5fef25d 07-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3212471 - Widget.Holo.ActionButton style and friends now 76% more useful

Change-Id: Ideb37c8a31e37df8fcfc549d12b4b6cafc983ca1
nternal/view/menu/ActionMenuView.java
c1b40e361c6cd3bdc53499f17ac09f45e6873059 06-Jan-2011 Dianne Hackborn <hackbod@google.com> Implement issue #3326435: Battery stats improvements

Keep track of discharge while screen is on vs. off.

Checkin looks like:

5,0,u,dc,1,1,1,0

The last four numbers are, from left:

- Maximum battery drain over time period.
- Minimum battery drain over time period.
- Battery drain while screen was on.
- Battery drain while screen was off.

Change-Id: Ie4026a7cc8aabb2a6d47d03d2e278aa51c2d5ddf
nternal/os/BatteryStatsImpl.java
3ea5728e703554f8ba0bb3aa1367d6dc45d704bb 06-Jan-2011 Dianne Hackborn <hackbod@google.com> Tweak level at which we reset battery stats to 90%.

Change-Id: I81151809100912c7956536d5d47279d2c2fea8c4
nternal/os/BatteryStatsImpl.java
3f476b34049d062942eafcf48396f593e00bd324 04-Jan-2011 Adam Powell <adamp@google.com> Revisiting ActionBar API and layout.

Fix several bugs where ActionBar was ignoring LayoutParams in action
views.

Add convenience methods for toggling display options flags.

Add layout resource version of ActionBar#setCustomView

Fix a bug preventing actionViewClasses from being loaded properly in
menu xml.

Change-Id: I0d9a0b635fd9cfc020bac69369c0c7749c226349
nternal/app/ActionBarImpl.java
nternal/view/menu/ActionMenuItem.java
nternal/view/menu/ActionMenuView.java
nternal/view/menu/MenuItemImpl.java
a5fd28f7eb639ae61dc8ca10fcf28e1f9b9ebb91 04-Jan-2011 Adam Powell <adamp@google.com> Merge "Fix bug 3300456 - Prevent duplicate action bar backgrounds in shared container"
654e4e41615b4d10cf09ccf1b89ac7b14057a604 04-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3300456 - Prevent duplicate action bar backgrounds in shared
container

Change-Id: I8edb99739be43c7ee82eb4dc4b82a9be17f92d0c
nternal/widget/ActionBarView.java
7179dfd663cff9a4e885fcd59bdfd0154c6054cc 03-Jan-2011 Amith Yamasani <yamasani@google.com> Merge "Fix a layout alignment issue in RingtonePickerActivity."
fe7630e64828499a3566ea8030036e2b9555f815 29-Dec-2010 Amith Yamasani <yamasani@google.com> Fix a layout alignment issue in RingtonePickerActivity.

Bug: 3307324
nternal/app/RingtonePickerActivity.java
4105f1e9459854b57810cd1446c41d8a1c52b118 28-Dec-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Let callers replace layout for LocalePicker adapter."
16331c8a1d33defccc5cbb18694def79196c921b 20-Dec-2010 satok <satok@google.com> Add a parameter to InputMethodManagerService.getEnabledSubtype for allowing to select subtypes implicitly if no subtype is enabled.

Bug: 3142286

Change-Id: I92d019d0648c552e6d7695c3530aa81ae054d702
nternal/view/IInputMethodManager.aidl
f890fab5a6715548e520a6f010a3bfe7607ce56e 20-Dec-2010 Patrick Dubroy <dubroy@google.com> Ensure bitmaps aren't freed while referenced from a display list

Also removes the reference queue finalizers. They aren't necessary
anymore now that Bitmaps are allocated in the heap.
nternal/os/RuntimeInit.java
2b133574bbfd076ff7f8bfac27a0f1226e47abeb 20-Dec-2010 Daisuke Miyakawa <dmiyakawa@google.com> Let callers replace layout for LocalePicker adapter.

Bug: 3298275
Change-Id: I9be5f4677ba553bfd2f35348d14d99e68fdd60f1
nternal/app/LocalePicker.java
1700ae0aef4e6a3f412b758389955abd049060db 20-Dec-2010 Adam Powell <adamp@google.com> Fix bug 3295495 - Wrong menu item selection in PopupMenu

Change-Id: I17ec55f09dbed9797cb702a7252f6c89e861cc6a
nternal/view/menu/MenuPopupHelper.java
50f784cf2dc2dea8061153ac3a843f60a9d88781 20-Dec-2010 Adam Powell <adamp@google.com> Measure spinner items for sizing the dropdown view.

Only a limited window of items will be measured around the currently
selected item.

Change-Id: Ie0431948fdd564fa4bbeb82dede9e2abebbaee55
nternal/view/menu/MenuPopupHelper.java
6ecf3d1690789ace1a667093ad6bbdd6cd35bda7 19-Dec-2010 Adam Powell <adamp@google.com> Fix bug 3292288 - Make Action Bar trap taps

Change-Id: I517855fb6cc50171dc247ede4537ed8ec58d7c91
nternal/widget/ActionBarContainer.java
ae115191cb9844cc994985b33ececd4599772b6b 18-Dec-2010 Jim Miller <jaggies@google.com> Merge "Fix 3148496: Update LockScreen clock to use new font."
4e659135fdb50dce83a3f26f61f410a65a8ff584 18-Dec-2010 Jim Miller <jaggies@google.com> Fix 3148496: Update LockScreen clock to use new font.

Change-Id: I8a4133f633bd3927de75010099e29ad847f3f671
nternal/widget/DigitalClock.java
73e371ff7a23d814c0da10edf40a5a4f31b26b33 18-Dec-2010 Adam Powell <adamp@google.com> Tweak action bar show/hide animations

Change-Id: I69a7b0f84b36ef6f22cc03036daab7e54e1ab74e
nternal/app/ActionBarImpl.java
1108306b369ad64c75c097fe6d4eb1e7ea669ab2 15-Dec-2010 Jim Miller <jaggies@google.com> Merge "Fix 3148496: Update LockScreen assets & layouts"
936236c01d052727c11d6d4e9251746af3fad28e 15-Dec-2010 Jim Miller <jaggies@google.com> Merge "Fix 3201849: Tweak WaveView animation; update resource."
0a0753808ea27955472c2283413fc230bc85595b 15-Dec-2010 Jim Miller <jaggies@google.com> Fix 3148496: Update LockScreen assets & layouts

This adds new assets for LockScreen on large devices and
fixes a layout bug in LockPatternView where the size was
not being computed correctly.

Change-Id: Ibaa0543502914010261389ef6e524654f4f87dc4
nternal/widget/LockPatternView.java
aa0b92ce2b51987e9c864164234fe968ab5b9311 14-Dec-2010 Adam Powell <adamp@google.com> Fix bug 3210201 - Popup window wrong size/position when IME hidden

Fixes a case where ViewRoot does not recompute its size properly.
This caused various offsets to get out of sync and the window would
draw improperly.

Change-Id: Id0abb37bbf27b60de2dca4077c21040ec84ef163
nternal/view/menu/MenuPopupHelper.java
128b6ba93d0549fd2beff4482678e1229dc1cf3d 13-Dec-2010 Adam Powell <adamp@google.com> Fix bug 3280187 - ActionMode menu content not getting cleared properly when finishing

Fix bug 3279956 - FastScroller resource loading errors

Change-Id: I224b2b820636f88b09740a511aa0a9c480e54a2f
nternal/widget/ActionBarContextView.java
ccc714131359eb1022d8c6702b7d82ab9e93f27c 13-Dec-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 78e9f4cb to master

Change-Id: I1135361e6d66f524c3f349e2bf1f31bd4191c634
78e9f4cbaece783b7b87ce3fb0a157dae766012a 13-Dec-2010 Dianne Hackborn <hackbod@google.com> am e4a59519: Fix issue #3154576: battery stats checkin should include UID -> packages+ map

* commit 'e4a5951925f16f18dae91ed65567e96528f17fee':
Fix issue #3154576: battery stats checkin should include UID -> packages+ map
e4a5951925f16f18dae91ed65567e96528f17fee 07-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3154576: battery stats checkin should include UID -> packages+ map

Includes some other small fixes to battery collection and a few
other things.

Output of package info looks like this:

5,0,i,uid,1000,com.android.settings
5,0,i,uid,1000,com.android.providers.subscribedfeeds
5,0,i,uid,1000,com.android.providers.settings
5,0,i,uid,1000,com.android.server.vpn
5,0,i,uid,1000,android
5,0,i,uid,1000,com.android.systemui
5,0,i,uid,1000,com.google.android.backup
5,0,i,uid,1001,com.android.phone
5,0,i,uid,1001,com.android.providers.telephony
5,0,i,uid,1022,com.android.nfc
5,0,i,uid,10021,com.google.android.location
5,0,i,uid,10021,com.google.android.syncadapters.calendar
5,0,i,uid,10021,com.google.android.gsf
5,0,i,uid,10021,com.google.android.syncadapters.contacts
5,0,i,uid,10026,com.android.providers.downloads.ui
5,0,i,uid,10026,com.android.providers.media
5,0,i,uid,10026,com.android.providers.drm
5,0,i,uid,10026,com.android.providers.downloads
5,0,i,uid,10032,com.android.launcher
5,0,i,uid,10039,com.google.android.gm
5,0,i,uid,10041,com.google.android.gallery3d
5,0,i,uid,10049,com.android.providers.calendar

Change-Id: I9e38f254eef146339113ad270f5c6e8b60fb7a1d
nternal/os/BatteryStatsImpl.java
e8c1e5c02d565aad7f8a8b14c9e351c26a3c8731 13-Dec-2010 Adam Powell <adamp@google.com> Update bg drawable properly on ActionBars based on earlier changes

Change-Id: I5e24ffb030d2c29620948114b9015c0c028a133e
nternal/app/ActionBarImpl.java
45f1e08c348ccb129bcc25e438c05421f7123f41 10-Dec-2010 Adam Powell <adamp@google.com> Fix bug 3259354 - Handle ActionBar backgrounds better for interacting
with action modes.

Tweak ActionBar/mode transition animation to look better with a
variety of action bar styles.

Fix bug 3273773 - ActionBar disappearing while displaying
popupwindow. Some SurfaceFlinger optimizations require a relayout to
recalculate the bounds of overlaid views.

Fix bug 3266010 - Cancel animations properly when switching between
modes.

Change-Id: Ic431176b11115a2211bd0a46d09c8998aefe58d6
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarContainer.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
3262a51a91655659741b3b02071ccaed258fc01f 11-Dec-2010 Jim Miller <jaggies@google.com> Fix 3201849: Tweak WaveView animation; update resource.

This is a minor tweak to the WaveView animation and updates
the unlock ring asset.

Change-Id: I763a1b25c30f20a0e78b0a6872f2dd5d2d790d59
nternal/widget/WaveView.java
cf9cf2f40efc4ccf3f73e6fdb07725d9c00c4f91 09-Dec-2010 Gilles Debunne <debunne@google.com> New API in InputConnection to signal IME's text correction.

Scafolding so that the IME team can start working on this feature.

The animation part in the TextView is missing.

Change-Id: I8225538564370fba1500e3539742a8ab79bdd199
nternal/view/IInputConnectionWrapper.java
nternal/view/IInputContext.aidl
nternal/view/InputConnectionWrapper.java
nternal/widget/EditableInputConnection.java
d9c17cc1178bc09d30eead05bf5be7ec5a05cbe7 09-Dec-2010 Jean-Baptiste Queru <jbq@google.com> merge from gingerbread

Change-Id: I12d6ef65986db41e658bf8d476a8e18c4dd89917
e59e0309a1301908eae0075db02413fda90848d5 07-Dec-2010 Dianne Hackborn <hackbod@google.com> Add more checks for bad values to protect from corrupt files.

Change-Id: I5e282099e7c6fcc8756146fc7282eec31937af1f
nternal/os/BatteryStatsImpl.java
3fa82a9fe89c55e4217307e06cc185812ad5a8f5 08-Dec-2010 Dianne Hackborn <hackbod@google.com> am c4b7088f: am 42a23783: Merge "Add more checks for bad values to protect from corrupt files." into gingerbread

* commit 'c4b7088f19f8111ea5f34fba41da4a93899708cd':
Add more checks for bad values to protect from corrupt files.
c4b7088f19f8111ea5f34fba41da4a93899708cd 08-Dec-2010 Dianne Hackborn <hackbod@google.com> am 42a23783: Merge "Add more checks for bad values to protect from corrupt files." into gingerbread

* commit '42a23783aaabdb4e6f37ccd822d8c85f31ba8519':
Add more checks for bad values to protect from corrupt files.
7b9c56fe0fb99207218827a569eb12fd24901193 07-Dec-2010 Dianne Hackborn <hackbod@google.com> Add more checks for bad values to protect from corrupt files.

Change-Id: I4174c358c49b93e74920b00fcfd6c68659bf7d08
nternal/os/BatteryStatsImpl.java
d00e116293589fb258f8d153d65ffdea38e0b5ec 08-Dec-2010 Adam Powell <adamp@google.com> Merge "Add hide/show animations for action bar"
e6ec7329b9ee23eaa1183071c9660d66651f2404 08-Dec-2010 Adam Powell <adamp@google.com> Add hide/show animations for action bar

Change-Id: I204cc744573fe040b4d37791a8eef1a65c88ee88
nternal/app/ActionBarImpl.java
b7929d654e2a204dac95225913407deeecaecdd7 08-Dec-2010 Carl Shapiro <cshapiro@google.com> Do not attempt to set the minimize heap size in the Zygote.

This parameter is now specified by the product configuration files.

Change-Id: Ia04e4393b778580c206e3122078c999ac8b326a8
nternal/os/ZygoteInit.java
65dd62a306b733b4891aa455b2e099d9c15fffa8 07-Dec-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of ee27dd35 to master

Change-Id: Ia9f4ea86b8554ff04a3aa6b9e065239ae73740e7
12902d687fa1bd4bff3c2dfc079c71eacb00eedd 07-Dec-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 78742e01 to stage-korg-master

Change-Id: I0ce429afeb26184f075b4ed326fc4e1c0833e905
e2ab7ccd385cdb6517955c719e1d2b49771bedb6 07-Dec-2010 Chet Haase <chet@google.com> Change cancel/end behavior of animations to be synchronous

Previously, cancel() and end() calls would simply log a message to
be handled later by the animation handler. This caused problems with
coordinating complex animations, where some start() events for
future animations would occur before end() events for animations already
completed.
The change is to make these events synchronous (and require them to be
called from the appropriate thread), simplifying the code and the usage.

Also, fixed various timing and event bugs in AnimatorSet, and removed
the getter/setter properties from ObjectAnimator, since an earlier change
makes these properties undesirable (because the code will use a faster
JNI approach instead of reflection when it can).

Change-Id: I05c16645c2a31a92048a6031ddb126eb4312a946
nternal/widget/DrawableHolder.java
cf0357639e952a87f0d535c82691919af81f058b 06-Dec-2010 Adam Powell <adamp@google.com> Clean up button bar styles

Change-Id: I65b6600f72b92db024f83b63d3ea91abc1cbb96c
nternal/view/menu/ActionMenuView.java
0d7128048eaa14362ec0194a91c34fc5551cd6ca 06-Dec-2010 Kenny Root <kroot@google.com> Merge "Add measurement API to DefaultContainerService"
3f7f7ac30af6ea572aca44df91363cff7fcd9fef 06-Dec-2010 Adam Powell <adamp@google.com> Add dividers to action bar navigation. Lighter dividers for holo themes.

Change-Id: I879dbd815a891fe5db20678b674a9cee63a5e1ae
nternal/widget/ActionBarView.java
aa183e2c9a279cb6aef7dc77855facfae795b6f8 03-Dec-2010 Kenny Root <kroot@google.com> Add measurement API to DefaultContainerService

System applications that don't have "media_rw" access need some way to
measure the size of directories on the SD card and other internal media.
Add this API to DefaultContainerService so they can simply bind to the
service and make an RPC.

Bug: 3203974
Change-Id: I4e1bcd7a1b702b156c011ecc04f6915022cb258a
nternal/app/IMediaContainerService.aidl
d8b3f2e8eee5f24de6653a918613674e9495f751 02-Dec-2010 Adam Powell <adamp@google.com> Action mode animations

Change-Id: I132791217a38257e4fe730f2dd364cf48069c75d
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarContextView.java
848024f744729a131a461f3d13151b2d0393de17 03-Dec-2010 Jim Miller <jaggies@google.com> Merge "Fix 3201849: Remove builder pattern from DrawableHolder setters"
189ee18d6c6483ad63cc864267328259e2e00b95 03-Dec-2010 Dianne Hackborn <hackbod@google.com> Implement smarter sizing of WRAP_CONTENT windows.

This extends the view hierarchy's measure pass to allow view to
propagate up to their parent additional information besides just
their measured size. They can now report that their measured width
and/or height should be larger than the size their parent is
limiting them to (even though by definition they need to contrain
their reported measurements to the limits imposed by the parent).

ViewRoot uses this information to determine if it should remeasure
the window with a larger size limit to try to make it fit.

Change-Id: I90af3b7a8ec45d0a5c003fb009857025209d83eb
nternal/view/menu/IconMenuView.java
dea74b0285ef946cceb4f56e576800cbedbc3a95 22-Nov-2010 Hakan Gustavsson <hakan.gustavsson@sonyericsson.com> Strings for NI position request are moved to resources

The strings used by the framework for network initiated position
requests are now string resources that can be properly localized.

Change-Id: If1cba89adb1bfcb9c8fdb59b9c5aa1107b11279e
nternal/app/NetInitiatedActivity.java
c002fab06d5f6d3c83bb2b89c8ee9a14f6580af3 03-Dec-2010 Jim Miller <jaggies@google.com> Fix 3201849: Remove builder pattern from DrawableHolder setters

This removes the builder pattern from DrawableHolder setters
to avoid reflection and unnecessary GCs in Animators.

Change-Id: I8e3485823f30f10d768d0ab447a5ee3281a363f0
nternal/widget/DrawableHolder.java
nternal/widget/WaveView.java
d66c63e56e6b89d117bc4ff6dff9d70dec92e427 02-Dec-2010 Wink Saville <wink@google.com> Merge "Remove the need for a token parameter from AsyncChannel."
fcca00accb923d3cbda4e0d6f5540b10e8279cd2 01-Dec-2010 Adam Powell <adamp@google.com> Update themes; dialogs, metrics

Add divider attributes to LinearLayout, plus styles for borderless
buttons. Update text field assets.

Change-Id: I673acab1692cc028a0327e8c154069253a4d52e8
nternal/app/AlertController.java
cfce303cbdd59a3883957e4bc96a0476ceeb86ac 02-Dec-2010 Wink Saville <wink@google.com> Remove the need for a token parameter from AsyncChannel.

By returning the channel object it self it is unnecessary
to have a token. Also, no current code needed it, if its
needed in the future it can be added back.

Change-Id: Ie1d2a1e885f9cd74e95663711ccefb760811bf16
nternal/util/AsyncChannel.java
db1a3ba21904ac9d0babe3da83a7d00c3d9b96a0 02-Dec-2010 Brian Carlstrom <bdc@google.com> Merge "Resurrect SamplingProfilerIntegration"
def41ec2e88a70e63590117c93476276f8d0bf4c 02-Dec-2010 Brian Carlstrom <bdc@google.com> Resurrect SamplingProfilerIntegration

1.) Change from samples per second (persist.sys.profiler_hz) to
interval between samples (persist.sys.profiler_ms) to match
underlying SamplingProfiler API. This allows samples to be taken
less often than a second, which allows lower overhead for always
on profiling.

2.) Add persist.sys.profiler_depth to control the number of frames
kept. Currently defaults to 4 which is the default hprof depth,
but often 12 is necessary even in benchmarks to get a good idea
where time is being spent.

3.) Moved SNAPSHOT_DIR creation to initialization time instead of
checking it on every sample.

4.) Used ThreadFactory to provide human readable name to writeSnapshot
Executor thread.

5.) Fixed bug where writeZygoteSnapshot was calling wrong variant of
writeSnapshot causing profiling to prevent zygote startup. Renamed
underling private writeSnapshot to writeSnapshotFile to try to
prevent future confusion.

Change-Id: Ifcfc343816b19f13a6eef2cbf25cde334d8adc3b
nternal/os/SamplingProfilerIntegration.java
8515ee846bd76aee86ec5ddfcc4dd1e626dd999c 30-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3240444 - add OnMenuVisibilityListener for action bar.

Fix bug 3180015 - leaking window handles on configuration change for
action bar dropdown menus

Rename ActionBar.NavigationCallback to something more consistent with
the rest of the API.

Change-Id: Ic1fb4c07484c57a72649b30e27d220b18cda6cdf
nternal/app/ActionBarImpl.java
nternal/view/StandaloneActionMode.java
nternal/view/menu/ActionMenuView.java
nternal/view/menu/MenuPopupHelper.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
2a98a4cbaaf3300036434dd1d44b891ea8a8c932 20-Nov-2010 Jim Miller <jaggies@google.com> Fix 3024522: Add "no lock screen" support to the framework.

This adds a new feature where LockScreen can be disabled to
allow the device to go straight to the home screen when
powered on.

Change-Id: I288e8d5359442c042ae7911340885877a864faff
nternal/widget/LockPatternUtils.java
440aab54cab106030f1edafea4dec1f9d8624f9b 25-Nov-2010 satok <satok@google.com> Removed InputMethodSubtypePicker

Change-Id: I08abac5d65a30c02cc671f4f70e93df25b6c8a92
nternal/view/IInputMethodManager.aidl
cd7cd2969f545ad061a9b4ecd0044f15eb1b4abb 20-Nov-2010 satok <satok@google.com> Store the current IME's token in the system bar for changing the current IME to a shortcut IME from the system bar

Bug: 3212206
Bug: 3201828

- Added a shortcut IME button. This will be used for calling a shortcut IME (e.g. Voice input)
- Made the positions of IME buttons left aligned
- IME token is required to change IME because of the security reasons.

Change-Id: I48ba5e2509b3aa1bfd2394f9201427fa6b93c6d3
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
2820351489537698ad153c6397edf3270455edc5 24-Nov-2010 satok <satok@google.com> Add an API to set InputMethodAndSubtype

Change-Id: I66f1a4c8e0d98705614f12a737e7efcd0263b72a
nternal/view/IInputMethodManager.aidl
621e17de87f18003aba2dedb719a2941020a7902 23-Nov-2010 Dianne Hackborn <hackbod@google.com> Implement issue #3221502: New APIs to support new back stack / task navigation

What this adds:

- A new Intent activity flag to completely replace an existing task.
- A new Intent activity flag to bring the current home task up behind
a new task being started/brought to the foreground.
- New versions of startActivity() that take an array of Intents to be
started, allowing applications to start a task in a specific state.
- A public moveTaskToFront() method on ActivityManager, with a new flag
that allows the caller to have the task moved to the front with the
current home task immediately behind it.

Change-Id: Ie8028d09acffb5349d98043c67676daba09f75c8
nternal/app/HeavyWeightSwitcherActivity.java
4e4569dab5c75804b01a19b2d6e6101b445c1c68 19-Nov-2010 satok <satok@google.com> Add an API to get shortcut IMEs

- If there are no selected shortcut IMEs, the most applicable voice input will be selected as a shortcut IME

Change-Id: Ibd0f7ef5101013569c303820a3adc9038a97356d
nternal/view/IInputMethodManager.aidl
dd4e4603efef2c3df0e26835935f74e1e0e7deb2 18-Nov-2010 Jeff Brown <jeffbrown@google.com> Merge "Added support for full PC-style keyboards."
b33be1c672f459d94b151b3b2e3859a7655a7fa3 18-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3208911 - apps not getting default ActionBar style values

Change-Id: Ie2855d6ebbaf49d187dc8bd63fda7f1b397325b5
nternal/widget/ActionBarView.java
1c60300129e431ccf1cf258291eac5acdb3a2fe4 18-Nov-2010 Ed Heyl <edheyl@google.com> Revert "Temp fix; Revert "Fix bug 3167081 - Action Bar redesign to support "up"""

This reverts commit 8b8914b50d36734305d582485fa839b7d04b8872.

Change-Id: Ib3ee99257ed10af5f729f3d29af37b5b48a8e139
nternal/widget/ActionBarView.java
8b8914b50d36734305d582485fa839b7d04b8872 18-Nov-2010 android-build SharedAccount <android-build@google.com> Temp fix; Revert "Fix bug 3167081 - Action Bar redesign to support "up""

This reverts commit 432e5f9f167e622d03fee0e10215b6e2234c1a3c.

Conflicts:

core/res/res/values/public.xml

Change-Id: I7212626479da7aef80b9bcb4c2144435364dafae
nternal/widget/ActionBarView.java
6b53e8daa69cba1a2a5a7c95a01e37ce9c53226c 11-Nov-2010 Jeff Brown <jeffbrown@google.com> Added support for full PC-style keyboards.

BREAKING CHANGE: Redesigned the key character map format to
accomodate full keyboards with more comprehensive suite of modifiers.
Old key character maps will not work anymore and must be updated.
The new format is plain text only and it not compiled to a binary
file (so the "kcm" tool will be removed in a subsequent check-in).

Added FULL keyboard type to support full PC-style keyboards.

Added SPECIAL_FUNCTION keyboard type to support special function
keypads that do not have any printable keys suitable for typing
and only have keys like HOME and POWER

Added a special VIRTUAL_KEYBOARD device id convention that maps
to a virtual keyboard with a fixed known layout. This is designed
to work around issues injecting input events on devices whose
built-in keyboard does not have a useful key character map (ie.
when the built-in keyboard is a special function keyboard only.)

Modified several places where events were being synthesized
to use the virtual keyboard.

Removed support for the "qwerty" default layout.
The new default layout is "Generic". For the most part "qwerty"
was being used as a backstop in case the built-in keyboard did
not have a key character map (probably because it was a special
function keypad) and the framework needed to be able to inject
key events anyways. The latter issue is resolved by using the
special VIRTUAL_KEYBOARD device instead of BUILT_IN_KEYBOARD.

Added the concept of a key modifier behavior so that
MetaKeyKeyListener can distinguish between keyboards that use
chorded vs. toggled modifiers.

Wrote more robust key layout and key character map parsers
to enable support for new keyboard features and user installable
key maps.

Fixed a bug in InputReader generating key ups when keys
are released out of sequence.

Updated tons of documentation.

Currently QwertyKeyListener is being used for full keyboards
with autotext and capitalization disabled. This mostly works
but causes some problems with character pickers, etc.
These issues will be resolved in subsequent changes.

Change-Id: Ica48f6097a551141c215bc0d2c6f7b3fb634d354
nternal/widget/PasswordEntryKeyboardHelper.java
432e5f9f167e622d03fee0e10215b6e2234c1a3c 18-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3167081 - Action Bar redesign to support "up"

Integrate new assets for action bar "up" and menu. Restructure action
bar layout to support the new design. First pass at metrics.

Change-Id: Iefc502bf398905208129ef41072bdf4a0225bfe0
nternal/widget/ActionBarView.java
32555f347974711aac1f0c9acc0f06e8676d9362 17-Nov-2010 Adam Powell <adamp@google.com> Add resource ID variants of ActionBar tab setters

Bugs 3204153 and 2901235

Change-Id: Ib430f96da77f8e7647b22d190243a2fcd766d842
nternal/app/ActionBarImpl.java
67ddf9cbd5d7133c7f443cd3c55841ed1109c3a0 17-Nov-2010 satok <satok@google.com> Add a function to get enabledInputMethodAndSubtype

Change-Id: Ie97635343249aa63e33028c2843cab103125ca92
nternal/view/IInputMethodManager.aidl
ef704447689cb991049d31e67be41e66e8a44b6d 16-Nov-2010 Adam Powell <adamp@google.com> Improve docs around ActionBar as noted in bug 3111444.

Rename method that was missed in previous ActionBar
refactoring. Deprecated previous version for compatibility for apps in
development.

Change-Id: I2c466aed8ed620aec5056026257e131fadf8843e
nternal/app/ActionBarImpl.java
ed8b403cc8066bf76cdf98f8d9906ff810defc5b 16-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3198503 - NPE at MenuPopupHelper.dismiss

Make sure dismiss() can be called even when the popup is not currently
showing.

Change-Id: I48077d8b3bfe0df04bceeb056ed54cbd79a6e660
nternal/view/menu/MenuPopupHelper.java
c028a5ee7e6998f8ab0239baf91634eadad021e8 16-Nov-2010 Adam Powell <adamp@google.com> Merge "Fix a couple interactions between action bar and options menus"
8d12e201626239291fe2c4b31f97f2a14f01dea9 16-Nov-2010 Adam Powell <adamp@google.com> Fix a couple interactions between action bar and options menus

Fix bug 3129937 - Activity.openOptionsMenu not calling onPrepareOptionsMenu

Fix bug 3070720 - actionbar android.R.id.home isn't dispatched to fragments

Change-Id: I4a154941595583cdec7d1dffbeac9c8340781fa0
nternal/widget/ActionBarView.java
33c54e3365d621fcc5b9f7564f18b33dc1e300df 15-Nov-2010 Wink Saville <wink@google.com> Add html formatting to AsyncChannel & Hsm class comments.

Change-Id: Ic42fdb4e8970166a92f173317210353ab8a2fa6a
nternal/util/AsyncChannel.java
nternal/util/HierarchicalStateMachine.java
6af97e1c20df4d7010fafd7059c95d9b4113e4a6 12-Nov-2010 Adam Powell <adamp@google.com> Revised assets for progress bars and indeterminate progress spinners.

Add support in ActionBar for activity-wide progress APIs.

Add ability for progress bars to set a target framerate rather than
the 5fps previously used.

Clean up some more dialog layouts using hardcoded styles rather than
theme attributes.

Change-Id: I8e88c7595e27c0b6f7829b598f2b084ac8501ae3
nternal/widget/ActionBarView.java
b66d287e3003a0934d5714fbf15e554b3c814906 09-Nov-2010 satok <satok@google.com> Add a setter of InputMethodSubtype to InputMethodManager

- Public API: void setCurrentInputMethodSubtype(int pos)

Change-Id: I55daa19ba924999def544bf841f00bf54852f3e1
nternal/view/IInputMethodManager.aidl
735cf38b8c7f8f91ad087511e44fe79018fa61d6 11-Nov-2010 satok <satok@google.com> Add a function to switch back to the last used IME

Change-Id: Iac7bcc2ee16dd04d91a3e75b160622d246788c9a
nternal/view/IInputMethodManager.aidl
9feaa0fb4450c8575400659c95d86d1fc43523eb 12-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "Disable SamplingProfilerIntegration until it's fixed."
0b91729b8d75668c5593dda1e9f2e79aa7b30c81 12-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> Disable SamplingProfilerIntegration until it's fixed.

Change-Id: I685e0600414836d0caae8e37ee7e97cabeb555ce
nternal/os/SamplingProfilerIntegration.java
0458796f1401732b38660794148f4c5e5602f432 12-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3146938 - Menus spawned by ActionBar should hide when action
bar is hidden

Any popup spawned by the private class MenuPopupHelper will be hidden
if its anchor becomes hidden. ("hidden" == !View#isShown())

Fix a bug where ActionBar subtitle views were not going away when
subtitle text was set to null.

Fix a bug when switching out of ActionBar tabbed nav mode with no
active tabs.

Change-Id: I1f30c067156221f96905ac69ab876418ad2e94f8
nternal/app/ActionBarImpl.java
nternal/view/menu/MenuPopupHelper.java
nternal/widget/ActionBarView.java
c60072063823ceeba61889da511a6ae599904752 11-Nov-2010 Dianne Hackborn <hackbod@google.com> am 63f40387: am 34594e75: Merge "Fix issue #3177284: Account for wake lock power usage on Crespo" into gingerbread

* commit '63f40387d931b5cd555b4743a4d8ff4f1ccf9558':
Fix issue #3177284: Account for wake lock power usage on Crespo
63f40387d931b5cd555b4743a4d8ff4f1ccf9558 11-Nov-2010 Dianne Hackborn <hackbod@google.com> am 34594e75: Merge "Fix issue #3177284: Account for wake lock power usage on Crespo" into gingerbread

* commit '34594e75e4a7962840f34c0b57116ecf1497f118':
Fix issue #3177284: Account for wake lock power usage on Crespo
a8ddef346cece1ad229e270ac4deebbd41ba6721 10-Nov-2010 Chris Tate <ctate@google.com> Add description and configuration methods to the transport interface

It's now possible for the transport to supply a descriptive string to inform
the user about the nature of the backup destination (e.g. telling the user
what account the data is being stored under), and to supply an Intent with
which the system can initiate a configuration Activity supplied by the
transport (e.g. allowing the user to select which account their data is
being stored under).

The transport interface is not public.

Part of bug 2753632 and bug 2987804

Change-Id: I911f70a3ea440daf2a7a04710e9d7e65b61a58db
nternal/backup/IBackupTransport.aidl
nternal/backup/LocalTransport.java
30693374e8497c83b40592893160a95b428e0c22 09-Nov-2010 Joe Onorato <joeo@google.com> If the image wallpaper fails to load, including via an OutOfMemoryError because of a big bitmap, reset to the default.

Bug: 3139118
Change-Id: Iff02e7440019598cce0cc87e4031a157e3feb641
nternal/service/wallpaper/ImageWallpaper.java
0c8b4d3f7e280da5d981651be13b8966b36bc45c 09-Nov-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3177284: Account for wake lock power usage on Crespo

Change-Id: I5e3d6c4772f08277ee775dba191a5054dd5a4ca2
nternal/os/PowerProfile.java
3915bb845b032dc184dba5e60970b803390ca3ed 05-Nov-2010 Jeff Brown <jeffbrown@google.com> Tell system server whether the app handled input events.

Refactored ViewRoot, NativeActivity and related classes to tell the
dispatcher whether an input event was actually handled by the application.

This will be used to move more of the global default key processing
into the system server instead of the application.

Change-Id: If06b98b6f45c543e5ac5b1eae2b3baf9371fba28
nternal/view/BaseInputHandler.java
51387974f0914a12dcf758938bbd4ffe120bdab4 08-Nov-2010 Joe Onorato <joeo@google.com> Merge "Move the volume, media, call, camera and search key handling from PhoneWindow to a new PhoneFallbackEventHandler class that is used for all windows, not just ones with decors."
3320dcd049700481c744d499feeecd1454afd4d7 06-Nov-2010 Adam Powell <adamp@google.com> Fixed several dialog theming issues

Change-Id: I8e83e5a35acaae63a70bef48f543e3fd82ced354
nternal/app/AlertController.java
86f6786032b1a0380cf089aeeceef7e9d8982ef8 06-Nov-2010 Joe Onorato <joeo@google.com> Move the volume, media, call, camera and search key handling from
PhoneWindow to a new PhoneFallbackEventHandler class that is used
for all windows, not just ones with decors.

Bug: 3155146
Change-Id: Ib070fa3e523e3564b225bca576c08012fef4f416
nternal/policy/IPolicy.java
nternal/policy/PolicyManager.java
ec6ac82a295b80a39f12ff7951ec254ba45809fd 05-Nov-2010 Jim Miller <jaggies@google.com> Fix 3165868: Fix stall in state machine logic in WaveView

It was possible for the state machine to get stuck when
user interaction and animations both completed before success
was detected. This fixes the problem by explicitly advancing
the state machine when an up event is detected.

Change-Id: I802e3f1bb35aeab7a0d6f64e85acaa6980b9d65a
nternal/widget/WaveView.java
a4f03f98f16dca51ac5630b4f41bec08a7da1091 04-Nov-2010 Brian Carlstrom <bdc@google.com> Merge "Integrate StrictMode with CloseGuard"
fd9ddd1a40efc801dc7512950cb9336967b6f775 04-Nov-2010 Brian Carlstrom <bdc@google.com> Integrate StrictMode with CloseGuard

In additional to adding the StringMode API for controling CloseGuard,
this checkin fixes several CloseGuard issues found booting a device.

Bug: 3041575
Change-Id: I4dffd184f49438d6d477ed81a1c2a2a5b56cc76b
nternal/content/NativeLibraryHelper.java
f786805acc4e188e22c9a569f44506c40636e883 04-Nov-2010 Jeff Sharkey <jsharkey@android.com> Respect padding when positioning custom view.

Fixes http://b/3164071

Change-Id: I74700fecf7e9f4785e8e944b2660724b3d270b0d
nternal/widget/ActionBarView.java
0c91a8ee9321da4dee17f0aeffbc20b0c5bb0644 02-Nov-2010 Jim Miller <jaggies@google.com> Minor tweaks to lockscreen animation:

Remove transition delay to show home.
Add new constants to allow finer tuning of "success" animation.
Transition all items to transparent on successful unlock.

Change-Id: Id9f57b9bfc08be840d9282f987925617d2b42ea1
nternal/widget/WaveView.java
0c24a5514c1ff143a223720a090b19a86a75945f 04-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3156280 - Fix several issues with tab navigation in action bars.

Add the ability to restrict a FragmentTransaction's ability to be
added to the back stack. (It doesn't make sense for tabs or other
scenarios to allow this.)

Change-Id: I8fa2edb5f35c365e2483010ad13eb9993f5e6570
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarView.java
26ba12490347f34a0aa3a2ee2370d60d24f5f7d0 04-Nov-2010 Robert Greenwalt <rgreenwalt@google.com> Merge "Add some network/phone type constants."
962a990a45a2a9f9c3002064e71f9c2fed86acf1 02-Nov-2010 Robert Greenwalt <rgreenwalt@google.com> Add some network/phone type constants.

Support for LTE (and SIP-based voice) and the stepping-stone eHPRD.

bug:3125398
Change-Id: Ied3d96fa09d9c758a82a2fd1817f55db711d1a4f
nternal/os/BatteryStatsImpl.java
ad199ecc441649f0ad816f7b139ab5ddffad98dd 01-Nov-2010 Ben Komalo <benkomalo@google.com> Fix issue where home layout click listener was being attached
before it was initialized.

Change-Id: I25641ca7c2db18d423dcafebc9bdf42d608a7a31
nternal/widget/ActionBarView.java
cc82f3ae3cef7e5dac7992a10aeb8e147e12eb27 03-Nov-2010 Nick Pelly <npelly@google.com> am 6fb9316f: am 38e561dd: Merge "Remove timeout support." into gingerbread

* commit '6fb9316f6bd72b406bbfc61bd210281744eea9c1':
Remove timeout support.
81b8944131946e451b31665652de8cc71d81ea07 03-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3093591 - add richer control over default tab selection in ActionBar

Added overloads to ActionBar#addTab with control over whether the added tab
will become selected or not. Old versions implemented in terms of the new.

Change-Id: I810c64652bb7e755b81151ce8a2c765266d78a66
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarView.java
5b3b35296e8b2c8d3f07d32bb645d5414db41a1d 28-Oct-2010 Romain Guy <romainguy@google.com> Optimize FBO drawing with regions.
This optimization is currently disabled until Launcher is
modified to take advantage of it. The optimization can be
enabled by turning on RENDER_LAYERS_AS_REGIONS in the
OpenGLRenderer.h file.

Change-Id: I2fdf59d0f4dc690a3d7f712173ab8db3848b27b1
nternal/widget/LockPatternView.java
6fb9316f6bd72b406bbfc61bd210281744eea9c1 02-Nov-2010 Nick Pelly <npelly@google.com> am 38e561dd: Merge "Remove timeout support." into gingerbread

* commit '38e561dd3cd72160035d8b3002fc9bbaf3071374':
Remove timeout support.
275708c82cad1119d645b4be533b1ad0088e148c 02-Nov-2010 Nick Pelly <npelly@google.com> Remove timeout support.

The implementation was guarenteed to cause deadlock when a timeout was set.

Change-Id: I59444ea784eb9057c6c4c9e9123f558b3ef5eef6
Signed-off-by: Nick Pelly <npelly@google.com>
nternal/nfc/LlcpServiceSocket.java
nternal/nfc/LlcpSocket.java
504d5e0d1fe5cec7c0398064657dab18196a7427 01-Nov-2010 Brian Carlstrom <bdc@google.com> Change SamplingProfiler to use a sampling interval instead of Hz

Change-Id: I15654f1c080215575347559a16ba40e9630371ba
nternal/os/SamplingProfilerIntegration.java
e4c7b3f25ee3cb8d3fba4d15a8fbb97bc83d8dd1 30-Oct-2010 Joe Onorato <joeo@google.com> Status bar: Forward the disabled state to the status bar process when it comes up.

Bug: 3108996
Change-Id: I92c2ff645dc64ca2610e3de814e0cfef6cde88c3
nternal/statusbar/IStatusBarService.aidl
9ab978713ce86fdaefed2407f4f3c998ab0e3178 27-Oct-2010 Adam Powell <adamp@google.com> Action bar API updates - new display options

Change-Id: I55e56cd7aafa53994990079e88ef85e4eb1a0b3f
nternal/app/ActionBarImpl.java
nternal/view/menu/ActionMenuView.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
4c5585d8af8961e32dbbbb687c594c67dc03dbcc 29-Oct-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Expose Adapter."
06487a58be22b100daf3f950b9a1d25c3ea42aa2 29-Oct-2010 satok <satok@google.com> Add a functionarity for showing / hiding IME button on the system bar

Bug: 3077030

- IME communicates with status bar directly.

Change-Id: Ic5b6b5b7a2b8ea62372dcc9b9c36d81b9f2db651
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
nternal/view/IInputMethodManager.aidl
9d9f0c20a6a8e2693b8534cc0a5c314bdb3a0090 28-Oct-2010 Wink Saville <wink@google.com> Remove an @Override that is not needed.

Change-Id: I23d216c387ea44073eed1e3acb05d07104784e16
nternal/util/AsyncChannel.java
04d50204705c9da52b218f11972da4e7d7a9cb84 25-Oct-2010 satok <satok@google.com> Show Subtype Icon properly in the system status bar

- Added API for getting the current subtype
- Added functions for show/hide status icon

Change-Id: Ifcaad00f7f4c658cdb3af367387476bbf316eb19
nternal/view/IInputMethodManager.aidl
091511b41ba1469bea46e9e56cc8e9c0c16c3a6f 27-Oct-2010 Andy McFadden <fadden@android.com> am e3e8642c: am 001c7d12: Merge "Set capabilities sooner." into gingerbread
e3e8642ce41278cf7b76424faf4c3fb69ca91e4d 27-Oct-2010 Andy McFadden <fadden@android.com> am 001c7d12: Merge "Set capabilities sooner." into gingerbread
1b4c7966b15382e9ffb2bfe6468dcef0b6d090b6 27-Oct-2010 Andy McFadden <fadden@android.com> Set capabilities sooner.

Bug 3135433.

Change-Id: I4e34b60c0a01b85ce0d80eb96ff3510604a68c71
nternal/os/ZygoteConnection.java
nternal/os/ZygoteInit.java
86417ea3f8041481a085823a1aa9f66d747231e8 27-Oct-2010 satok <satok@google.com> Remove InputMethodAndSubtypeEnabler and call intent of Settings.ACTION_INPUT_METHOD_AND_SUBTYPE_ENABLER

Change-Id: I467cfba9644ec266f6a98f7aec0886ad205fef4f
nternal/view/InputMethodAndSubtypeEnabler.java
53daead5718a95953fc009782299bd5e544bf4e5 27-Oct-2010 Daisuke Miyakawa <dmiyakawa@google.com> Expose Adapter.

We sometimes want just an adapter object instead of Fragment,
so that it can be available from not-Fragment UI
(like Spinner and ListView).

See I5e3d7ee721d1f0ec81dc9825b0d05f8faa731b80 for example usage.

Bug: 3133251
Change-Id: Ief6f25e9bc51c739b5cd2f2ba0afec5d2c16dc5b
nternal/app/LocalePicker.java
858825c54d382c24dcfbb9b85bea87ac4eee39ee 26-Oct-2010 Jeff Hamilton <jham@android.com> am 6a49bff5: am 79fb6449: Merge "Make some contructors public but hidden." into gingerbread
6a49bff5694439b3f892cfcfd90b814884f8d44f 26-Oct-2010 Jeff Hamilton <jham@android.com> am 79fb6449: Merge "Make some contructors public but hidden." into gingerbread
d6c052a8ec5a874289567a637bf7411bd24f9e05 26-Oct-2010 Jeff Hamilton <jham@android.com> Make some contructors public but hidden.

This allows them to be used from within the
NFC stack process internally.

Change-Id: I7f81759da63d451efe86550a57a400fb224b2064
nternal/nfc/LlcpServiceSocket.java
nternal/nfc/LlcpSocket.java
a139f102d8b3111383c2c978953663e0aa554600 23-Oct-2010 Adam Powell <adamp@google.com> Merge "Fix bug 3105695 - Action modes in dialogs or other small windows"
85446e95afa480cee2247bb96795fccc8cf812af 23-Oct-2010 Adam Powell <adamp@google.com> Fix bug 3105695 - Action modes in dialogs or other small windows

Overlay action modes now show in their own windows aligned to the top
of the screen.

Change-Id: I81600bbd1bcaeb59fdcf0a959bd35f82165baa2c
nternal/view/StandaloneActionMode.java
nternal/widget/ActionBarContextView.java
5a1e4cf83f5be1b5d79e2643fa791aa269b6a4bc 19-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Update BT APIs return type from Set to List.

Change-Id: Ia27220dd26cde13007f6938c830517ee7f6968ce
nternal/os/BatteryStatsImpl.java
c981465aac939399eb597f62efe42ce701c0310a 22-Oct-2010 Dianne Hackborn <hackbod@google.com> am 2f1eee34: am e9dbf208: Merge "Fix issue #3117472: Format storage dialog still broken" into gingerbread

Merge commit '2f1eee34706cf42855541def5737c37a071d7293'

* commit '2f1eee34706cf42855541def5737c37a071d7293':
Fix issue #3117472: Format storage dialog still broken
2f1eee34706cf42855541def5737c37a071d7293 22-Oct-2010 Dianne Hackborn <hackbod@google.com> am e9dbf208: Merge "Fix issue #3117472: Format storage dialog still broken" into gingerbread

Merge commit 'e9dbf208e4f72b41dc3961d9d4570d5b69126307' into gingerbread-plus-aosp

* commit 'e9dbf208e4f72b41dc3961d9d4570d5b69126307':
Fix issue #3117472: Format storage dialog still broken
4f6ee254bc53cb7e609205794f197e275f50030f 22-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3117472: Format storage dialog still broken

Change-Id: I19b3a04e33785a56cb14457e4e3cd9232f585bb1
nternal/app/ExternalMediaFormatActivity.java
6dcab2099bbf1351934a53c05be7e4634b0ae2fd 21-Oct-2010 Dianne Hackborn <hackbod@google.com> am 153bf6c8: am e9e23405: Merge "Fix issue #3113424: Battery stats don\'t reset on Crespo" into gingerbread

Merge commit '153bf6c8d7579abca63909424a8602a0f3b8bcd4'

* commit '153bf6c8d7579abca63909424a8602a0f3b8bcd4':
Fix issue #3113424: Battery stats don't reset on Crespo
385a753dead6ef15f2e30eae47f73e642b3ef7ed 21-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 368fdba4 to master

Change-Id: I42b7b433c86a71a5da5db67109f056a280077c9d
d20a5d6b5a821e28d73eba6502a2135134014a84 21-Oct-2010 Wink Saville <wink@google.com> Add AsyncChannel and AsyncService.

Change-Id: Ie6f9aed58f49defcd1c051611ce791e2e62a9474
nternal/util/AsyncChannel.java
nternal/util/AsyncService.java
153bf6c8d7579abca63909424a8602a0f3b8bcd4 20-Oct-2010 Dianne Hackborn <hackbod@google.com> am e9e23405: Merge "Fix issue #3113424: Battery stats don\'t reset on Crespo" into gingerbread

Merge commit 'e9e23405833a5fedb6a1c2dcec87d84e39d1d13d' into gingerbread-plus-aosp

* commit 'e9e23405833a5fedb6a1c2dcec87d84e39d1d13d':
Fix issue #3113424: Battery stats don't reset on Crespo
266e607bde58aa6ee78ada6e61715c3047568b28 20-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3113424: Battery stats don't reset on Crespo

Change-Id: I38cc3cdfa9cb1466fe3659f001ee57aecf9df179
nternal/os/BatteryStatsImpl.java
7f9b90542e05b350d14bd63c16446c8ce2baf407 20-Oct-2010 Adam Powell <adamp@google.com> Add ActionBar tab callback method onTabReselected

onTabReselected is called if an already-selected tab is chosen again.
For many apps this will be a no-op, but some may treat it as a signal
to return to the top level of a given navigation category.

Change-Id: Ic51fbe477b979562f2d848c4070b2016b217a90f
nternal/app/ActionBarImpl.java
6be063d8a998f1c529f69e4c1649bcdaf514562c 19-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am 5a67749a: am 987e8d7f: Merge "Fix Vibrator permission CTS test broken earlier." into gingerbread

Merge commit '5a67749a35bcbb70bfcc5f4c18da6a196bda33c1'

* commit '5a67749a35bcbb70bfcc5f4c18da6a196bda33c1':
Fix Vibrator permission CTS test broken earlier.
368fdba47a49f249aa4346edaf3f45291ca6a7ff 19-Oct-2010 Joe Onorato <joeo@google.com> am bdf1706a: Merge "Reduce logging." into gingerbread

Merge commit 'bdf1706ac680c0fe74765b8d6d34823b8ac05306' into gingerbread-plus-aosp

* commit 'bdf1706ac680c0fe74765b8d6d34823b8ac05306':
Reduce logging.
5a67749a35bcbb70bfcc5f4c18da6a196bda33c1 19-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am 987e8d7f: Merge "Fix Vibrator permission CTS test broken earlier." into gingerbread

Merge commit '987e8d7f9748018d3fee5778645b267a9ee06ff6' into gingerbread-plus-aosp

* commit '987e8d7f9748018d3fee5778645b267a9ee06ff6':
Fix Vibrator permission CTS test broken earlier.
bdf1706ac680c0fe74765b8d6d34823b8ac05306 19-Oct-2010 Joe Onorato <joeo@google.com> Merge "Reduce logging." into gingerbread
431bb2269532f2514861b908d5fafda8fa64da79 19-Oct-2010 Joe Onorato <joeo@google.com> Reduce logging.

Remember, the system and main logs are
- Shared resources
- Primarily for recording problems
- To be used only for large grained events during normal operation

Bug: 3104855
Change-Id: I136fbd101917dcbc8ebc3f96f276426b48bde7b7
nternal/util/HierarchicalStateMachine.java
26e9cf38b229b738b4e56c3e08be82a9c0f11e64 19-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Fix Vibrator permission CTS test broken earlier.

Bug: 3106964
Change-Id: I76138780ac64f761fe09ef8ba74382c7ee05d794
nternal/app/ShutdownThread.java
c5469bd67abb13321ed0e1a8a08d0f8478fd4c43 19-Oct-2010 Nick Pelly <npelly@google.com> am 774b943f: am d1f7f4a6: Move hidden API\'s Llcp* and P2p* to f/b/c/j/com/android/internal/nfc.

Merge commit '774b943fc6baa7d3e2880382d4dc7ab085d54b65'

* commit '774b943fc6baa7d3e2880382d4dc7ab085d54b65':
Move hidden API's Llcp* and P2p* to f/b/c/j/com/android/internal/nfc.
027610a76e67f39e3a435d68ec785a1cf09dcf9c 18-Oct-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of 964eb438 to master

Change-Id: I0c54d6b88356d8734d7f51234b0114434414502e
65202242defad10eb33a3b3277af49eb238a3f33 18-Oct-2010 Romain Guy <romainguy@google.com> am 157fa0ac: am 77c011ba: Set default heap size to 5MB.

Merge commit '157fa0aca55b8e4747f00d2b729e5e361dea7ddb'

* commit '157fa0aca55b8e4747f00d2b729e5e361dea7ddb':
Set default heap size to 5MB.
875ecaa511ce36c8044ccdf48ee2a3e69dd633fe 18-Oct-2010 Dianne Hackborn <hackbod@google.com> am 13e46665: am 736f5ec4: Merge "Work on issue #3101415: Crespo apps seem to have their UID changed over time." into gingerbread

Merge commit '13e46665ff69c1a37880762d7d611aacdf02dac7'

* commit '13e46665ff69c1a37880762d7d611aacdf02dac7':
Work on issue #3101415: Crespo apps seem to have their UID changed over time.
774b943fc6baa7d3e2880382d4dc7ab085d54b65 18-Oct-2010 Nick Pelly <npelly@google.com> am d1f7f4a6: Move hidden API\'s Llcp* and P2p* to f/b/c/j/com/android/internal/nfc.

Merge commit 'd1f7f4a68375f879671d300510f23d3ee78a500e' into gingerbread-plus-aosp

* commit 'd1f7f4a68375f879671d300510f23d3ee78a500e':
Move hidden API's Llcp* and P2p* to f/b/c/j/com/android/internal/nfc.
d1f7f4a68375f879671d300510f23d3ee78a500e 18-Oct-2010 Nick Pelly <npelly@google.com> Move hidden API's Llcp* and P2p* to f/b/c/j/com/android/internal/nfc.

Change-Id: I9bb67de2956b1ecb765ca4ac142ed9455060bec4
Signed-off-by: Nick Pelly <npelly@google.com>
nternal/nfc/LlcpConnectionlessSocket.java
nternal/nfc/LlcpException.java
nternal/nfc/LlcpServiceSocket.java
nternal/nfc/LlcpSocket.java
nternal/nfc/NfcException.java
nternal/nfc/P2pDevice.java
nternal/nfc/P2pInitiator.java
nternal/nfc/P2pTarget.java
964eb4389bb62e4e9e7f65ef7b9307e052053679 17-Oct-2010 Dianne Hackborn <hackbod@google.com> am 42499170: Implement issue #3094621 and #3094609 - wipe sd card

Merge commit '424991704b5fb7a64f6cf0fcc3f4b1aabbf2a2e0' into gingerbread-plus-aosp

* commit '424991704b5fb7a64f6cf0fcc3f4b1aabbf2a2e0':
Implement issue #3094621 and #3094609 - wipe sd card
424991704b5fb7a64f6cf0fcc3f4b1aabbf2a2e0 16-Oct-2010 Dianne Hackborn <hackbod@google.com> Implement issue #3094621 and #3094609 - wipe sd card

3094621: add "wipe sd card" option to factory data reset
3094609: collapse unmount/format into one command

Also since we have decided that it is important to consider
the Crespo storage as internal storage, DevicePolicyManager
gets a new API to be able to wipe it. (No big deal, since
all of the work for this is now done in the implementation
of the new UI.)

Change-Id: I32a77c410f710a87dcdcbf6586c09bd2e48a8807
nternal/os/storage/ExternalStorageFormatter.java
da3fe88b2dbc1f731760162d1d9420afca9c19e6 16-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am 33476b2d: am feebaf35: Merge "Don\'t crash on null Vibrator during reboot." into gingerbread

Merge commit '33476b2db82b5a7f025eb9625fa56f94290e97f4'

* commit '33476b2db82b5a7f025eb9625fa56f94290e97f4':
Don't crash on null Vibrator during reboot.
157fa0aca55b8e4747f00d2b729e5e361dea7ddb 16-Oct-2010 Romain Guy <romainguy@google.com> am 77c011ba: Set default heap size to 5MB.

Merge commit '77c011ba75ee1403c9b7626e4676cd3c8746605b' into gingerbread-plus-aosp

* commit '77c011ba75ee1403c9b7626e4676cd3c8746605b':
Set default heap size to 5MB.
77c011ba75ee1403c9b7626e4676cd3c8746605b 16-Oct-2010 Romain Guy <romainguy@google.com> Set default heap size to 5MB.

Change-Id: Iac8ae3cbe6b431767776653c9f430983172cfb6f
nternal/os/ZygoteInit.java
13e46665ff69c1a37880762d7d611aacdf02dac7 16-Oct-2010 Dianne Hackborn <hackbod@google.com> am 736f5ec4: Merge "Work on issue #3101415: Crespo apps seem to have their UID changed over time." into gingerbread

Merge commit '736f5ec476526f3431d81dec5fb695bdee27e21a' into gingerbread-plus-aosp

* commit '736f5ec476526f3431d81dec5fb695bdee27e21a':
Work on issue #3101415: Crespo apps seem to have their UID changed over time.
8718a51a5b6daab57fd55f5a6c083aa51c9f0f94 15-Oct-2010 Jesse Wilson <jessewilson@google.com> Close System.out and System.err streams when they are made unreachable.

Change-Id: I295a9b2e5eb2d4e94b042f3a51e2f39b58a47d49
http://b/3072844
nternal/os/RuntimeInit.java
8bdf5935c0db4a66ab33a10b43398d2523cfa15d 15-Oct-2010 Dianne Hackborn <hackbod@google.com> Work on issue #3101415: Crespo apps seem to have their UID changed over time.

fsync!

Change-Id: Ie6c5397202579935ac69bf61d3e7b3081ecf269c
nternal/os/AtomicFile.java
nternal/os/BatteryStatsImpl.java
33476b2db82b5a7f025eb9625fa56f94290e97f4 15-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am feebaf35: Merge "Don\'t crash on null Vibrator during reboot." into gingerbread

Merge commit 'feebaf35c0edaed87edc6eb33a33ad9df1a209d6' into gingerbread-plus-aosp

* commit 'feebaf35c0edaed87edc6eb33a33ad9df1a209d6':
Don't crash on null Vibrator during reboot.
9456714cfb9eb5ba4882fdcc922b787d77ed4da4 15-Oct-2010 Kenny Root <kroot@google.com> am b4f26a9d: am e6ae5c39: Merge "Add shutdown assurance" into gingerbread

Merge commit 'b4f26a9d37caf7762b66b68d50825c5b075b42bd'

* commit 'b4f26a9d37caf7762b66b68d50825c5b075b42bd':
Add shutdown assurance
e331644cb570e74a8739cb21ffcc5875663ffa58 15-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Don't crash on null Vibrator during reboot.

Bug: 3099305
Change-Id: I9af126f7a719f36ae544f517a2fccd0d33339389
nternal/app/ShutdownThread.java
c61c98fdba0f705e29d6d1e9fc81e33d4cb07ff9 15-Oct-2010 Daniel Lehmann <lehmannd@google.com> am d16f7588: Merge "DO NOT MERGE: Private API to pass the selected tab through QuickContacts" into gingerbread

Merge commit 'd16f7588a88ba98c6c466ee31bb96bc1f9562a98' into gingerbread-plus-aosp

* commit 'd16f7588a88ba98c6c466ee31bb96bc1f9562a98':
DO NOT MERGE: Private API to pass the selected tab through QuickContacts
89edde3efad66063ff6108475976352c0c4e5fdb 14-Oct-2010 Adam Powell <adamp@google.com> Holo styling and metrics; holo spinners

Change-Id: Ib6d80e5e1a79b7a4ff208df8dbc097e7b9228d13
nternal/widget/ActionBarView.java
2794eb3b02e2404d453d3ad22a8a85a138130a07 13-Oct-2010 Chet Haase <chet@google.com> Remove generics from Animator APIs

Change the manner of constructing Animator-related objects from constructors
via generics to factory methods with type-specific method names. Should
improve the proliferation of warnings due to generics issues and make the
code more readable (less irrelevant angle brackets Floating around).

Change-Id: Ib59a7dd72a95d438022e409ddeac48853082b943
nternal/widget/DrawableHolder.java
2f14c621256e9eac1f958b1a19e41b2a47b7011e 14-Oct-2010 Daniel Lehmann <lehmannd@google.com> DO NOT MERGE: Private API to pass the selected tab through QuickContacts

Bug:3082932

Change-Id: I28dbb21a30fbe22e6e58a8dda534fc9110621c85
nternal/widget/ContactHeaderWidget.java
83d6e8213230fb0805aa019d266842253baeb114 14-Oct-2010 Romain Guy <romainguy@google.com> Revert "Remove generics from Animator APIs"

This reverts commit 41f041d9986f8a5d45b6cb0b86e881c81a412168.
nternal/widget/DrawableHolder.java
70ea25fa8ac1f2005ec4e69023e05af4a8d9bd4a 14-Oct-2010 Romain Guy <romainguy@google.com> Merge "Remove generics from Animator APIs"
aa4b235dd720d1f2861681cdfabf3b5fabc61fb0 14-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> resolved conflicts for merge of 79a5307a to master

Change-Id: I5a524fe53e74df722db003cec6ab62451fe0f899
41f041d9986f8a5d45b6cb0b86e881c81a412168 13-Oct-2010 Chet Haase <chet@google.com> Remove generics from Animator APIs

Change the manner of constructing Animator-related objects from constructors
via generics to factory methods with type-specific method names. Should
improve the proliferation of warnings due to generics issues and make the
code more readable (less irrelevant angle brackets Floating around).

Change-Id: I7c1776b15f3c9f245c09fb7de6dc005fdba58fe2
nternal/widget/DrawableHolder.java
db6303e51ef2779b2b6b8b6dc557b5de9b7fdcf0 14-Oct-2010 Daniel Sandler <dsandler@google.com> Merge "Dynamically show the menu button on the system bar."
d8404b23739b135060ab9a04317a9f8b990cf8ca 13-Oct-2010 Adam Powell <adamp@google.com> Allow icon+text action buttons

Change-Id: I96d1f3958de3ac13cadbab108b87d6bae96e9473
nternal/view/menu/ActionMenuItemView.java
nternal/view/menu/MenuItemImpl.java
b4f26a9d37caf7762b66b68d50825c5b075b42bd 13-Oct-2010 Kenny Root <kroot@google.com> am e6ae5c39: Merge "Add shutdown assurance" into gingerbread

Merge commit 'e6ae5c39848d2a3a6f3fb750811550969799e410' into gingerbread-plus-aosp

* commit 'e6ae5c39848d2a3a6f3fb750811550969799e410':
Add shutdown assurance
e02d808abf370965c3c4e4d38af11bc69110fde2 08-Oct-2010 Daniel Sandler <dsandler@google.com> Dynamically show the menu button on the system bar.

Windows with FLAG_NEEDS_MENU_KEY (or windowNeedsMenuKey=true
in their theme) will cause the system bar to show a menu
icon. (Note that the phone's status bar currently ignores
this, but phones tend to have hardware menu keys anyway.)

Additionally, all windows whose package's SDK version is
pre-Honeycomb will have FLAG_NEEDS_MENU_KEY set by default.

Bug: 3003728

Change-Id: I2d983763a726ea4f32cd1af9b0390e30478b11d1
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
f547d679c058ed00de78a32146d04b75254df7ec 22-Sep-2010 Kenny Root <kroot@google.com> Add shutdown assurance

If something kills system_server before it completes its shutdown
action, the runtime will just restart giving the illusion that a reboot
for an OTA or something else has happened.

To prevent this, write a system property containing the reboot reason
before initiating the shutdown with all the services. If the
system_server is killed before it completes, the next time the main
thread of system_server starts up, it will immediately execute the
shutdown action.

Bug: 3022556
Change-Id: I81723bac333430f04205e7a7b799914d96f170eb
nternal/app/ShutdownThread.java
f16888f1e849b0bc0b9c17e5f833c4e2cd54c382 12-Oct-2010 Adam Powell <adamp@google.com> Holo fixes

* Fix up ButtonGroup to behave better.
* Fix bad states with holo list selectors.
* Clean up action mode UI components.
* Change action mode UI to use a text button instead of 'X' to dismiss.
* Fixed spinner dropdowns for Holo.Light

Change-Id: Ifc092bd549ffb539d6a3b2ddd95ebd4b114a441f
nternal/view/menu/ActionMenuView.java
nternal/widget/ActionBarContextView.java
5684d464c09bdb50fb11889eb787a08556c2bb70 12-Oct-2010 Bjorn Bringert <bringert@android.com> Merge "Move SyncStateContentProviderHelper to frameworks/ex"
057c13bcce4d6f6a35fe7a096e1d1774de003fad 12-Oct-2010 Jean-Baptiste Queru <jbq@google.com> am c43189e7: am 2aaa1ce1: Merge "Hold partial wakelock during shutdown to avoid entering sleep"

Merge commit 'c43189e76964facad8bac6ee7a17ea1016bba4e3'

* commit 'c43189e76964facad8bac6ee7a17ea1016bba4e3':
Hold partial wakelock during shutdown to avoid entering sleep
be4d68e7b238b8ee879de0481e39c40d3f1683b6 09-Oct-2010 Adam Powell <adamp@google.com> Updated styles and metrics.

* Added preliminary ButtonGroup support for buttons that display as a unit.
* Fixed a bug with MenuBuilder that caused old-style icon menus to fail.
* Added support for explicitly setting line height in text.

Change-Id: I1ba65f09dd9e1bc833d247ebe72052a21e3f99f0
nternal/view/menu/ActionMenuItemView.java
nternal/view/menu/ActionMenuView.java
nternal/view/menu/MenuBuilder.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
888edab661995e05e751098ed393d5b0c50ab499 08-Oct-2010 Bjorn Bringert <bringert@android.com> Move SyncStateContentProviderHelper to frameworks/ex

Change-Id: I26cdb3e72a0075e4df3854b526bdf6bb08d671a2
nternal/content/SyncStateContentProviderHelper.java
c43189e76964facad8bac6ee7a17ea1016bba4e3 11-Oct-2010 Jean-Baptiste Queru <jbq@google.com> am 2aaa1ce1: Merge "Hold partial wakelock during shutdown to avoid entering sleep"

Merge commit '2aaa1ce1768d3425c07e55d43aaa400282424f8c' into gingerbread-plus-aosp

* commit '2aaa1ce1768d3425c07e55d43aaa400282424f8c':
Hold partial wakelock during shutdown to avoid entering sleep
50d3fa72d88aa4dcba4286b77439c60ab5dc7fa9 11-Oct-2010 Dianne Hackborn <hackbod@google.com> am d5423321: am 9934fa77: Merge "Fix issue #3074745: Crash in system process" into gingerbread

Merge commit 'd5423321b920be10c00fbcbc5a702f15e00693a5'

* commit 'd5423321b920be10c00fbcbc5a702f15e00693a5':
Fix issue #3074745: Crash in system process
4fb17b0490915d1c26663140c377037ea6af132e 09-Oct-2010 Adam Powell <adamp@google.com> Fix alert dialog layout size in landscape

Change-Id: Iff5c388655c357e78c0c0e98d718fb7601c2d543
nternal/widget/WeightedLinearLayout.java
d5423321b920be10c00fbcbc5a702f15e00693a5 08-Oct-2010 Dianne Hackborn <hackbod@google.com> am 9934fa77: Merge "Fix issue #3074745: Crash in system process" into gingerbread

Merge commit '9934fa77efab362729d0d3cb8aa0bdcd31d63ead' into gingerbread-plus-aosp

* commit '9934fa77efab362729d0d3cb8aa0bdcd31d63ead':
Fix issue #3074745: Crash in system process
c459622dd101fb9db2386f67c54766a9a10b3dba 08-Oct-2010 Adam Powell <adamp@google.com> Merge "Holo theme progress and assets!"
481bbb9c11e640cc6b322bdb300f69f31ea011fe 08-Oct-2010 Joe Onorato <joeo@google.com> Merge "Get rid of the global actions menu on tablets."
d208e709267f8af77690cb38dba2ae8e30ab5241 08-Oct-2010 Joe Onorato <joeo@google.com> Get rid of the global actions menu on tablets.

We have the system tray for that stuff. Make long press on power
go directly to the shut down confirmation dialog. Make that dialog
auto dismiss when the screen goes off. Reword it when we're skipping
the global actions menu, because it feels too abrupt to say "The
phone will shut down" when they haven't clearly pressed a button
that says shut down.

Change-Id: I8c92a1362bd4ed242e6cd94c2dae6d9ff9c4c34d
nternal/app/ShutdownThread.java
2fbf4de64f0ec5052201cea9519c44d5b1789a40 01-Oct-2010 Adam Powell <adamp@google.com> Holo theme progress and assets!

* Light and dark dialogs
* Checkboxes and radio buttons
* Toggle buttons

Warning! This is still a work in progress. This does not include final metrics.
Some assets (specifically dialogs) are currently misaligned.
nternal/view/menu/MenuBuilder.java
f47d8f272c13f0fd264d5a71bcff1c18da10d854 08-Oct-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3074745: Crash in system process

Also some tweaks to battery history collection to hopefully
improve the data we have.

Change-Id: I178a54a8c2d15cf38dcceaeef939406f50059aa4
nternal/os/BatteryStatsImpl.java
c5610a4c1308e2d52108131fbdef35e432a414b6 07-Oct-2010 Kenny Root <kroot@google.com> am cfc80bd5: am 2c3360fe: Merge "Remove lingering system app native libs in /data" into gingerbread

Merge commit 'cfc80bd5c1e4f0207357b288b1b7b8374a31ba70'

* commit 'cfc80bd5c1e4f0207357b288b1b7b8374a31ba70':
Remove lingering system app native libs in /data
47a44916e2fb33cf4751906386d5f5c903b28d8b 06-Oct-2010 satok <satok@google.com> Add InputMethodEnabler for enabling input methods and subtypes

- Copyed functionarity from LanguageSettings.java

TODO: Save enabled InputMethodSubtypes

Change-Id: I7b4fb1a79cb8b3229f88773d261430e23ba7aae2
nternal/view/IInputMethodManager.aidl
nternal/view/InputMethodAndSubtypeEnabler.java
a4a01b5d6b68a7e25fc54f23c7332c22fe0761df 06-Oct-2010 Gilles Debunne <debunne@google.com> am 6f4f0106: am b621e203: Merge "Removed icon in Alert dialog header." into gingerbread

Merge commit '6f4f01062bc78ae765c970e8796b8dbef432f8a4'

* commit '6f4f01062bc78ae765c970e8796b8dbef432f8a4':
Removed icon in Alert dialog header.
cfc80bd5c1e4f0207357b288b1b7b8374a31ba70 05-Oct-2010 Kenny Root <kroot@google.com> am 2c3360fe: Merge "Remove lingering system app native libs in /data" into gingerbread

Merge commit '2c3360fe9c03536cbfd77267170b73c120c071ac' into gingerbread-plus-aosp

* commit '2c3360fe9c03536cbfd77267170b73c120c071ac':
Remove lingering system app native libs in /data
831baa2e2566bf1d243c06918672abd5ff786105 05-Oct-2010 Kenny Root <kroot@google.com> Remove lingering system app native libs in /data

If a system app had a lingering native library in /data/data/<app>/lib,
it would prefer that over the one in /system/lib due to recent changed
in the Dalvik JNI class loading code.

To "fix" that we need to check if there are any native libraries in a
/data/data/<app>/lib directory for any non-updated system apps and
delete them during scanning.

Change-Id: If3a22e41a8531e9e5a44ba001dcea46253d47d45
nternal/content/NativeLibraryHelper.java
6f4f01062bc78ae765c970e8796b8dbef432f8a4 05-Oct-2010 Gilles Debunne <debunne@google.com> am b621e203: Merge "Removed icon in Alert dialog header." into gingerbread

Merge commit 'b621e2030d86356af6e8f37e9aed339a5f2ea52b' into gingerbread-plus-aosp

* commit 'b621e2030d86356af6e8f37e9aed339a5f2ea52b':
Removed icon in Alert dialog header.
076c7fbeda5c4205e3e52fbc6110ab1c4b342afe 04-Oct-2010 Gilles Debunne <debunne@google.com> Removed icon in Alert dialog header.

Bug 3042419

I wanted to nuke this one for ages

Change-Id: I079bec9b31157d6b7887c4f22612e56ae9690e7c
nternal/app/AlertController.java
fcf0f5734cac12d744a3b0d0b40b210435217054 01-Oct-2010 Kenny Root <kroot@google.com> am aff30c9b: am 99f8c5ee: Merge "Fix location of gdbserver upon installation" into gingerbread

Merge commit 'aff30c9b0db2c4e28afbe83436ab9024b67665cf'

* commit 'aff30c9b0db2c4e28afbe83436ab9024b67665cf':
Fix location of gdbserver upon installation
a53146c5569f8ff5f7eb55e9ad35d23ddacf2add 07-Sep-2010 Christopher Tate <ctate@google.com> Drag/drop APIs and infrastructure

A View initiates a drag-and-drop operation (hereafter just called a "drag")
by calling its startDrag(ClipData) method. Within the processing of that
call, two callbacks are made into the originating View. The first is to
onMeasureDragThumbnail(). Similarly to the core onMeasure() method, this
callback must respond by calling setDragThumbnailDimension(width, height) to
declare the size of the drag thumbnail image that should be used. Following
this, the View's onDrawDragThumbnail(canvas) method will be invoked to
actually produce the bits of the thumbnail image.

If all goes well, startDrag() will return 'true', and the drag is off and
running. (The other arguments to startDrag() provide reconciliation between
the current finger position and where the thumbnail should be placed on
the screen relative to it.)

Potential receipients of the ClipData behind the drag are notified by a
new dispatch mechanism, roughly parallel to motion event dispatch. The core
routine is the View's onDragEvent(event) callback, with the mechanics of
dispatch itself being routed through dispatchDragEvent(event) -- as in
the case of motion events, the dispatch logic is in ViewGroup, with leaf
View objects not needing to consider the dispatch flow.

Several different event 'actions' are delivered through this dispatch
mechanism:

ACTION_DRAG_STARTED: this event is propagated to every View in every window
(including windows created during the course of a drag). It serves as a
global notification that a drag has started with a payload whose matching
ClipDescription is supplied with the event. A View that is prepared to
consume the data described in this event should return 'true' from their
onDragEvent() method, and ideally will also make some visible on-screen
indication that they are a potential target of the drop.

ACTION_DRAG_ENTERED: this event is sent once when the drag point
enters the View's bounds. It is an opportunity for the View to set up
feedback that they are the one who will see the drop if the finger goes
up now.

ACTION_DRAG_LOCATION: when the drag point is over a given View, that
View will receive a stream of DRAG_LOCATION events, providing an
opportunity for the View to show visual feedback tied to the drag point.

ACTION_DRAG_EXITED: like DRAG_ENTERED, but called when the drag point
leaves the View's bounds. The View should undo any visuals meant to
emphasize their being the hovered-over target.

ACTION_DROP: when the drag ends at a given point, the View under that
point is sent this event, with the full ClipData of the payload.

ACTION_DRAG_ENDED: paralleling the DRAG_STARTED action, this is the global
broadcast that the drag has ended and all Views should return to their
normal visual state. This happens after the DROP event.

Change-Id: Ia8d0fb1516bce8c735d87ffd101af0976d7e84b6
nternal/view/BaseIWindow.java
aff30c9b0db2c4e28afbe83436ab9024b67665cf 30-Sep-2010 Kenny Root <kroot@google.com> am 99f8c5ee: Merge "Fix location of gdbserver upon installation" into gingerbread

Merge commit '99f8c5ee621d78a24583a10e459ba40aab511a17' into gingerbread-plus-aosp

* commit '99f8c5ee621d78a24583a10e459ba40aab511a17':
Fix location of gdbserver upon installation
e6da118ebfa2574da7a635158178b768f3a226e1 30-Sep-2010 Kenny Root <kroot@google.com> Fix location of gdbserver upon installation

Change-Id: Ie97f10456e5639e008abf4792a01b966b97721e7
nternal/content/NativeLibraryHelper.java
3cfc508f4ec535b47ffbb587b32a8846c37338cc 30-Sep-2010 Jeff Brown <jeffbrown@google.com> am 76d55a34: am 5068ad8d: Revert orientation change.

Merge commit '76d55a3447954db97b7172d068813d02e89ba9ca'

* commit '76d55a3447954db97b7172d068813d02e89ba9ca':
Revert orientation change.
36c956d78b3972173740d4ef69072fbd0ac6ab61 30-Sep-2010 Jeff Brown <jeffbrown@google.com> am b8182a38: am 93e3296f: Merge "PointerLocationView: Display orientation correctly." into gingerbread

Merge commit 'b8182a382df3efaf18c9810dd7c517b2601edadb'

* commit 'b8182a382df3efaf18c9810dd7c517b2601edadb':
PointerLocationView: Display orientation correctly.
76d55a3447954db97b7172d068813d02e89ba9ca 30-Sep-2010 Jeff Brown <jeffbrown@google.com> am 5068ad8d: Revert orientation change.

Merge commit '5068ad8d2396d6d7bfbdb1c2c3fe57104744f1f9' into gingerbread-plus-aosp

* commit '5068ad8d2396d6d7bfbdb1c2c3fe57104744f1f9':
Revert orientation change.
b8182a382df3efaf18c9810dd7c517b2601edadb 30-Sep-2010 Jeff Brown <jeffbrown@google.com> am 93e3296f: Merge "PointerLocationView: Display orientation correctly." into gingerbread

Merge commit '93e3296f946bf54e0f8172c9d26355d9a65c878f' into gingerbread-plus-aosp

* commit '93e3296f946bf54e0f8172c9d26355d9a65c878f':
PointerLocationView: Display orientation correctly.
5068ad8d2396d6d7bfbdb1c2c3fe57104744f1f9 30-Sep-2010 Jeff Brown <jeffbrown@google.com> Revert orientation change.

Change-Id: I1a6d13be118533171b9a75025dcf7985dd7e12b5
nternal/widget/PointerLocationView.java
707a57aa268fba94854d3a07f6bc7e1f021bc43f 30-Sep-2010 Jeff Brown <jeffbrown@google.com> PointerLocationView: Display orientation correctly.

Canvas rotations are counterclockwise, orientation is clockwise,
so we need to mind the sign of the rotation.

Change-Id: I2a8b60599bd26e9dc3ced2e13942f846461333df
nternal/widget/PointerLocationView.java
3f03496ad97b5f60ab432bca2d17a3e07b4ade47 28-Sep-2010 Jaikumar Ganesh <jaikumar@google.com> Update code for new BT APIs.

Change-Id: I53aa17b6c2a5ee50d47df91960a7f997eb7b1107
nternal/os/BatteryStatsImpl.java
cd4e4279804288a941c308b88df8bafa4f3f7458 28-Sep-2010 Mattias Larsson <mattias7.larsson@sonyericsson.com> Hold partial wakelock during shutdown to avoid entering sleep

The ShutdownThread can get suspended while in progress if the
device enters sleep by the user pressing the power-key, or if it is
started (in sleep) from the BatteryService upon a dead battery
notification. If the device is woken up before the battery is
drained, the ShutdownThread will resume and finally complete
the shutdown, but if not the phone will stay in sleep until the
battery level is so low that the power is ruthlessly cut.

Change-Id: If64429fd0c98a9136141942be6c337b5c79cf4f1
nternal/app/ShutdownThread.java
e4679f1ed2ef044468d4a37f6e220c414620685a 28-Sep-2010 Adam Powell <adamp@google.com> Temporary hack to make context menu text visible on holo dialogs.

Real fix for this to come. MenuBuilder needs to not hardcode themes
and dialogs shouldn't either.

Change-Id: I393969acd1ef6956d7299cb2eff46708ce812d1d
nternal/view/menu/MenuBuilder.java
5dd1169ae95162383acf00d1e9a1886e0ac99a70 28-Sep-2010 Joe Onorato <joeo@google.com> Hide the "Clear all" button in the notification panel if there are no clearable notifications.

Change-Id: I7145036724939220e1f23fb91c62027b28663c20
nternal/statusbar/StatusBarNotification.java
846df9f5171c4ef32f038cca651b6b9c0b6c3083 24-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 8952a448 to master

Change-Id: I9c752a5d10ae8d8e5ead1243b6abd4795204fc0b
3060421045d4d9e411797f91bb509824b03e33fb 23-Sep-2010 Jim Miller <jaggies@google.com> Add new WaveView widget to framework and integrate into LockScreen.

This adds a new "Energy Wave" widget to the internal widgets and
integrates it into LockScreen.

ValueAnimator needed a slight modification since it expects to
be run inside of Activities with a Looper. Additionally, this adds
an API, removeAllUpdateListeners(), which is needed to properly
recycle ValueAnimator objects.

Some minor code cleanup and UI tweaks after review.

Changed delay timeout from 1.3s to 0.5s.

Change-Id: Ibcf015e61fa8ba79d62f2019f1b29ace7caa00c8
nternal/widget/DrawableHolder.java
nternal/widget/WaveView.java
8952a4488e81205e3013b6b456dec503e05eebd0 24-Sep-2010 Dianne Hackborn <hackbod@google.com> am 287952c3: Fix issue #3022508: Crash during media scan

Merge commit '287952c35e148811c106bc0f5036eabf20f71562' into gingerbread-plus-aosp

* commit '287952c35e148811c106bc0f5036eabf20f71562':
Fix issue #3022508: Crash during media scan
287952c35e148811c106bc0f5036eabf20f71562 23-Sep-2010 Dianne Hackborn <hackbod@google.com> Fix issue #3022508: Crash during media scan

Don't kill processes for excessive wake lock use, even if they
are in the background, as long as they have running services.

Also fix some problems with this, such as not noting the kill
in battery stats.

And add killing of processes for cpu usage as well, along with
some optimizations to computing CPU usage.

And fix BatteryWaster to be better behaving for testing these
cases.

Add new "monitor" command to am to watch as the activity manager
does stuff (so we can catch things at the point of ANR).

Finally some miscellaneous debug output for the stuff here, as
well as in progress debugging of an ANR.

Change-Id: Ib32f55ca50fb7486b4be4eb5e695f8f60c882cd1
nternal/os/BatteryStatsImpl.java
ab751aa085433e9f735d2e7603459c6c7e9d2fb0 14-Sep-2010 satok <satok@google.com> Add methods for managing subtypes

- added showInputMethodSubtypePicker to public API
-- show the selector dialog for subtypes
- added getter, setter and event handler to InputMethodManagerService
- extract InputMethodSubtype to the top level class for using it in aidl
- TODO: make an enabler for input method subtypes
- TODO: handle the event of changing an input method subtype in LatinIME

Change-Id: I49f8c6675ac4b06511635d14a37bd398738eff33
nternal/view/IInputMethod.aidl
nternal/view/IInputMethodManager.aidl
48a781a0a5f83da7c81cf0e7230151a751740a09 21-Sep-2010 Dianne Hackborn <hackbod@google.com> am 4b187e80: am 8e1b84e7: Merge "Some battery improvements:" into gingerbread

Merge commit '4b187e804fdfdbc825e17646e82e0218e316a339'

* commit '4b187e804fdfdbc825e17646e82e0218e316a339':
Some battery improvements:
4b187e804fdfdbc825e17646e82e0218e316a339 21-Sep-2010 Dianne Hackborn <hackbod@google.com> am 8e1b84e7: Merge "Some battery improvements:" into gingerbread

Merge commit '8e1b84e7654ddeeb77a03f5eca10c6669b1cb42b' into gingerbread-plus-aosp

* commit '8e1b84e7654ddeeb77a03f5eca10c6669b1cb42b':
Some battery improvements:
ce2ef766cad1bb186ea522f76c4ac6a8bb3dfa87 20-Sep-2010 Dianne Hackborn <hackbod@google.com> Some battery improvements:

- New API for iterating over history that will allow a better implementation
in the future.
- Now do writes asynchronously.

Also improve the documentation for Activity.onRetainNonInstanceState().

Change-Id: Idf67f2796a8868eb62f288bcbb2bad29876c8554
nternal/os/BatteryStatsImpl.java
03f3cb083d708d4d3226b80ed42c9d2876a56edc 18-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 1f377298 to master

Change-Id: I0d92abae3a86792b47777f795143acc0489adfe4
1f377298e2aaf6a1736295c0413d468eb1db5091 18-Sep-2010 Dianne Hackborn <hackbod@google.com> am 58e0eefe: Improve power tracking of WIFI use.

Merge commit '58e0eefeb5e2e270e2b04369bbf29fc22abda8d5' into gingerbread-plus-aosp

* commit '58e0eefeb5e2e270e2b04369bbf29fc22abda8d5':
Improve power tracking of WIFI use.
58e0eefeb5e2e270e2b04369bbf29fc22abda8d5 16-Sep-2010 Dianne Hackborn <hackbod@google.com> Improve power tracking of WIFI use.

We now distribute "wifi started" time across all apps that are
holding WIFI locks that cause it to be started. But only when
WIFI would not normally be running. Also have a mechanism to
distribute other WIFI work that has happened across those processes
based on their use.

Also fixed a bug where we were not retaining the CPU speed step
stats across boots...!

Change-Id: I00e3153b98429166273750512cc37e7975211ab9
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
0b6232da8995d6fa556d55ea2067dab3c1180919 16-Sep-2010 Joe Onorato <joeo@google.com> These are not javadoc tags, they are annotations in sample code. Escape them properly.
nternal/util/HierarchicalStateMachine.java
d35186ce1882b79db5aeaea7a5a6fdf4be89bcb8 16-Sep-2010 Joe Onorato <joeo@google.com> am 7747795a: Merge "These are not javadoc tags, they are annotations in sample code. Escape them properly." into gingerbread

Merge commit '7747795af508354b3792e497e6a7b4bc749b4007' into gingerbread-plus-aosp

* commit '7747795af508354b3792e497e6a7b4bc749b4007':
These are not javadoc tags, they are annotations in sample code. Escape them properly.
0d903bcd780a927b8f9cdc8e178afdf85858ba0a 16-Sep-2010 Joe Onorato <joeo@google.com> These are not javadoc tags, they are annotations in sample code. Escape them properly.

Change-Id: Ic3b9f2738a1f8ae8aa6a2a278f1d4ba3a7727b51
nternal/util/HierarchicalStateMachine.java
0b2d306e7000f4c0c6ad4e00d494bb401d8a9fc2 15-Sep-2010 Adam Powell <adamp@google.com> Style new popup widgets.

Change-Id: I208ed292afd9919071778baa9ea61d7ca9e7743c
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuPopupHelper.java
88b7349125d26200c5b4ef3c143e2e1cceda5703 15-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Take apart LocalePicker#onListItemClick() into two

It takes some time when Locale is actually switched by the system,
which looks "system halt". Previous implementation doesn't allow
developers to cope with the situation and they just had to let
users wait for a moment.

This change allows the LocalePicker users (developers) to hook
the item change and delay the actual halt. If they don't want it,
calling updateLocale() immediately works fine.

Related
- I29685118467bd2a68b80abcf234f91098839be0b
- Iba7378e51e6d5318e901045ebeda63ea954a0647

Change-Id: I4062a70e11600d87e889b40d30796387c7069e21
nternal/app/LocalePicker.java
e746f03c6c8b8d0897d322ab524d545ace200fcd 14-Sep-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 53686433 to master

Change-Id: I27004dc464f5771d3205ae5757c6eccc5b16854d
53686433a9790bcfe7211a661b26783ee12bb436 13-Sep-2010 Dianne Hackborn <hackbod@google.com> am 7e9f4eb2: Track client requests through location manager.

Merge commit '7e9f4eb2608148436cef36c9969bf8a599b39e72' into gingerbread-plus-aosp

* commit '7e9f4eb2608148436cef36c9969bf8a599b39e72':
Track client requests through location manager.
7e9f4eb2608148436cef36c9969bf8a599b39e72 11-Sep-2010 Dianne Hackborn <hackbod@google.com> Track client requests through location manager.

This fixes a problem where applications could ask the location
manager to do very heavy-weight things (like... say... update
location every minute), which would get accounted against the
system instead of the application because ultimately it is the
system making the heavy calls (wake locks, etc).

To solve this, we introduce a new class WorkSource representing
the source of some work. Wake locks and Wifi locks allow you
to set the source to use (but only if you are system code and thus
can get the permission to do so), which is what will be reported
to the battery stats until the actual caller.

For the initial implementation, the location manager keeps track
of all clients requesting periodic updates, and tells its providers
about them as a WorkSource param when setting their min update time.
The network location provider uses this to set the source on the
wake and wifi locks it acquires, when doing work because of the
update period.

This should also be used elsewhere, such as in the GPS provider,
but this is a good start.

Change-Id: I2b6ffafad9e90ecf15d7c502e2db675fd52ae3cf
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
19c9c7cc6d11f28b2b4bc7a46f8c54aac9078dfc 13-Sep-2010 Jeff Brown <jeffbrown@google.com> am fb8116f7: am c891d2b3: Merge "Fix PointerLocationView when pointer ids are not zero-based." into gingerbread

Merge commit 'fb8116f736f2df6d1b2f8044541390a9fd9953cb'

* commit 'fb8116f736f2df6d1b2f8044541390a9fd9953cb':
Fix PointerLocationView when pointer ids are not zero-based.
fb8116f736f2df6d1b2f8044541390a9fd9953cb 13-Sep-2010 Jeff Brown <jeffbrown@google.com> am c891d2b3: Merge "Fix PointerLocationView when pointer ids are not zero-based." into gingerbread

Merge commit 'c891d2b3529b9cf24ef4781a585cd4784815e711' into gingerbread-plus-aosp

* commit 'c891d2b3529b9cf24ef4781a585cd4784815e711':
Fix PointerLocationView when pointer ids are not zero-based.
d1e0c371a651f024b3de62a686c56e369e3f361e 13-Sep-2010 Jeff Brown <jeffbrown@google.com> Fix PointerLocationView when pointer ids are not zero-based.

Since we support using driver-provided pointer ids (ABS_MT_TRACKING_ID)
there is no guarantee that pointer ids will necessarily start from 0
or be contiguous.

Change-Id: I9609b7a3bb238d7edbcbd68cc839dd6d14baf9df
nternal/widget/PointerLocationView.java
cf78b3e5101349fdddbde14b3a55140f9562ae66 13-Sep-2010 Adam Powell <adamp@google.com> Add support for custom action views in ActionBar menus

Change-Id: Ic7850bc00fcfe95d805dd6a1b15cb5d413942475
nternal/view/menu/ActionMenuItem.java
nternal/view/menu/ActionMenuView.java
nternal/view/menu/MenuItemImpl.java
5d8b320428957e377e93abf009b731bb8312bf9b 13-Sep-2010 Kenny Root <kroot@google.com> am 1361a5bd: am 07a9e8d3: Merge changes Ie3648509,I53db73c3 into gingerbread

Merge commit '1361a5bd1eba1cae16c301622324153c3d50b84c'

* commit '1361a5bd1eba1cae16c301622324153c3d50b84c':
Move native library removal function to helper
Initialize native library path in PackageSetting
1361a5bd1eba1cae16c301622324153c3d50b84c 13-Sep-2010 Kenny Root <kroot@google.com> am 07a9e8d3: Merge changes Ie3648509,I53db73c3 into gingerbread

Merge commit '07a9e8d39f818e54f0feccff10c99b9629007a64' into gingerbread-plus-aosp

* commit '07a9e8d39f818e54f0feccff10c99b9629007a64':
Move native library removal function to helper
Initialize native library path in PackageSetting
2a5a53709ee40d4e400ef78adc695a1a9ae874e2 13-Sep-2010 Adam Powell <adamp@google.com> Fix broken ActionMode close button styling

Change-Id: I425df1433d43c1b2bd392464ed10142532640f81
nternal/widget/ActionBarContextView.java
f63b0f44eb53f535a65bd83dbc1d8b95abc501da 12-Sep-2010 Joe Onorato <joeo@google.com> Connect my plumbing to dsandler's awesome lights out mode.

It took a little bit of refactoring to move the authoritative state
about whether the lights are on or not into the StatusBarManagerService,
so that if the system ui process crashes, the bar comes up in the
right mode.

Change-Id: I95cfaf8f78ca4443ded5262272ea755d44dc5d17
nternal/statusbar/IStatusBarService.aidl
9305647eb61bb60a1f42481a0c0d208dc9bbe965 10-Sep-2010 Joe Onorato <joeo@google.com> Plumb lights out mode through from the window manager to the status bar running in the system ui process.

Lights out mode itself isn't implemented.

Change-Id: Ieeef0eb9ae5be23000f770e74e8ee66472f4c673
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
8f7cc02c7c4bd542376648dbd54be3ceb8521f73 12-Sep-2010 Kenny Root <kroot@google.com> Move native library removal function to helper

Moves the remoteNativeLibrariesLI call to NativeLibraryHelper to prepare
for being able to symlink the /data/data/<package>/lib dir to the ASEC
container.

Change-Id: Ie3648509c6b6293a8d9bdd815610ab408df5047f
nternal/content/NativeLibraryHelper.java
b3f245c30c022de8a26e016b7c9d5f13747b2868 11-Sep-2010 Adam Powell <adamp@google.com> Allow the theme to affect action bar menus

Change-Id: Ie914881de626415886289e830fb1ff166ce13159
nternal/view/menu/MenuBuilder.java
bc234a19f4c74116454e2c77f4739290e761995a 10-Sep-2010 Adam Powell <adamp@google.com> Clean up action bar styles

Change-Id: Ib19698e08d643994c4416aac29a43e9197bbe1f3
nternal/widget/ActionBarContextView.java
8615fdc15146d27cc2d3a8efbe57f0a425b19efb 10-Sep-2010 Dianne Hackborn <hackbod@google.com> am 506d724c: Merge "DO NOT MERGE. I like\'d ctate\'s change so much I\'m doin it myself!" into gingerbread

Merge commit '506d724cc356a7ba73995ef2929c65062277c83d' into gingerbread-plus-aosp

* commit '506d724cc356a7ba73995ef2929c65062277c83d':
DO NOT MERGE. I like'd ctate's change so much I'm doin it myself!
618b8c1e988ac6c8006da66ca9e8a1e1d49c9dd5 10-Sep-2010 Dianne Hackborn <hackbod@google.com> DO NOT MERGE. I like'd ctate's change so much I'm doin it myself!

Change-Id: If571d3ff5e73252a0653c30ec40178ec1591ddd9
nternal/os/BatteryStatsImpl.java
c6ded1ba463f78bbb3bf21dc8362d599c7722e65 10-Sep-2010 Dianne Hackborn <hackbod@google.com> am 195dc210: am a4ce31f5: Merge "Small fixes to battery stats." into gingerbread

Merge commit '195dc210cb59ba3f660e31a95334fc3fa4d3ad2c'

* commit '195dc210cb59ba3f660e31a95334fc3fa4d3ad2c':
Small fixes to battery stats.
195dc210cb59ba3f660e31a95334fc3fa4d3ad2c 10-Sep-2010 Dianne Hackborn <hackbod@google.com> am a4ce31f5: Merge "Small fixes to battery stats." into gingerbread

Merge commit 'a4ce31f5e080eae6c97e6f37040db0c7f0fc78f2' into gingerbread-plus-aosp

* commit 'a4ce31f5e080eae6c97e6f37040db0c7f0fc78f2':
Small fixes to battery stats.
a4ce31f5e080eae6c97e6f37040db0c7f0fc78f2 10-Sep-2010 Dianne Hackborn <hackbod@google.com> Merge "Small fixes to battery stats." into gingerbread
b8071d790a32dc715c0fd6d4e7e1bbea6c8f7a02 10-Sep-2010 Dianne Hackborn <hackbod@google.com> Small fixes to battery stats.

Change-Id: Ibbf7c548a8e787a046de3659094cea64908e3deb
nternal/os/BatteryStatsImpl.java
c32e3275fee96124c9c05c0de07eb61f47657ab5 10-Sep-2010 Christopher Tate <ctate@google.com> Merge "Don't crash in batterystats"
898c4dc59fd37e42960dea906ab4a5264b8b135f 09-Sep-2010 Christopher Tate <ctate@google.com> Don't crash in batterystats

The number of timers to allocate time shares to is calculated by
disregarding system-UID execution. However, the actual allocation
of time *was* considering system-UID locks as well. This wound up
trying to share time across more timers than had been counted in the
first pass, leading to divide-by-zero exceptions.

This patch changes the logic to account the time slice only to
non-system-UID entities, in keeping with the commentary.

Change-Id: I7384a3c269aea44e52bc983927f9417e11613ad5
nternal/os/BatteryStatsImpl.java
079fd1c0a329b0fbd3761abe2e900a941131efed 09-Sep-2010 Adam Powell <adamp@google.com> Make action buttons more style-based

Change-Id: Ia7ef4da8d8004f1b3809b4883aafc541695d235a
nternal/view/menu/ActionMenuView.java
62ecf53538ce46662a71f3026cf3aa5b5224cd6a 09-Sep-2010 Mathias Agopian <mathias@google.com> am 3fa7d8af: am 9bfb060a: Merge "Force wallpaper surface to 565." into gingerbread

Merge commit '3fa7d8af6560de07ef673f73308f7e51de64e4ec'

* commit '3fa7d8af6560de07ef673f73308f7e51de64e4ec':
Force wallpaper surface to 565.
3fa7d8af6560de07ef673f73308f7e51de64e4ec 09-Sep-2010 Mathias Agopian <mathias@google.com> am 9bfb060a: Merge "Force wallpaper surface to 565." into gingerbread

Merge commit '9bfb060ac4e30c82ec2c269b78cc758a6cb5daf8' into gingerbread-plus-aosp

* commit '9bfb060ac4e30c82ec2c269b78cc758a6cb5daf8':
Force wallpaper surface to 565.
9bfb060ac4e30c82ec2c269b78cc758a6cb5daf8 09-Sep-2010 Mathias Agopian <mathias@google.com> Merge "Force wallpaper surface to 565." into gingerbread
62bf4a0283e855e2fb5f40f36909501e5b4a09eb 09-Sep-2010 Mathias Agopian <mathias@google.com> Force wallpaper surface to 565.

This is to maintain backward compatibility with badly programmed
GL wallpapers. Wallpapers can call SurfaceHolder.setFormat() to
request a different format.

Change-Id: Ib42b0cf6c7040d1300cad239c3acfd5c4c6cd326
nternal/view/BaseSurfaceHolder.java
75c923e3ec584dc8c3418534141e49441df0462a 09-Sep-2010 Adam Powell <adamp@google.com> Merge "Added resources and styles for ActionBar tabs"
ca259f4081404a8b4524b2fe80ab036182141ab7 08-Sep-2010 Adam Powell <adamp@google.com> Added resources and styles for ActionBar tabs

Change-Id: I7ba5502146dec2d71b3e9ff57d90e7b5bd2bc2a0
nternal/widget/ActionBarView.java
467e8e13327bd9ad2dbabfa0a9b31f860202c7b1 08-Sep-2010 Dianne Hackborn <hackbod@google.com> am 5fdacb8a: am ee455f5a: Merge "People holding partial wake locks now get blamed for CPU usage." into gingerbread

Merge commit '5fdacb8a2818136218afdea4308ad1b10049a201'

* commit '5fdacb8a2818136218afdea4308ad1b10049a201':
People holding partial wake locks now get blamed for CPU usage.
5fdacb8a2818136218afdea4308ad1b10049a201 08-Sep-2010 Dianne Hackborn <hackbod@google.com> am ee455f5a: Merge "People holding partial wake locks now get blamed for CPU usage." into gingerbread

Merge commit 'ee455f5a9572bc0d23c3328f6c22da91dc109a50' into gingerbread-plus-aosp

* commit 'ee455f5a9572bc0d23c3328f6c22da91dc109a50':
People holding partial wake locks now get blamed for CPU usage.
0d903a84d04d241a648ec429e3a0e82c712677fd 08-Sep-2010 Dianne Hackborn <hackbod@google.com> People holding partial wake locks now get blamed for CPU usage.

For the duration of the wake lock, 50% of all CPU usage is now
accounted against the app(s) holding partial wake locks, evenly
distributed between them. This is only while the device is on
battery and screen off.

Change-Id: I3e5c978b792b6ef17bf8540705bfe8343dadd464
nternal/os/BatteryStatsImpl.java
a18a86b43e40e3c15dcca0ae0148d641be9b25fe 07-Sep-2010 Chet Haase <chet@google.com> Rename several animation classes

Change-Id: I6a4544875090db485163c8d56de8718f56d267c7
nternal/widget/SlidingTab.java
2b6230e0de4bac2829ac27b19e95ba75c3da82b4 08-Sep-2010 Adam Powell <adamp@google.com> Reworking the ActionBar tab API

Change-Id: Ifbcdc61b4a24633cc1a329c73923b95b03e9ecf0
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarView.java
d0438da05cbbd0b267421ad9a5c84345c39803b3 08-Sep-2010 Dianne Hackborn <hackbod@google.com> am 75f0024c: am 6e86915e: Merge "Fixes to battery stats debug output." into gingerbread

Merge commit '75f0024cf40eadb2cdaa6ae53409c515b68f21c1'

* commit '75f0024cf40eadb2cdaa6ae53409c515b68f21c1':
Fixes to battery stats debug output.
75f0024cf40eadb2cdaa6ae53409c515b68f21c1 07-Sep-2010 Dianne Hackborn <hackbod@google.com> am 6e86915e: Merge "Fixes to battery stats debug output." into gingerbread

Merge commit '6e86915e8f5dfffa60ae5d1a4ca9aa74912fd026' into gingerbread-plus-aosp

* commit '6e86915e8f5dfffa60ae5d1a4ca9aa74912fd026':
Fixes to battery stats debug output.
b5e3165129a5871cf679a67d9e9323ffad3d4902 07-Sep-2010 Dianne Hackborn <hackbod@google.com> Fixes to battery stats debug output.

Change-Id: I32e7cad9633b8c517a74573069e426d9f835a83d
nternal/os/BatteryStatsImpl.java
783cb60ddb7cde1349ca531c7b96ad67d5053cd2 03-Sep-2010 Jim Miller <jaggies@google.com> Update RecentApplications to use shared Carousel widget.

Change-Id: I5ca7389aeca9ee6f03f48317f9d1034f9fb8c1ca
nternal/widget/CarouselRS.java
nternal/widget/CarouselView.java
nternal/widget/carousel.rs
00df32d4396a65752b7b9a2f8ceb6292ed2384cf 02-Sep-2010 Adam Powell <adamp@google.com> Handle disabled state for action menu items

Change-Id: Id80926aef5f8f2f47703a7b1e3da38e6117edb30
nternal/view/menu/ActionMenuItemView.java
c9ad7c6dbb1d70b831cd79416cbe493ade50ed2c 01-Sep-2010 Brian Carlstrom <bdc@google.com> resolved conflicts for merge of 41e99538 to master

Change-Id: Idddb72e369f127cd74322c3c7385701c2412e343
41e99538638795e38b0a02711ceb572d67a779a3 01-Sep-2010 Brian Carlstrom <bdc@google.com> am 17510863: New Java-based SamplingProfiler

Merge commit '1751086360056bc60d00f2ed2988bc82be9e7bd9' into gingerbread-plus-aosp

* commit '1751086360056bc60d00f2ed2988bc82be9e7bd9':
New Java-based SamplingProfiler
1751086360056bc60d00f2ed2988bc82be9e7bd9 18-Aug-2010 Brian Carlstrom <bdc@google.com> New Java-based SamplingProfiler

Summary:
- libcore: new Java based SamplingProfiler
- dalvik: remove old SamplingProfiler native bits
- frameworks/base: New placeholder SamplingProfilerIntegration
- vendor/google: remove old profiler snapshot parsing code

Details:

libcore

A new 100% Java SamplingProfiler. While it has more overhead that
the old native one, the new one can actually collect more than the
current PC and frame pointer, so you can get useful context of
where your app is spending time. It currently provides ASCII hprof
format output for use with tools like PerfAnal
dalvik/src/main/java/dalvik/system/SamplingProfiler.java

Unit test for the new SamplingProfiler
dalvik/src/test/java/dalvik/system/SamplingProfilerTest.java

Add core-tests-dalvik
JavaLibrary.mk

dalvik

Removing native code that supported the old SamplingProfiler
vm/Dvm.mk
vm/native/InternalNative.c
vm/native/dalvik_system_SamplingProfiler.c

frameworks/base

Placeholder SamplingProfilerIntegration. Later plans include
generating EventStackTrace protobufs.

New SamplingProfiler does not have a global instance, so
SamplingProfilerIntegration provides one in INSTANCE. Old binary
snapshot format is temporily replaced with ASCII hprof data.
core/java/com/android/internal/os/SamplingProfilerIntegration.java

Simplified interface for zygote profile snapshotting
core/java/com/android/internal/os/ZygoteInit.java

Current SamplingProfilerIntegration does not track event loop
explicitly, but hprof information does include thread information.
core/java/android/app/ActivityThread.java

vendor/google

Removing code for parsing old SamplingProfiler snapshot format
tools/samplingprofiler/Android.mk
tools/samplingprofiler/NOTICE
tools/samplingprofiler/profiler.iml
tools/samplingprofiler/profiler.ipr
tools/samplingprofiler/pull-snapshots.sh
tools/samplingprofiler/sorttable.js
tools/samplingprofiler/src/com/android/profiler/PrintHtml.java
nternal/os/SamplingProfilerIntegration.java
nternal/os/ZygoteInit.java
a43b74a4ef3735e52d3fda348271b8e495d685a8 31-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add LocalePicker fragment as one of internal components.

LocalePicker is in Settings, but we want this in framework
so that we are able to use it from other Setting-like
applications.

Also brings two string-arrays for descripting Chinise locales, which
have been in Settings app.

See also I1364c4810a115958662ca5d6e6e7f29c0c9b2569, for example.

Change-Id: I8a398b9b77601cf88ea8a3840b92dcf7441e6103
nternal/app/LocalePicker.java
22f5ee93746f37823265b8cb9b1e94e572607514 31-Aug-2010 Jeff Brown <jeffbrown@google.com> am 36f0cb26: am 8d60866e: Input device calibration and capabilities.

Merge commit '36f0cb26cbb4ef62995ff2e5a540cf8814e7f030'

* commit '36f0cb26cbb4ef62995ff2e5a540cf8814e7f030':
Input device calibration and capabilities.
36f0cb26cbb4ef62995ff2e5a540cf8814e7f030 31-Aug-2010 Jeff Brown <jeffbrown@google.com> am 8d60866e: Input device calibration and capabilities.

Merge commit '8d60866e2100db70ecf0502c14768a384514d7e9' into gingerbread-plus-aosp

* commit '8d60866e2100db70ecf0502c14768a384514d7e9':
Input device calibration and capabilities.
8d60866e2100db70ecf0502c14768a384514d7e9 30-Aug-2010 Jeff Brown <jeffbrown@google.com> Input device calibration and capabilities.

Finished the input device capability API.
Added a mechanism for calibrating touch devices to obtain more
accurate information about the touch contact area.
Improved pointer location to show new coordinates and capabilities.
Optimized pointer location display and formatting to avoid allocating large
numbers of temporary objects. The GC churn was causing the application to
stutter very badly when more than a couple of fingers were down).
Added more diagnostics.

Change-Id: Ie25380278ed6f16c5b04cd9df848015850383498
nternal/widget/PointerLocationView.java
818c830c59fb8fb0fe7576f1e5a073ab599227c8 28-Aug-2010 Kenny Root <kroot@google.com> am 83285781: am 7046bd92: Merge "Allow native shared libraries in ASEC containers" into gingerbread

Merge commit '8328578152fbfd23952a6cda4b2e60853d78eb74'

* commit '8328578152fbfd23952a6cda4b2e60853d78eb74':
Allow native shared libraries in ASEC containers
8328578152fbfd23952a6cda4b2e60853d78eb74 28-Aug-2010 Kenny Root <kroot@google.com> am 7046bd92: Merge "Allow native shared libraries in ASEC containers" into gingerbread

Merge commit '7046bd924f77c54585b9e0e0c95e5edd2ceb55a3' into gingerbread-plus-aosp

* commit '7046bd924f77c54585b9e0e0c95e5edd2ceb55a3':
Allow native shared libraries in ASEC containers
85387d7ba36e56b291cbde87acb5a5b2200fe01c 26-Aug-2010 Kenny Root <kroot@google.com> Allow native shared libraries in ASEC containers

This change moves the native library handling earlier in the package
installation process so that it may be inserted into ASEC containers
before they are finalized in the DefaultContainerService.

Note that native libraries on SD card requires that vold mount ASEC
containers without the "noexec" flag on the mount point.

Change-Id: Ib34b1886bf6f94b99bb7b3781db6e9b5a58807ba
nternal/content/NativeLibraryHelper.java
nternal/content/PackageHelper.java
f956fd6d1325fcb2e5ce9b8dac95a9a40824ead8 27-Aug-2010 Amith Yamasani <yamasani@google.com> am 4b4114d1: am a90b7f01: Add methods to InputConnection: setComposingRegion() to select a region of text for correction, and getSelectedText() to return the selected text.

Merge commit '4b4114d155b4f3d5cc4179934cb6403b1776261d'

* commit '4b4114d155b4f3d5cc4179934cb6403b1776261d':
Add methods to InputConnection: setComposingRegion() to select a region of text for correction, and getSelectedText()
e3f55d45cf91177cf610f95da67435c3719d1877 27-Aug-2010 Ben Dodson <bjdodson@google.com> Merge "Updated documentation for upcoming fix for @code tags"
4b4114d155b4f3d5cc4179934cb6403b1776261d 26-Aug-2010 Amith Yamasani <yamasani@google.com> am a90b7f01: Add methods to InputConnection: setComposingRegion() to select a region of text for correction, and getSelectedText() to return the selected text.

Merge commit 'a90b7f0125389b9e1040d2be82aad4ef74ea6071' into gingerbread-plus-aosp

* commit 'a90b7f0125389b9e1040d2be82aad4ef74ea6071':
Add methods to InputConnection: setComposingRegion() to select a region of text for correction, and getSelectedText()
a90b7f0125389b9e1040d2be82aad4ef74ea6071 26-Aug-2010 Amith Yamasani <yamasani@google.com> Add methods to InputConnection: setComposingRegion() to select a region of text for correction, and getSelectedText()
to return the selected text.

setComposingRegion:

The TextView may choose to highlight the text in some way (underline for now) to indicate
that the text is selected for correction, if the IME wants to provider alternatives.

Choosing an alternative in the IME can then call IC.commitText() to replace the highlighted
(not selected) text with a different candidate.

This change also ensures that any existing spans/styles are not wiped out. So we can now
correct rich text as well.

getSelectedText:

This is a convenience to get the selected text instead of using extracted text that is
more heavy weight. Existing getTextBeforeCursor() and getTextAfterCursor() fail to
retrieve the selected text, only what's before and after the selection.

Change-Id: Ieb5ecd5ff947ea04958589f501e7bd5228e00fb5
nternal/view/IInputConnectionWrapper.java
nternal/view/IInputContext.aidl
nternal/view/IInputContextCallback.aidl
nternal/view/InputConnectionWrapper.java
c70bd1921bbc4046d0caf84959e5f1c2d526769a 26-Aug-2010 Jim Miller <jaggies@google.com> Merge "Fix 2797185: Integrate 3D RecentApps View into system."
4e8620f868e2490782ebb960404140ea9482c91d 25-Aug-2010 Ben Dodson <bjdodson@google.com> Updated documentation for upcoming fix for @code tags

Change-Id: Id7b163179132b9cf180afecb4e9e10ee39bcd415
nternal/util/TypedProperties.java
e6ad1a8ba29bdd5d61ad1c91146def582c8c0334 21-Aug-2010 Jim Miller <jaggies@google.com> Fix 2797185: Integrate 3D RecentApps View into system.

This adds 3D recents to the platform. Enabling it is a
matter of setting 'config_enableRecentApps3D' on devices
capable of supporting it (those with OGLES2.0 at the moment).

Change-Id: Ife7bfe8ca02e7657821b68f915e31b0dab50cd2c
nternal/widget/CarouselView.java
nternal/widget/carousel.rs
08f194bc011bc3d88934088a7ac67f52559a77a2 24-Aug-2010 Steve Block <steveblock@google.com> In ActionBarImpl, only use mActionView after we've checked that it's non-null

See https://android-git.corp.google.com/g/#change,61251

Change-Id: Ie11f446c10c096916642a34558a350512495234e
nternal/app/ActionBarImpl.java
96fd5af681513ab1eadfb17591a9771fd2dfbcff 24-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 0b7b9807 to master

Change-Id: If60aeeb47cd06dcc76b88506688c7e4b58cf2208
46089bd1cb031c578735707712cf9574678032fe 24-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am 02623128: resolved conflicts for merge of 1ffd753e to gingerbread-plus-aosp

Merge commit '026231284c44ca8cf789e0d5045c5ae6a91d7766'

* commit '026231284c44ca8cf789e0d5045c5ae6a91d7766':
Crash when powering off.
37a1e2370f763cb2e4411f81e44857fa55051df6 24-Aug-2010 Dianne Hackborn <hackbod@google.com> am a3ece8bd: am 32519259: Merge "Fix a few small battery stats problems:" into gingerbread

Merge commit 'a3ece8bde37acd81b08c4e3c1cb0e6d006ade3e0'

* commit 'a3ece8bde37acd81b08c4e3c1cb0e6d006ade3e0':
Fix a few small battery stats problems:
0b7b980761f3daa614ea725a5d432e8bd718eac6 24-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am d132892a: Merge "Don\'t touch the VFS during window relayout." into gingerbread

Merge commit 'd132892a75532557bb18af14eab6081704b7fa6d' into gingerbread-plus-aosp

* commit 'd132892a75532557bb18af14eab6081704b7fa6d':
Don't touch the VFS during window relayout.
90881005182936e443cb6cd9fb7eff21f83206f5 24-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> Don't touch the VFS during window relayout.

yaffs2 is single-threaded and any disk access during window drawing
(or animation in this case) can cause UI stutters / unresponsiveness
for hundreds of milliseconds.

BUG=2941119

Change-Id: Ifdce8337027ab25d1ea844934fa787ffe68263c4
nternal/widget/LockPatternUtils.java
026231284c44ca8cf789e0d5045c5ae6a91d7766 23-Aug-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 1ffd753e to gingerbread-plus-aosp

Change-Id: I2741766c359bed3040fa3b787d72483eb028fb6d
6c6f575423d6718c3ff322224c1520901ce881e1 21-Aug-2010 Adam Powell <adamp@google.com> More ActionBar/config change tweaks. Preserve open overflow menus

Change-Id: Ic8ad2b1e3909fbf84ff4d852ae046a9f9508477c
nternal/view/menu/ActionMenuView.java
nternal/view/menu/MenuPopupHelper.java
nternal/widget/ActionBarView.java
727782053ced0cac5beadc2c7ee9382d0f1ba1f5 21-Aug-2010 Dianne Hackborn <hackbod@google.com> Work on DialogFragment and docs.

- DialogFragment now has an option to not show a dialog, so you can
use your UI somewhere else.
- Deprecated show() versions that were tied to activities.
- Added documentation to DialogFragment class.
- Added documentation to onSaveInstanceState() to explain how the
time it is called is different than Activity's version.
- Fixed some java doc warnings.

Change-Id: If026744c368e2443030d2d9e0a9c808d820857df
nternal/util/HierarchicalStateMachine.java
773b1b97fc0f01efc8cf1e17a1250a9b654b1b85 21-Aug-2010 Adam Powell <adamp@google.com> Make ActionBar menus handle configuration changes gracefully.

Change-Id: I2c9ca846143b313ef9d2a01dff81385e0693518d
nternal/view/menu/ActionMenuView.java
a3ece8bde37acd81b08c4e3c1cb0e6d006ade3e0 20-Aug-2010 Dianne Hackborn <hackbod@google.com> am 32519259: Merge "Fix a few small battery stats problems:" into gingerbread

Merge commit '325192593b057f4360e1abddf490b4fae7d60b12' into gingerbread-plus-aosp

* commit '325192593b057f4360e1abddf490b4fae7d60b12':
Fix a few small battery stats problems:
99d0452ddc0a0435030a462bda9f4d57b58bad9a 20-Aug-2010 Dianne Hackborn <hackbod@google.com> Fix a few small battery stats problems:

- Actually aggregate discharge amounts.
- Actually print the unplugged battery info when currently plugged in.

Change-Id: I22dd6feb73ac1364eb169d3239ce403b0755bb6c
nternal/os/BatteryStatsImpl.java
c31f643223f3b3fdc92521d0bec287198bf1e81a 18-Aug-2010 Jim Miller <jaggies@google.com> Fix 2797185: Integrate Carousel widget into framework.

Change-Id: Ia03e3f582541dd7f6079929e51d2484b5b91a67b
nternal/widget/CarouselRS.java
nternal/widget/CarouselView.java
nternal/widget/carousel.rs
6394c0e52cf641d93f678fd052499aa952e3595d 16-Aug-2010 Winson Chung <winsonc@google.com> Adding callback and fix to RemoteViewsFactory on notifyDataSetChanged.
Also removing extra parameter in AppWidgetManager.notifyDataSetChanged.

Change-Id: Ic771fe045ae793a6dacf09f1230e7c1c4b59a13e
nternal/appwidget/IAppWidgetHost.aidl
nternal/appwidget/IAppWidgetService.aidl
nternal/widget/IRemoteViewsFactory.aidl
385df2c7a5315fd114fd133b33e31f320987ad43 17-Aug-2010 Konstantin Lopyrev <klopyrev@google.com> Merge "Fix 2926276: Remove spurrious warning about unspecified measurespec."
3747f3f41fa228e958d39f3cbf2781fb8062f3e7 17-Aug-2010 Jim Miller <jaggies@google.com> Fix 2926276: Remove spurrious warning about unspecified measurespec.

Only issue the warning in debug mode.

Change-Id: I5fecb2e6b0013ce775187a878f5a81317e758f2c
nternal/widget/SlidingTab.java
31d5becb7fe2981381a6c16afe6bb357416f4c3a 17-Aug-2010 Adam Powell <adamp@google.com> Merge "Bug 2923440 - ActionMode buttons show if room by default - different approach."
4d9861e7ec8488634d316b20981464de2ab7b6fe 17-Aug-2010 Adam Powell <adamp@google.com> Bug 2923440 - ActionMode buttons show if room by default - different approach.

This enforces the new policy if menu items are created
programmatically instead of inflated from menu xml.

This reverts commit fbb72fdbe58142e0f1f7ffa17f009b0d829b33c3.

Change-Id: I102e93b80a3248634e98e0d7dc3321bf1d8b263b
nternal/app/ActionBarImpl.java
nternal/view/StandaloneActionMode.java
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuItemImpl.java
2dd2197805edb4d9547b143deef2226413218f4c 16-Aug-2010 Adam Cohen <adamcohen@google.com> -> Enabled partial updates to app widgets through AppWidgetManager.
Partial updates are not cached by the AppWidgetService.
-> Added the ability to insert commands with no parameters into
RemoteViews objects.
-> Added showNext() and showPrevious() methods to RemoteViews.
-> Made showNext() / showPrevious() of AdapterViewFlipper remotable.

Change-Id: Ic5491bb374424a54728c4ca92b94b1f00dfb87ff
nternal/appwidget/IAppWidgetService.aidl
8534a8e438ff35511051cf74f8f73d52c8b3b1f4 17-Aug-2010 Mathias Jeppsson <mathias.jeppsson@sonyericsson.com> Crash when powering off.

Fixing a race condition. If "confirm" is true and the shutdown
dialog is shown it may take some time before the user presses the
ok button. During this time a new call to shutdown may be made with
confirm=false. When this happens the shutdown thread is started by
the second call, and later when the users presses the ok button. This
results in ShutdownThread.beginShutdownSequence() being called
twice. I.e., the beginShutdownSequence lacks the proper protection
for this error case.

Change-Id: Ib9b01c5a43f4dc23de09057f3fc1507000317faf
nternal/app/ShutdownThread.java
9146ac706265cd8cce66907e617bc8572152eb97 17-Aug-2010 Adam Powell <adamp@google.com> Prevent starting an action mode from within an actionbar/mode UI.

Don't let a View start an ActionMode if it would be obscured or destroyed
by the ActionMode UI.

Change-Id: Ifdb28f1d6704ede550a89903d3823a09b103fcd5
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
fbb72fdbe58142e0f1f7ffa17f009b0d829b33c3 17-Aug-2010 Adam Powell <adamp@google.com> Fix bug 2923440 - ActionMode buttons show as action by default

The MenuInflater returned by ActionModes will set the default
showAsAction value to "ifRoom" if not otherwise specified.

Change-Id: I86045dc4e877a97a3464a1a5f44d8d1e2120b086
nternal/app/ActionBarImpl.java
nternal/view/StandaloneActionMode.java
6236d61400b5a801547bebd6417b1f936fe12474 17-Aug-2010 Adam Powell <adamp@google.com> Merge "Fix some ActionBar bugs."
266b1008cfc570d95d10ce650343765fa6bac7e7 17-Aug-2010 Adam Powell <adamp@google.com> Fix some ActionBar bugs.

* Fix a bug where the options panel would not open on non-xlarge
screens to show overflow menu items.

* Fix a bug where ActionBarView would try to add a custom nav view
twice.

* Fix a bug where ActionBarView would expand too far in wrap_content mode

Change-Id: I433ea56524aad885d813ae8743fe2fcefa9649fa
nternal/widget/ActionBarView.java
a10382b67dc14ffe43cd6da56a5cffebfa470870 17-Aug-2010 Dianne Hackborn <hackbod@google.com> am 2e47052f: am 567722ee: Merge "Fix problems with determining when to kill apps for wake usage." into gingerbread

Merge commit '2e47052fc4ad3439adc2322fd953fd58a85d457c'

* commit '2e47052fc4ad3439adc2322fd953fd58a85d457c':
Fix problems with determining when to kill apps for wake usage.
0a56fdc1400db3d31bff3a18bde7e509111d9b90 17-Aug-2010 Dianne Hackborn <hackbod@google.com> am 66b0343e: am a8d9291d: Merge "Various battery info things:" into gingerbread

Merge commit '66b0343e9e32203cdd39b854852cf575ca2fcd6b'

* commit '66b0343e9e32203cdd39b854852cf575ca2fcd6b':
Various battery info things:
2e47052fc4ad3439adc2322fd953fd58a85d457c 16-Aug-2010 Dianne Hackborn <hackbod@google.com> am 567722ee: Merge "Fix problems with determining when to kill apps for wake usage." into gingerbread

Merge commit '567722eee190f7cf88dc7ea95167db76d5514842' into gingerbread-plus-aosp

* commit '567722eee190f7cf88dc7ea95167db76d5514842':
Fix problems with determining when to kill apps for wake usage.
1ebccf531d1049853b3b0630035434619682c016 15-Aug-2010 Dianne Hackborn <hackbod@google.com> Fix problems with determining when to kill apps for wake usage.

Also improve debug printing of various times.

Change-Id: Ifcc288fd1bcbf44c069875ba97925b9e7ffe9a48
nternal/app/PlatLogoActivity.java
nternal/os/BatteryStatsImpl.java
66b0343e9e32203cdd39b854852cf575ca2fcd6b 14-Aug-2010 Dianne Hackborn <hackbod@google.com> am a8d9291d: Merge "Various battery info things:" into gingerbread

Merge commit 'a8d9291d7f93d1aa0d24d71d65c7de2894812177' into gingerbread-plus-aosp

* commit 'a8d9291d7f93d1aa0d24d71d65c7de2894812177':
Various battery info things:
9adb9c3b10991ef315c270993f4155709c8a232d 13-Aug-2010 Dianne Hackborn <hackbod@google.com> Various battery info things:

- Now track wake locks in battery history.
- Now track sensors in battery history.
- Some filtering of sensory data.
- Fixes to some data that wasn't cleared when resetting battery stats.
- Print amount discharged since last charge.

And the big part -- keep track of wake locks held per process,
and kill processes that hold wake locks too much while they are in
the background. This includes information in the battery stats
about the process being killed, which will be available to the
developer if the app is reported.

Change-Id: I97202e94d00aafe0526ba2db74a03212e7539c54
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
8171b5182f5f07d33c9dfdf2dd8f0f6ae9588039 05-Aug-2010 Jae Yong Sung <jysung@google.com> lock screen for xlarge

Change-Id: Iab9f53609bf24be774752a9960aaaa654d7a614f
nternal/widget/PasswordEntryKeyboard.java
nternal/widget/PasswordEntryKeyboardHelper.java
e2194445b078932733a2d1a02fc084ea2f3c7360 13-Aug-2010 Adam Powell <adamp@google.com> Clean up some Action Bar style handling.

Action Bar now obeys the titleTextStyle/subtitleTextStyle attributes
and has a better way of handling custom sizes. Any attached Action
Mode bar will keep in sync with the Action Bar's height.

Change-Id: I7d16319f5609d4d6c80a3043dcb60303e6e903db
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
f6148c53f93978af678cc0559a4417b608a33ae1 12-Aug-2010 Adam Powell <adamp@google.com> Fix bug 2911311 and bug 2911700

Integrate the action bar overflow menu better with the options menu lifecycle.

Change-Id: I1e3fdba04b01718c3ee3367f92e5dabe7bc84b5c
nternal/app/ActionBarImpl.java
nternal/view/StandaloneActionMode.java
nternal/view/menu/ActionMenuView.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
3d3da27ab394108fd51771616cca3279baae99d1 12-Aug-2010 Adam Powell <adamp@google.com> Fix bug 2911529

Change-Id: I18d7f5d8a300bbc73ef721c5d4deb200d6a490b8
nternal/view/menu/MenuPopupHelper.java
6b336f835d637853800b94689375a03f337139a4 11-Aug-2010 Adam Powell <adamp@google.com> ActionBar overlay mode, height fetching, show/hide

Change-Id: Ie931ed26ec885d891d6733132b517a53d95f8491
nternal/app/ActionBarImpl.java
nternal/view/menu/ActionMenuView.java
nternal/widget/ActionBarView.java
bf0cb26a1c6305f2a7795c2498591b6189cc5b79 11-Aug-2010 Kenny Root <kroot@google.com> am f5ee5358: am ac9717ab: Merge "Move OBB file reading to DefaultContainerService" into gingerbread

Merge commit 'f5ee5358c187107b2e5a1e1fbcb5a648d793c798'

* commit 'f5ee5358c187107b2e5a1e1fbcb5a648d793c798':
Move OBB file reading to DefaultContainerService
f5ee5358c187107b2e5a1e1fbcb5a648d793c798 11-Aug-2010 Kenny Root <kroot@google.com> am ac9717ab: Merge "Move OBB file reading to DefaultContainerService" into gingerbread

Merge commit 'ac9717ab73afe0123b6dbb63c4dd2fc88143e53e' into gingerbread-plus-aosp

* commit 'ac9717ab73afe0123b6dbb63c4dd2fc88143e53e':
Move OBB file reading to DefaultContainerService
a02b8b05dd1e8b8cf169e1f89542ef835b11fc13 06-Aug-2010 Kenny Root <kroot@google.com> Move OBB file reading to DefaultContainerService

The system_server shouldn't touch files on the SD card. This change
moves the things that touch the SD card out to the
DefaultContainerService so that it will get killed if the SD card goes
away instead of the system_server.

Change-Id: I0aefa085be4b194768527195532ee6dddc801cfc
nternal/app/IMediaContainerService.aidl
7b6d0d99b6904b511996267efae215fe9cb5e98f 11-Aug-2010 Dianne Hackborn <hackbod@google.com> am 679ac09a: am a5ae50cd: Merge "More native work." into gingerbread

Merge commit '679ac09a5c22175354f3a04b28456b323839530e'

* commit '679ac09a5c22175354f3a04b28456b323839530e':
More native work.
679ac09a5c22175354f3a04b28456b323839530e 11-Aug-2010 Dianne Hackborn <hackbod@google.com> am a5ae50cd: Merge "More native work." into gingerbread

Merge commit 'a5ae50cd838b5725c63ed485292aae4edd1a98cb' into gingerbread-plus-aosp

* commit 'a5ae50cd838b5725c63ed485292aae4edd1a98cb':
More native work.
08d5b8fad8d46ccb64db2fdcb4d66972ec87bf48 04-Aug-2010 Dianne Hackborn <hackbod@google.com> More native work.

Implement save/restore of state, and add native APIs for
configuration information.

Change-Id: I2a3ddc2ba605db58d7c8b2b31b9215fb323f90b5
nternal/app/PlatLogoActivity.java
f75eeb28def26798682748aa5dedabebac86bb6a 11-Aug-2010 Adam Powell <adamp@google.com> Fix bug 2908822 - open/closePanel should do the right thing with ActionBars

Change-Id: Ic77f9dee864d17046f69c78a1e6d96a49b5c6180
nternal/view/menu/ActionMenuView.java
nternal/widget/ActionBarView.java
dec9dfd0f9f9ae23e4f126d765178fbd26a9eadb 10-Aug-2010 Adam Powell <adamp@google.com> Support ActionBar in Dialogs

Dialogs planning on using an ActionBar must have an appropriate
theme. (Later on this will likely be default.)

Change-Id: I7fbf5f76eed3d10765fddeaf211e4decb4e89f87
nternal/app/ActionBarImpl.java
02890fd0f98b3b8d98baf0bda1ea906afd723d8b 07-Aug-2010 Romain Guy <romainguy@google.com> Replace Bitmap's finalizers with PhantomReferences.

This change also removes the use of SoftReferences for View's
drawing cache.

A bitmap now creates a PhantomReference enqueued in a reference
queue provided by the new Finalizers class. This queue is polled
from a thread started after forking zygote. That thread is in charge
of clearing the references after GC runs and of calling reclaim()
on them. The reclaim() method is now how finalizers are run.

Note that a PhantomReference cannot be kept in the instance it
refers to, which is why they are kept in a separate List.

Change-Id: If3c1a5e9dc23fa49e34857860d730f5cf5ad5926
nternal/os/RuntimeInit.java
90960e87ecae696f73ae18e46c2f003fc3f592cc 06-Aug-2010 Mike Lockwood <lockwood@android.com> Set umask of system server to 0077

This matches the previous behavior of java.io.File file and directory creation.

BUG: 2898660

Change-Id: Ie8978a3fc44abfd22f8046e66742e715354220a8
Signed-off-by: Mike Lockwood <lockwood@android.com>
nternal/os/ZygoteInit.java
1b7e4d5adcc2737bc11bfbf42a88a02d6df984e0 05-Aug-2010 Brian Carlstrom <bdc@google.com> am 4ae1e382: Merge "Tracking merge of dalvik-dev to gingerbread" into gingerbread

Merge commit '4ae1e382f4b6c5bb9e757f35f82ad48dc02c32af' into gingerbread-plus-aosp

* commit '4ae1e382f4b6c5bb9e757f35f82ad48dc02c32af':
Tracking merge of dalvik-dev to gingerbread
0f0b11c8719495ce559b93366fe9cd79782d791c 04-Aug-2010 Daniel Sandler <dsandler@google.com> Basic support for notification payloads in the panel.

Line-item veto is there, but allows you to cancel some
notifications you probably shouldn't be canceling. (Should
hide the "X" in those cases.)

No preference given to "sticky" notifications, because
there's no such thing yet.

Notifications are now limited to 4 visible icons, per spec.
The implementation is a total hack for now.

Change-Id: Ibdf433ae94189117f983c510fe5e0cff0bf5c44c
nternal/statusbar/IStatusBarService.aidl
3c7c351a6217ac48b741740167c201a679a0ca65 05-Aug-2010 Brian Carlstrom <bdc@google.com> Tracking merge of dalvik-dev to gingerbread

git cherry-pick --no-commit f77cf7f0
git cherry-pick --no-commit c8f503b5285e30c1a881d0ba860ba9021f57d113
git cherry-pick --no-commit 570bb561
git cherry-pick --no-commit e2417541
git cherry-pick --no-commit e4d81f25bd4dc1a5c909b56ab56a56406290da30
git cherry-pick --no-commit 5e8a587d

Change-Id: I101a385d43f3e0f4ce5352217f92ef67a3908c88
nternal/os/ZygoteInit.java
5bac1cc0b8ddfeb1290d8324beaadd1e48f3fd14 04-Aug-2010 Chris Tate <ctate@android.com> am 9f6b16a2: am 5d46ce24: Merge "Enhanced VelocityTracker for > 5 pointers and fixed bugs." into gingerbread

Merge commit '9f6b16a29b62f29496bc652cfec7d6fe9f08c7f4'

* commit '9f6b16a29b62f29496bc652cfec7d6fe9f08c7f4':
Enhanced VelocityTracker for > 5 pointers and fixed bugs.
4be0d52125b88dc992a4c500edbe95bf55484e0b 04-Aug-2010 Adam Powell <adamp@google.com> Added android.widget.PopupMenu

Change-Id: Id507cf93ebd0484f141a0a44266b883c01aa10db
nternal/view/menu/MenuPopupHelper.java
1f9c7afc5a06576e327a4b1c12688202f53d9462 03-Aug-2010 Adam Powell <adamp@google.com> Add support for action buttons without an icon.

Change-Id: I026bb7463e7a73419dbaf79950d579ba05d04ea8
nternal/view/menu/ActionMenuItemView.java
9f6b16a29b62f29496bc652cfec7d6fe9f08c7f4 03-Aug-2010 Chris Tate <ctate@android.com> am 5d46ce24: Merge "Enhanced VelocityTracker for > 5 pointers and fixed bugs." into gingerbread

Merge commit '5d46ce24cc46dc57d31f809302af916999114ced' into gingerbread-plus-aosp

* commit '5d46ce24cc46dc57d31f809302af916999114ced':
Enhanced VelocityTracker for > 5 pointers and fixed bugs.
a8a72c38fec3879f5d346840b0d186d5903931b8 01-Aug-2010 Jeff Sharkey <jsharkey@android.com> Populate accessibility field on ActionBar items.

When building an ActionMenuItemView, set the content description based
on the item title. Fixes http://b/2885106

Change-Id: I101bbc6db7080ce08eed1bbb401c45329da2ab53
nternal/view/menu/ActionMenuItemView.java
9168f0b170c6a99371ae46e7d3f5d66c8c4c930d 03-Aug-2010 Adam Powell <adamp@google.com> Add ActionMode#getMenuInflater() for easier menu inflation in
ActionMode.Callback implementations

Change-Id: If9e7ab0d65598bab537add6c6a452a55c093064f
nternal/app/ActionBarImpl.java
nternal/view/StandaloneActionMode.java
8350f7dbc3a62211b2891f35911e4073d24c4cc5 28-Jul-2010 Adam Powell <adamp@google.com> Added CHOICE_MODE_MULTIPLE_MODAL to ListView.

Based on ActionModes, CHOICE_MODE_MULTIPLE_MODAL supports the new
Honeycomb-style selection mode.

Change-Id: I293ea22487db8e081c95e5236f1e053f7dd4ada6
nternal/widget/ActionBarContextView.java
9e2ad36be87f2703b3d737189944d82f93bd4f27 31-Jul-2010 Jeff Brown <jeffbrown@google.com> Enhanced VelocityTracker for > 5 pointers and fixed bugs.

Improved PointerLocation tool to use VelocityTracker more efficiently
and correctly when multiple pointers are down.

Fixed a bug in TouchInputMapper where it was not correctly copying
the id to index map in the last touch data. This could cause strange
behavior on secondary pointer up events.

Also added finished callback pooling in InputQueue.

Change-Id: Ia85e52ac2fb7350960ea1d7edfbe81a1b3e8267b
nternal/widget/PointerLocationView.java
15d6184be7cd8dc3c0f6b8f703d4d5c30cab2b7b 29-Jul-2010 Romain Guy <romainguy@android.com> am ff74e22b: am ce3ac5f0: Merge "Corrected buffer overflow when parsing /proc/wakelocks"

Merge commit 'ff74e22b59f8157580953fcd69e3c32aa8f68eb2'

* commit 'ff74e22b59f8157580953fcd69e3c32aa8f68eb2':
Corrected buffer overflow when parsing /proc/wakelocks
ff74e22b59f8157580953fcd69e3c32aa8f68eb2 29-Jul-2010 Romain Guy <romainguy@android.com> am ce3ac5f0: Merge "Corrected buffer overflow when parsing /proc/wakelocks"

Merge commit 'ce3ac5f02970fcab91e16ecb573931d209b1985c' into gingerbread-plus-aosp

* commit 'ce3ac5f02970fcab91e16ecb573931d209b1985c':
Corrected buffer overflow when parsing /proc/wakelocks
ce3ac5f02970fcab91e16ecb573931d209b1985c 29-Jul-2010 Romain Guy <romainguy@android.com> Merge "Corrected buffer overflow when parsing /proc/wakelocks"
a66c7b04567a584d73bc4dba2711f5d815e4932d 29-Jul-2010 Adam Powell <adamp@google.com> Add support for setting action bar title/subtitle by resource ID

Change-Id: I91b6f56bd3736fd7cc8b82cbbf0b7be2e1c718e5
nternal/app/ActionBarImpl.java
c9ae2a24dc1fa274ca0916c91a2e9a2764ba4bb3 28-Jul-2010 Adam Powell <adamp@google.com> Add support for setting action mode titles/subtitles by resource ID

Change-Id: Ia0d5234cc16f325eeb29127fb87e2616d67379ec
nternal/app/ActionBarImpl.java
nternal/view/StandaloneActionMode.java
03a545e5edcd99985d672fba40110d054397d02c 28-Jul-2010 Mike Lockwood <lockwood@android.com> Merge changes I00d6980a,I814221b4,Id88603a5

* changes:
CameraBrowser: Launch itself when a camera is attached to USB.
Send Intents when PTP compatible devices are connected/disconnected to USB
Give system server permission to access USB.
5d27977f9da482627ceb19317a2cd70467aff046 28-Jul-2010 Adam Powell <adamp@google.com> Action modes without action bar

Change-Id: I0367ab35e598a17980bd373b30828175f6283acc
nternal/app/ActionBarImpl.java
nternal/view/StandaloneActionMode.java
nternal/widget/ActionBarContextView.java
037a086b164c376d8c428a2a584a3460bf82590f 28-Jul-2010 Mike Lockwood <lockwood@android.com> Give system server permission to access USB.

Change-Id: Id88603a5555b37b437f5333acf78dac3c5ffbce3
Signed-off-by: Mike Lockwood <lockwood@android.com>
nternal/os/ZygoteInit.java
6e34636749217654f43221885afb7a29bb5ca96a 23-Jul-2010 Adam Powell <adamp@google.com> Moved context modes into view, renamed to action modes

ContextualMode renamed to ActionMode. Adds a reference to the action
bar and reduces confusion around things named "Context".

Change-Id: Ia5098b1d0799a0ece0810c34e6696eda039fb005
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarContextView.java
9765211b9031776b9bcdd64e141de11f50902599 26-Jul-2010 Mike Lockwood <lockwood@android.com> am 64f04a64: am 70736a6d: Merge "Avoid starting multiple threads in ShutdownThread" into gingerbread

Merge commit '64f04a645ea4fd81cfb41fba23d9ba9e1279d416'

* commit '64f04a645ea4fd81cfb41fba23d9ba9e1279d416':
Avoid starting multiple threads in ShutdownThread
48b9cbb046d7fc546e5e4c08f772ddb8ef528ed3 26-Jul-2010 Dianne Hackborn <hackbod@google.com> am 443d884e: am 3bee5af8: Battery stats: start removing last stats, keep total discharge.

Merge commit '443d884e16fad2e01a97aa788d4b30de53c94048'

* commit '443d884e16fad2e01a97aa788d4b30de53c94048':
Battery stats: start removing last stats, keep total discharge.
bf23832accebcb4b8f7824842089b6b409a4c4dd 26-Jul-2010 Mathias Agopian <mathias@google.com> am fed3c364: am eab07e5c: Merge "Report sensor events to BatteryStats service" into gingerbread

Merge commit 'fed3c364e6fc6acc5e5836bd1370c3c278f8a248'

* commit 'fed3c364e6fc6acc5e5836bd1370c3c278f8a248':
Report sensor events to BatteryStats service
64f04a645ea4fd81cfb41fba23d9ba9e1279d416 26-Jul-2010 Mike Lockwood <lockwood@android.com> am 70736a6d: Merge "Avoid starting multiple threads in ShutdownThread" into gingerbread

Merge commit '70736a6d92767258543bb03ac22a705535d86341' into gingerbread-plus-aosp

* commit '70736a6d92767258543bb03ac22a705535d86341':
Avoid starting multiple threads in ShutdownThread
443d884e16fad2e01a97aa788d4b30de53c94048 26-Jul-2010 Dianne Hackborn <hackbod@google.com> am 3bee5af8: Battery stats: start removing last stats, keep total discharge.

Merge commit '3bee5af8162c177f8c8f4199489a401058ab26a9' into gingerbread-plus-aosp

* commit '3bee5af8162c177f8c8f4199489a401058ab26a9':
Battery stats: start removing last stats, keep total discharge.
fed3c364e6fc6acc5e5836bd1370c3c278f8a248 26-Jul-2010 Mathias Agopian <mathias@google.com> am eab07e5c: Merge "Report sensor events to BatteryStats service" into gingerbread

Merge commit 'eab07e5c1d48d45f76ac2dd4a45c8a3457aa290d' into gingerbread-plus-aosp

* commit 'eab07e5c1d48d45f76ac2dd4a45c8a3457aa290d':
Report sensor events to BatteryStats service
d67b236497d87223e8373d96c274c97cfbcab0cb 26-Jul-2010 Mike Lockwood <lockwood@android.com> Avoid starting multiple threads in ShutdownThread

The previous code allowed this to happen if a second call to shutdown
happened while the dialog was being displayed.

BUG: 2563243

Change-Id: I93adc4ef316917a79002d580b17eda0dc354704c
Signed-off-by: Mike Lockwood <lockwood@android.com>
nternal/app/ShutdownThread.java
3bee5af8162c177f8c8f4199489a401058ab26a9 23-Jul-2010 Dianne Hackborn <hackbod@google.com> Battery stats: start removing last stats, keep total discharge.

Change-Id: I59c4bcbb9893adb237017add76b83c22153f94ef
nternal/os/BatteryStatsImpl.java
32123fde1b82fc7f5d04f35e2b972364d4352ec9 23-Jul-2010 Mathias Agopian <mathias@google.com> Report sensor events to BatteryStats service

Change-Id: I9b83aa709887aa658bc474391573f2d45b6c4eb2
nternal/app/IBatteryStats.aidl
93b6bc3d15180d3ff88fe769375717043b283e64 22-Jul-2010 Adam Powell <adamp@google.com> Make finish() a no-op on a context mode that is not active.

Change-Id: I2b3b304b7371a76ce67dcf197eaea2e77904399b
nternal/app/ActionBarImpl.java
2175f1370cbdd73c589b8e99ecfd07c38dffc690 21-Jul-2010 Adam Powell <adamp@google.com> Rename callback methods for contextual modes to match recent refactoring.

Change-Id: I9403f0c728143cd075827f21270b5468abc5271b
nternal/app/ActionBarImpl.java
178097727fab0f41810b1ffd4baf84ff8ed32c42 21-Jul-2010 Adam Powell <adamp@google.com> Fix bug 2859423 - action bar: need a way to choose item in spinner

Change-Id: Idf9c222e5d8f27b4339a6df7d14f3f10dcb4be2c
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarView.java
ac695c608ba620e2362f57126d7be453cf5b7e1b 21-Jul-2010 Adam Powell <adamp@google.com> Refactored contextual modes out of action bar.

Change-Id: I1fc1c9383e5ee90f135b92a5afa8eadbf1c13d20
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarContextView.java
269b8bb0cbd78969450ea9ab255232d047580210 21-Jul-2010 Adam Powell <adamp@google.com> Fix a bug with closing action bar context modes

Change-Id: I4f11549664f11cdc02d135288e05459007dbf0c8
nternal/widget/ActionBarContextView.java
b366bbae2b5a3009893ef64246e3430cea4b7736 20-Jul-2010 Adam Powell <adamp@google.com> Make sure action bar context modes reserve space for overflow menus on all devices.

Change-Id: I393f041efef3852b7f3ee57c6a4c26ba176b2702
nternal/view/menu/ActionMenuView.java
nternal/widget/ActionBarContextView.java
2c9c9fe806e51f29276e66b8ba40cb4b7a80c3f4 16-Jul-2010 Adam Powell <adamp@google.com> Action bar context mode support for overflow, submenus

Change-Id: I951ae179698b08b6aba5b174b3d47f0cf847352e
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarContextView.java
ca48433afc9fab2a8c0b9913bcf3f525d75ed97f 20-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I1901177e8a4bd32a707020c581f25f21349ba571
798e2d3d0c80e269ead1489dbc3f2f762f1e52b5 17-Jun-2010 Christian Mehlmauer <FireFart@gmail.com> Replaced /sdcard with Environment.getExternalStorageDirectory()

Change-Id: Id789f44a8569e307b1b7ab15eb266c9ce7ef2029
nternal/os/SamplingProfilerIntegration.java
dcdefbbff2bfecbfeb7b6459de130f376595c590 20-Jul-2010 Adam Powell <adamp@google.com> Fix bug 2852909 - screen density for contextual action bar

Change-Id: I9e3d8fe4e6f5eb0282cc103a98ed60ca2911c91e
nternal/widget/ActionBarContextView.java
499cb9f516062b654952d282f211bee44c31a3c2 16-Jul-2010 Winson Chung <winsonc@google.com> Initial changes to allow collections in widgets.

Change-Id: I3cfa899bae88cd252912cecebc12e93c27a3b7c9
nternal/appwidget/IAppWidgetHost.aidl
nternal/appwidget/IAppWidgetService.aidl
nternal/widget/IRemoteViewsFactory.aidl
8028dd32a4a04154050220dd0693583d5b750330 15-Jul-2010 Adam Powell <adamp@google.com> Overflow menu for action bars.

The overflow menu replaces the normal options menu panel for
activities with an action bar. It always appears as the rightmost
action button and is displayed as a dropdown menu. The menu key
summons and dismisses the overflow menu instead of the options panel
where applicable.

Change-Id: I0b4fa7e36f35ab12e2f0c1d12bec79ccab8cc4b1
nternal/view/menu/ActionMenuView.java
nternal/view/menu/IconMenuView.java
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuPopupHelper.java
nternal/widget/ActionBarView.java
94919a170fab66e7903bea0c10093234e5e6cd37 16-Jul-2010 Kenny Root <kroot@google.com> am f97b21b5: am bd623daf: Undo IMediaContainerService changes

Merge commit 'f97b21b54e2e35fdfcc8614dedd8692d5a535a5e'

* commit 'f97b21b54e2e35fdfcc8614dedd8692d5a535a5e':
Undo IMediaContainerService changes
fb4e1e24a93c7e6bc0fcdb3f5cfadfbc19503cd8 16-Jul-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of 181bb0ab to master

Change-Id: I2284e7c671d127da0d124fbabae8d887727fd5bf
b75fa30aaf03d9e425d150b452501e5df0621351 16-Jul-2010 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of aca672ba to master

Change-Id: I7ae11fca0acdbf513a4870226d0d3e3cafbe9a08
f97b21b54e2e35fdfcc8614dedd8692d5a535a5e 16-Jul-2010 Kenny Root <kroot@google.com> am bd623daf: Undo IMediaContainerService changes

Merge commit 'bd623daff1f261a0e794f059d90ba5907eb5a89a' into gingerbread-plus-aosp

* commit 'bd623daff1f261a0e794f059d90ba5907eb5a89a':
Undo IMediaContainerService changes
bd623daff1f261a0e794f059d90ba5907eb5a89a 16-Jul-2010 Kenny Root <kroot@google.com> Undo IMediaContainerService changes

These should be in the next commit and not the previous one.

Change-Id: I8d13fecf3b978ae2e796dc6e10ef3f969b27a0f4
nternal/app/IMediaContainerService.aidl
181bb0ab461b1c8a6bf608f19c136fc0bbee7a3d 16-Jul-2010 Kenny Root <kroot@google.com> am 02c8730c: Add API to call to vold for mounting OBBs

Merge commit '02c8730c1bf19daf48bec8c6995df676a00a73b1' into gingerbread-plus-aosp

* commit '02c8730c1bf19daf48bec8c6995df676a00a73b1':
Add API to call to vold for mounting OBBs
02c8730c1bf19daf48bec8c6995df676a00a73b1 01-Jul-2010 Kenny Root <kroot@google.com> Add API to call to vold for mounting OBBs

* Unhide StorageService class; hide all the USB-related items

* Add application-visible API to StorageManager for OBB files

* Add class for parceling OBB info across binders (ObbInfo)

* Add a JNI glue class to libutils/ObbFile (ObbScanner)

* Add API to MountService to deal with calling into vold and checking
permissions

Change-Id: I33ecf9606b8ff535f3a2ada83931da6bbef41cfd
nternal/app/IMediaContainerService.aidl
aca672ba2eea19420df16906851d56077a3fd3b2 16-Jul-2010 Jeff Brown <jeffbrown@google.com> am c5ed5910: Add support for new input sources.

Merge commit 'c5ed5910c9ef066cec6a13bbb404ec57b1e92637' into gingerbread-plus-aosp

* commit 'c5ed5910c9ef066cec6a13bbb404ec57b1e92637':
Add support for new input sources.
c5ed5910c9ef066cec6a13bbb404ec57b1e92637 15-Jul-2010 Jeff Brown <jeffbrown@google.com> Add support for new input sources.

Added several new coordinate values to MotionEvents to capture
touch major/minor area, tool major/minor area and orientation.

Renamed NDK input constants per convention.

Added InputDevice class in Java which will eventually provide
useful information about available input devices.

Added APIs for manufacturing new MotionEvent objects with multiple
pointers and all necessary coordinate data.

Fixed a bug in the input dispatcher where it could get stuck with
a pointer down forever.

Fixed a bug in the WindowManager where the input window list could
end up containing stale removed windows.

Fixed a bug in the WindowManager where the input channel was being
removed only after the final animation transition had taken place
which caused spurious WINDOW DIED log messages to be printed.

Change-Id: Ie55084da319b20aad29b28a0499b8dd98bb5da68
nternal/view/BaseInputHandler.java
29ed7575c2129974a57ad77b3531bc5995940c6c 15-Jul-2010 Adam Powell <adamp@google.com> Bug 2841148 - Add accessors for action bar context mode state.

Change-Id: I04f3efce5a692b346756cc80c8d15f3abba10558
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarContextView.java
1f5dddc85c07169b19846d454e0797b791299e3d 14-Jul-2010 Adam Powell <adamp@google.com> Merge "Fix bug 2835056 - ActionBar doesn't update title properly when set in onCreate"
e92ea3474de7998a016b48bab4e9a4bbafd5b549 14-Jul-2010 Adam Powell <adamp@google.com> Fix bug 2835056 - ActionBar doesn't update title properly when set in onCreate

Change-Id: I593315db8df0190c2702a87ebef293e5f798823d
nternal/widget/ActionBarView.java
3461b32a1c1fc844cdf5c9586dbadb354f449980 14-Jul-2010 Adam Powell <adamp@google.com> Fix bug 2838426 - timing issue with starting/finishing action bar context modes

Change-Id: Ie29b0bea96be02675a2104f07c912700c2823abc
nternal/app/ActionBarImpl.java
2388ad9eef109fa7f63c196c819c83f0376f0645 14-Jul-2010 Dianne Hackborn <hackbod@google.com> am f8d9379b: am d76b67c3: IME events are now dispatched to native applications.

Merge commit 'f8d9379bd834573feca085284970cf686993c330'

* commit 'f8d9379bd834573feca085284970cf686993c330':
IME events are now dispatched to native applications.
f8d9379bd834573feca085284970cf686993c330 14-Jul-2010 Dianne Hackborn <hackbod@google.com> am d76b67c3: IME events are now dispatched to native applications.

Merge commit 'd76b67c340d1564abf8d14d976fdaf83bf2b3320' into gingerbread-plus-aosp

* commit 'd76b67c340d1564abf8d14d976fdaf83bf2b3320':
IME events are now dispatched to native applications.
d76b67c340d1564abf8d14d976fdaf83bf2b3320 14-Jul-2010 Dianne Hackborn <hackbod@google.com> IME events are now dispatched to native applications.

And also:

- APIs to show and hide the IME, and control its interaction with the app.
- APIs to tell the app when its window resizes and needs to be redrawn.
- API to tell the app the content rectangle of its window (to layout
around the IME or status bar).

There is still a problem with IME interaction -- we need a way for the
app to deliver events to the IME before it handles them, so that for
example the back key will close the IME instead of finishing the app.

Change-Id: I37b75fc2ec533750ef36ca3aedd2f0cc0b5813cd
nternal/view/RootViewSurfaceTaker.java
4267534d1c42af847ed0cefd1c88c99f66b36571 10-Jul-2010 Adam Powell <adamp@google.com> Action Bar now supports submenus as popups.

Change-Id: I1691c16081b3474ed6d6e406f91f5f74a2dc8fcb
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuItemImpl.java
nternal/view/menu/MenuPopupHelper.java
72c37ff17ad04a199cceb41dec3d1c003fa17c89 13-Jul-2010 The Android Open Source Project <initial-contribution@android.com> am 10dde211: merge from open-source master

Merge commit '10dde211457417aa1392cc3a5457728c84ed0d2f'

* commit '10dde211457417aa1392cc3a5457728c84ed0d2f':
Remove top panel in alert dialog if empty.
10dde211457417aa1392cc3a5457728c84ed0d2f 13-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Id2ad46118e0ca957b65b911c52d7bbcf2a4649a2
e74e7e2a088cc9077e4ee98e01a48bb52e9cfd50 22-Jun-2010 Martin Sjolin <martin.sjolin@sonyericsson.com> Remove top panel in alert dialog if empty.

Remove the topPanel in the alert dialog if it is empty and
therefore invisible. This gives the dialog content more space, and it
makes dialog positioning on the screen correct.

Change-Id: I8ffd9bd9b2360b0ad4338c32c21ab69c055d66a0
nternal/app/AlertController.java
1a33274d28a3174b9062ae0dcce77bf1d68cd463 09-Jul-2010 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of 167449e5 to master

Change-Id: Ib448e69a726eb45b5c9099d2574e40b8345eee67
661c908e4e26c99adc2cab7558a02129eaee059d 02-Jul-2010 Adam Powell <adamp@google.com> ActionBar tab mode using fragments; needs styles.

Change-Id: I8f931dae447e7b64de827d3c17766e5f8ad794e2
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarView.java
00fa7bdd69f0868fd17ea7c881c771d785b2fbbd 03-Jul-2010 Jeff Brown <jeffbrown@google.com> More native input dispatch work.

Removed old input dispatch code.
Refactored the policy callbacks.
Pushed a tiny bit of the power manager state down to native.
Fixed long press on MENU.
Made the virtual key detection and cancelation a bit more precise.

Change-Id: I5d8c1062f7ea0ab3b54c6fadb058c4d5f5a9e02e
nternal/view/BaseIWindow.java
3372f2e259247810627fd22033406163284f4f64 30-Jun-2010 Johannes Carlsson <johannes.carlsson.x@sonyericsson.com> Corrected buffer overflow when parsing /proc/wakelocks

The android_os_Process_parseProcLineArray in android_util_Process.cpp
writes up to buffer[endIndex]. This sometimes caused an assert to be
triggered in NewStringUTF when the output from /proc/wakelocks was
larger than 4096 bytes. The buffer was also increased in order to be
able to parse all wakelocks completely.

Change-Id: Idf8e66d61ad979377569048f59c3eee278b146db
nternal/os/BatteryStatsImpl.java
169741b70880607701d704262dd9b386fcfd083d 27-May-2010 Amith Yamasani <yamasani@google.com> DO NOT MERGE: Add a battery capacity value to the power profile.

Can be accessed through PowerProfile.getBatteryCapacity()

Individual device profiles need to be updated with their capacities.

(merged from master)

Change-Id: Ie76ab6de47c44807a46934331665e077a7226566
nternal/os/PowerProfile.java
adfb59907a191773a6666b79bf9d591ff53ab6b1 01-Jul-2010 satok <satok@google.com> Merge "Remove EditStyledText from the framekwork"
fa57523b60dd335a227bff7fbddbf05ab0755b5d 01-Jul-2010 satok <satok@google.com> Remove EditStyledText from the framekwork

Change-Id: Idad87a61b0a64c9ba0a70a2d576188ad5e560cb7
nternal/widget/EditStyledText.java
a7db03705f53c59e63e63c2e67e2db78f8226dcc 01-Jul-2010 Adam Powell <adamp@google.com> Define measuring behavior for action bar/context mode custom views

Change-Id: Idbe25c81a16005f153d5b425fb366eef4bea290f
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
0e94b5151d817e600a888448a662208b29b5ef46 30-Jun-2010 Adam Powell <adamp@google.com> Add subtitles for action bars and context modes.

Fix an issue where context mode content was cleared before animating out.

Change-Id: Ie7a065e65bc18e3da32de07543d0f71d2a2d648c
nternal/app/ActionBarImpl.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
89e0645b4157961e8c465eb9c819f965fdb453d8 24-Jun-2010 Adam Powell <adamp@google.com> Added context modes to ActionBar API.

Change-Id: I7c3e782cbf01be7bc671b377fb4d706040888833
nternal/app/ActionBarImpl.java
nternal/app/SplitActionBar.java
nternal/view/menu/ActionMenuItem.java
nternal/view/menu/ActionMenuView.java
nternal/view/menu/MenuItemImpl.java
nternal/widget/ActionBarContextView.java
nternal/widget/ActionBarView.java
96e6bdb033b2997a4215b70acc3777fe495b9aca 25-Jun-2010 Irfan Sheriff <isheriff@google.com> Add obtainMessage functions to HSM

Change-Id: Idc907f429cf15e61ad461af95fdc245fd5aca23f
nternal/util/HierarchicalStateMachine.java
8bb998d52c118d361390af89b14dd67a4563509a 25-Jun-2010 Dianne Hackborn <hackbod@google.com> am ea8eafad: am 2529a453: Merge "Make bad notifications crash their application." into gingerbread

Merge commit 'ea8eafad4f5438ec1291d45376959a996d36e15e'

* commit 'ea8eafad4f5438ec1291d45376959a996d36e15e':
Make bad notifications crash their application.
9d39d0cb361c5d3bba04a6bacf299be2162a6e92 25-Jun-2010 Dianne Hackborn <hackbod@google.com> Make bad notifications crash their application.

Implement notification manager handling of bad notifications, to
call a new activity manager to have the owner's process crashed
(if there is one).

Change-Id: Ib15e8d0c598756f3b39c99cc2045c18e054daf6b
nternal/statusbar/IStatusBarService.aidl
nternal/statusbar/StatusBarNotification.java
f92f8686f982c62a609a2087383a77a24d126992 23-Jun-2010 Dianne Hackborn <hackbod@google.com> am 98f7aed6: am 1e4b9f39: Remove InputConsumer, replacing with InputQueue.

Merge commit '98f7aed66b54c365f816fe990de978f61155cde1'

* commit '98f7aed66b54c365f816fe990de978f61155cde1':
Remove InputConsumer, replacing with InputQueue.
1e4b9f3936d6f357e89360293e05a0e16d5fa440 23-Jun-2010 Dianne Hackborn <hackbod@google.com> Remove InputConsumer, replacing with InputQueue.

Change-Id: Ib06907278457aaee842b123adc072840ca3602d8
nternal/os/BatteryStatsImpl.java
nternal/view/RootViewSurfaceTaker.java
320742b15a710ede57862eee170945da26ef0172 23-Jun-2010 Dianne Hackborn <hackbod@google.com> am e3e2883f: am e24a60aa: Merge "First stab at attaching native event dispatching." into gingerbread

Merge commit 'e3e2883f2232007174ead562610eb01201890d9b'

* commit 'e3e2883f2232007174ead562610eb01201890d9b':
First stab at attaching native event dispatching.
a95e4cb62f3642cb190d032dbf7dc40d9ecc6973 19-Jun-2010 Dianne Hackborn <hackbod@google.com> First stab at attaching native event dispatching.

Provides the basic infrastructure for a
NativeActivity's native code to get an object representing
its event stream that can be used to read input events.

Still work to do, probably some API changes, and reasonable
default key handling (so that for example back will still
work).

Change-Id: I6db891bc35dc9683181d7708eaed552b955a077e
nternal/view/RootViewSurfaceTaker.java
2c63fe44f48cde663c3f9d5373ec93f7dd96f6f8 03-Jun-2010 Daniel Lehmann <lehmannd@google.com> Remove ContactHeaderWidget, because it lives directly in the Contacts App from now on

Change-Id: I1d3646f2744e01a1e64db8787b4cd7dd746d540e
nternal/widget/ContactHeaderWidget.java
7ade1be822ed05a143b059319dccd5e9f623b56d 17-Jun-2010 Adam Powell <adamp@google.com> Action bar button layout changes.

Theme attribute added for spacing between action buttons. Action
buttons are now allowed to fill up to half of the total action bar's
width.

Change-Id: Iabbc67e695684529dfae9681d4d9580cd30839d0
nternal/view/menu/ActionMenuView.java
96675b1df3969f2d313b68f60ed9fa36805db8ce 11-Jun-2010 Adam Powell <adamp@google.com> Merging ActionBar menu with options menu.

Options menu items may now specify if they would like to appear in the
action bar. Menu items defined in xml may set the showAsAction
attribute to one of "never"(default), "ifRoom", or "always". Action
buttons are populated as follows:

* All showAsAction="always" items become action buttons, even if it
would crowd the navigation area of the action bar.

* If there is space remaining, showAsAction="ifRoom" items are added
until no more will fit comfortably.

Action button click events are now handled by the
onOptionsItemSelected method used by the standard options menu.

The construction of options menus now happens earlier in order to
provide data to the action bar. Activities with an action bar can now
expect to have onCreateOptionsMenu called when activity start-up is
complete.

Activity#invalidateOptionsMenu can be used to force a refresh of menu
items where the previous API would use ActionBar#updateActionMenu.

Change-Id: If52ddf1cf9f6926206bcdeadf42072ea2c24fab9
nternal/app/SplitActionBar.java
nternal/view/menu/ActionMenuItemView.java
nternal/view/menu/ActionMenuView.java
nternal/view/menu/IconMenuView.java
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuItemImpl.java
e2e97ce1161e5bf89ef8b5ce6a12be0f16dea23e 17-Jun-2010 Dianne Hackborn <hackbod@google.com> am 9a1034aa: am 6b7b4845: Various improvements to battery stats collection

Merge commit '9a1034aa9746b94ecb659ea849765a160bdf747e'

* commit '9a1034aa9746b94ecb659ea849765a160bdf747e':
Various improvements to battery stats collection
6b7b4845212b3a439c527f2e1eca205b6b45fceb 15-Jun-2010 Dianne Hackborn <hackbod@google.com> Various improvements to battery stats collection

We now clear the battery stats when unplugging after the
battery is full. This allows us to use the "total" stats as
a new "since last charged" stat. Total is gone. I never used
it, it was worthless. Since last charged is a lot more
interesting.

The battery history now collects a lot more stats, and keeps
control over how much it can collect. Printing is now more
descriptive.

The kinds of stats have been renamed to SINCE_UNPLUGGED and
SINCE_DISCHARGED. The other two stats are still there, but
no longer printed; a future change will eliminate them
completely along with all of their state.

Change-Id: I4e9fcfcf8c30510092c76a8594f6021e9502fbc1
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
bde75706592c77379fb6546283e733abaca6fe04 28-May-2010 Sen Hu <senhu@google.com> wire up sampling profiler to dropbox

When system property "persist.sys.profiler_hz" > 0, SamplingProfilerService is
loaded to SystemServer. It creates a FileObserver, watching any new file in the snapshot
directory. When a snapshot is found, it is put in dropbox and deleted after that.

SamplingProfilerIntegration writes snapshots with headers. Headers are <name, value> pairs,
instantiated by caller.

Currently header format is (also in source comment):

Version: <version number of profiler>\n
Process: <process name>\n
Package: <package name, if exists>\n
Package-Version: <version number of the package, if exists>\n
Build: <fingerprint>\n
\n
<the actual snapshot content begins here...>

BUG=2732642

Change-Id: I2c1699f1728e603de13dbd38f9d8443cd3eecc06
nternal/os/SamplingProfilerIntegration.java
8e03b7566c42621fda01186b66b019142eb84fbf 14-Jun-2010 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of 9e660c82 to master

Change-Id: Ic4bd85cbaa5b9a10dcb474a0dad46490bf967e43
46b9ac0ae2162309774a7478cd9d4e578747bfc2 23-Apr-2010 Jeff Brown <jeffbrown@google.com> Native input dispatch rewrite work in progress.

The old dispatch mechanism has been left in place and continues to
be used by default for now. To enable native input dispatch,
edit the ENABLE_NATIVE_DISPATCH constant in WindowManagerPolicy.

Includes part of the new input event NDK API. Some details TBD.

To wire up input dispatch, as the ViewRoot adds a window to the
window session it receives an InputChannel object as an output
argument. The InputChannel encapsulates the file descriptors for a
shared memory region and two pipe end-points. The ViewRoot then
provides the InputChannel to the InputQueue. Behind the
scenes, InputQueue simply attaches handlers to the native PollLoop object
that underlies the MessageQueue. This way MessageQueue doesn't need
to know anything about input dispatch per-se, it just exposes (in native
code) a PollLoop that other components can use to monitor file descriptor
state changes.

There can be zero or more targets for any given input event. Each
input target is specified by its input channel and some parameters
including flags, an X/Y coordinate offset, and the dispatch timeout.
An input target can request either synchronous dispatch (for foreground apps)
or asynchronous dispatch (fire-and-forget for wallpapers and "outside"
targets). Currently, finding the appropriate input targets for an event
requires a call back into the WindowManagerServer from native code.
In the future this will be refactored to avoid most of these callbacks
except as required to handle pending focus transitions.

End-to-end event dispatch mostly works!

To do: event injection, rate limiting, ANRs, testing, optimization, etc.

Change-Id: I8c36b2b9e0a2d27392040ecda0f51b636456de25
nternal/view/BaseInputHandler.java
cf0a99910cf87b148fe3143686262a8371d2dbc1 11-Jun-2010 Dianne Hackborn <hackbod@google.com> am 4d4f265e: am 9f8cc518: Merge "Adjust activity manager process OOM adj." into kraken

Merge commit '4d4f265e6b6ccfc239150bd71aa2ce2b8de6237f'

* commit '4d4f265e6b6ccfc239150bd71aa2ce2b8de6237f':
Adjust activity manager process OOM adj.
32907cfb38bda2d3c052cf5139c5b592678fedbb 11-Jun-2010 Dianne Hackborn <hackbod@google.com> Adjust activity manager process OOM adj.

Modify OOM adj classes a bit, to take into account the new
heavy weight app type, and give "foreground services" their
own category to have a bettery chance to manager them when
things go wrong.

Also add some new code to battery stats to keep a history
of changes to the battery level.

Change-Id: I29f5ab6938777e1a7eafd7d8c38b5e564cc9f96a
nternal/os/BatteryStatsImpl.java
b60c941811cc15ab34fcc2f038aba56f862659b8 11-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of f37cbe6b to master

Change-Id: I529b17e55b9668f900f685f92e9831e14a82db05
438d0595121a7a2cdf19741e76e3c0e21a5c173d 10-Jun-2010 Brad Fitzpatrick <bradfitz@android.com> Introduce "StrictMode"

This is a new public API for developers to opt-in to strict rules
about what they're allowed to do on certain threads. (this is the
public face of the @hide dalvik.system.BlockGuard, added recently...)

In practice this will be used for developers to opt-in to declaring
that they don't want to be allowed to do various operations (such as
disk I/O or network operations) on their main UI threads. (these
operations are often accidental, or even when they are fast come with
a good chance of being slow or very slow in some cases....)

Implementation wise, this is just a thread-local integer that has a
bitmask of the things that aren't allowed, and more bits for saying
what the violation penalty is. The penalties, of which multiple can
be chosen, include:

* logging
* dropbox uploading for analysis/reporting
* annoying dialog
* full-on crashing

These are all only very roughly implemented at this point, but all
parts now minimally work end-to-end now, so this is a good checkpoint
commit before this gets too large.

Future CLs will polish all the above 4 penalties, including
checksumming of stacktraces and minimizing penalties for duplicate
violations.

Change-Id: Icbe61a2e950119519e7364030b10c3c28d243abe
nternal/os/RuntimeInit.java
8a5f10b30dae663eb01372490df3497e8a2ad56a 10-Jun-2010 Joe Onorato <joeo@android.com> resolved conflicts for merge of f7b79151 to master

Change-Id: Ia4538f73d8bade9e6565835d484dcb650830feca
f1f259165ffaa4095afbd50fea47ed091cbc14b3 07-Jun-2010 Joe Onorato <joeo@android.com> Call into the notification manager when the panel is revealed.

This lets it turn off the LED. However, it seems like somebody broke
the notification LEDs. GRRR.

Change-Id: I3f7066c2b2e1673dc0144a34cf59946351a647be
nternal/statusbar/IStatusBarService.aidl
8bc6c5141974dbc36a6fe416853f558921be9f24 04-Jun-2010 Joe Onorato <joeo@android.com> Require the STATUS_BAR_SERVICE permission for something to be the status bar.

Change-Id: I57b2d296e0d0cef0d256ae6697fffc47188d14df
nternal/statusbar/IStatusBarService.aidl
005847b03b2ebe3eb1a974a8a04ad51bca6636cd 04-Jun-2010 Joe Onorato <joeo@android.com> Handle errors inflating notifications (and their icons).

On an inflation error, the StatusBarService cleans up, removes / doesn't add
the views, and calls into the StatusBarManagerService, which tells the
NotificationManagerService to remove the notification.

That then calls all the way back into the StatusBarService, but I think being
extra careful is okay. Throughout the status bar, it's all keyed off of the
IBinder key, so if the app comes in with a good notification while we're
cleaning up, we won't lose the new notification or anything like that.

Change-Id: Iea78a637495a8b67810c214b951d5ddb93becacb
nternal/statusbar/IStatusBarService.aidl
c857740f242169f2ca7fd42f0d1268661b399ad6 05-Jun-2010 Konstantin Lopyrev <klopyrev@google.com> Adding support for minimum number of non letter characters.

Change-Id: If54cb7209d65eef826d474d7e0dbbef63d2f2b47
nternal/widget/LockPatternUtils.java
a408291e22def5755559f42cde913706a6d628c0 05-Jun-2010 Adam Powell <adamp@google.com> Dropdown mode for ActionBar; style and API updates
nternal/app/SplitActionBar.java
d0b15cecc63b03ca4e42549ed3a54ae2c7e31866 04-Jun-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of f3307ae8 to master

Change-Id: Ic59db363391f73343eba32894113914ceea5a963
860755faa6bdd3c2aeae49c05b87b5bc080ae60c 04-Jun-2010 Dianne Hackborn <hackbod@google.com> Add support for heavy-weight applications.

Only one can be running at a time, their process can not be killed,
and a notification is posted while it is running.

Change-Id: I843015723947e0c934ae63a1aeee139327c0bc01
nternal/app/HeavyWeightSwitcherActivity.java
f6aa6185a416bb6f74cd5054cdd970f3e02fa6d0 03-Jun-2010 Jesse Wilson <jessewilson@google.com> Merge "Preloaded class list problems shall no longer break the build."
e2417541b4c1c0954295dd77d6c95512f99a9f91 03-Jun-2010 Jesse Wilson <jessewilson@google.com> Preloaded class list problems shall no longer break the build.

This list is mechanically generated and its a waste of engineering
effort to manually edit this list when a class is deleted or renamed.

Change-Id: Ia8b6ae004678df2c5e2c268742c3a2d7c6a10db3
nternal/os/ZygoteInit.java
ac7ae9cc9118ad8e75011b7c94f05545f2cbe0e8 03-Jun-2010 Vasu Nori <vnori@google.com> Merge "add API to Cursor to get column value type"
33e2f07e55773099645576932c9b69cef1a419f5 03-Jun-2010 Joe Onorato <joeo@android.com> am 50515e44: am 75199e3d: Populate the notifications at startup of SystemUI.apk.
a417069c9ba6f70ee20444e83659ca19711a5863 03-Jun-2010 Joe Onorato <joeo@android.com> am 85676633: am 0e26dffd: updateNotifications works.
75f63a69add5fcec9c1fbd6ba8bf760a6674607f 03-Jun-2010 Joe Onorato <joeo@android.com> am bdcc172d: am aaba60b2: Notifications don\'t crash when you click them, and pass through events to NotificationManagerService
01cc0187953d26639843cd5048d47805687bd580 03-Jun-2010 Joe Onorato <joeo@android.com> am c3c2f605: am e345fff2: notifications show
cd55681a8786f3dcb741f81338facaaf14683974 03-Jun-2010 Joe Onorato <joeo@android.com> am 34504ffc: am a0c56fe9: Checkpoint. Doesn\'t build.
fb1bd96ffb0ecd9a4356356e6c2e05bdaa4bd77a 03-Jun-2010 Joe Onorato <joeo@android.com> am ef5ce59a: am 18e69dfc: Checkpoint. Data structures for Notifications in place.
37166e6d7e41d309e834f114096d8c876ab1a45d 03-Jun-2010 Joe Onorato <joeo@android.com> am ff97998a: am 4762c2d7: Add expand and collapse.
60a83af0488b5ebaffbdf70d5709eed0834a91f8 03-Jun-2010 Joe Onorato <joeo@android.com> am ee5d0caf: am f3f0e053: Make disable() work.
1655e7631c06402d0e94027cba3fadc146a42e35 03-Jun-2010 Joe Onorato <joeo@android.com> am 5581c500: am 514ad663: Set the visibility of the icons.
e635a6bcc12ddafdf921f564fd3ff374a6ad3ffd 03-Jun-2010 Joe Onorato <joeo@android.com> am 12cd606d: am 0cbda99f: The status bar draws its icons now.
8b0dd7da360d70920a37802eb455ba41500d3b45 18-May-2010 Vasu Nori <vnori@google.com> add API to Cursor to get column value type

Change-Id: I3ef1bcdb2eb1c45f68e829ccb6e3ecde28076591
nternal/database/SortCursor.java
75199e3ddcf7886c8ee5fbf8b486a8c21335bf14 29-May-2010 Joe Onorato <joeo@android.com> Populate the notifications at startup of SystemUI.apk.

Change-Id: Ie0b3fd9ed4bc9a012791372e6276f0b5908370a5
nternal/statusbar/IStatusBarService.aidl
nternal/statusbar/StatusBarNotificationList.java
0e26dffd6cfcb09b08a94a857b891fdef7fe2b1e 24-May-2010 Joe Onorato <joeo@android.com> updateNotifications works.

Change-Id: I924763a2d42ca1967719f3eb72c57d1cbb912dd7
nternal/statusbar/StatusBarIcon.java
nternal/statusbar/StatusBarNotification.java
aaba60b281713d45a0f232580302c7b54a7207df 23-May-2010 Joe Onorato <joeo@android.com> Notifications don't crash when you click them, and pass through events to NotificationManagerService

Change-Id: Iae4a636d3c6d5c617440b11eb5b8bc77838ad584
nternal/statusbar/IStatusBarService.aidl
e345fff2f80947b0a821f6674c197a02b7bff08e 23-May-2010 Joe Onorato <joeo@android.com> notifications show

Change-Id: I9240b803c643874828c95afcf1ba9ed91194dbc0
nternal/statusbar/StatusBarIcon.java
nternal/statusbar/StatusBarNotification.java
a0c56fe93925d20d9c0b830b9664699ce557e78c 20-May-2010 Joe Onorato <joeo@android.com> Checkpoint. Doesn't build.

Change-Id: I92e4d539ea71af9e22ced02cbdee7fbd456b7971
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/StatusBarNotification.aidl
nternal/statusbar/StatusBarNotification.java
nternal/statusbar/StatusBarNotificationList.java
18e69dfc7235f8a4bfe257f9d1c43539049a22ce 18-May-2010 Joe Onorato <joeo@android.com> Checkpoint. Data structures for Notifications in place.

Change-Id: I146fb9bc1d349112541368e2c99a667821dfdf6e
nternal/statusbar/StatusBarIcon.java
nternal/statusbar/StatusBarNotification.java
nternal/statusbar/StatusBarNotificationList.aidl
nternal/statusbar/StatusBarNotificationList.java
4762c2d75a55e0854bbff2f996748116d4ab1a37 18-May-2010 Joe Onorato <joeo@android.com> Add expand and collapse.

Change-Id: I58ad95c59b2c46d3f25349e137d5624aefc6c6cd
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
f3f0e053f0cc66249a11639eb67d0cdc2da26ded 15-May-2010 Joe Onorato <joeo@android.com> Make disable() work.

Change-Id: I93fea37e777b3e04fe7f9171d5b84821587c24f5
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
514ad663f0a8b239cc59409175e0bd489c591aa0 14-May-2010 Joe Onorato <joeo@android.com> Set the visibility of the icons.

Change-Id: Ib414718f1c51f1d306308a989d5d31d8e3ea7fd1
nternal/statusbar/StatusBarIcon.java
nternal/statusbar/StatusBarIconList.java
0cbda99f8721ad9b03ada04d2637fb75a2a0feca 03-May-2010 Joe Onorato <joeo@android.com> The status bar draws its icons now.
nternal/statusbar/IStatusBar.aidl
nternal/statusbar/IStatusBarService.aidl
nternal/statusbar/StatusBarIcon.aidl
nternal/statusbar/StatusBarIcon.java
nternal/statusbar/StatusBarIconList.aidl
nternal/statusbar/StatusBarIconList.java
a15dcfaf2bc7cbd13b30db6766afe3bbaa01db97 25-May-2010 Konstantin Lopyrev <klopyrev@google.com> Fix 2677197: Adding minimum complex character support.

Change-Id: I520bc5f9aa924bf9b5585b2235a91cc96cb99c25
nternal/widget/LockPatternUtils.java
8b932067c136b47d1f77e574488b24564be4bb2f 27-May-2010 Amith Yamasani <yamasani@google.com> Merge "Add a battery capacity value to the power profile."
bed865932f00eb503c775f03043413e34b0077de 27-May-2010 Amith Yamasani <yamasani@google.com> Add a battery capacity value to the power profile.

Can be accessed through PowerProfile.getBatteryCapacity()

Individual device profiles need to be updated with their capacities.
nternal/os/PowerProfile.java
dc0f4f059c1e28375ea3a4d81e189b34c1ac9ae4 26-May-2010 Jim Miller <jaggies@google.com> Merge "Fix 2584857: Reset grabbed state when SlidingTab visibility changes"
92c1571f0a5202f742d3318d5f852dc5e395d19c 26-May-2010 Jim Miller <jaggies@google.com> Fix 2584857: Reset grabbed state when SlidingTab visibility changes

This fixes a case where the widget is hidden while the grabbed
state is set. The result is that the host of the widget is never
informed that the grabbed state changed.

Change-Id: I78b41cff0e31e982a3b46f0319260ba59815092c
nternal/widget/SlidingTab.java
3255823de062e981f7bfc7994919207988697e45 21-May-2010 Konstantin Lopyrev <klopyrev@google.com> Fix 2673731: Adding support for password history to Device Admin.

Change-Id: If3240048813e32b2bae79fe5cb8a73aea20ec56c
nternal/widget/LockPatternUtils.java
33c26f9fd01d5e2acce3e6c7ca828951d28c7d66 19-May-2010 Wink Saville <wink@google.com> am 199d3783: am 7e3b31d7: Merge "Update docs, add HANDLED, NOT_HANDLED and getCurrentMessage." into kraken
7e3b31d786f88792dc1506d8cc4d53bd56741913 19-May-2010 Wink Saville <wink@google.com> Merge "Update docs, add HANDLED, NOT_HANDLED and getCurrentMessage." into kraken
a4f3bec29c85ef9e0d07fdd551fe3c50f28b9adc 19-May-2010 Wink Saville <wink@google.com> Update docs, add HANDLED, NOT_HANDLED and getCurrentMessage.

The EBNF statemachine description language was to difficult
to remember changed to use a simpler and more obvious psuedo
language.

Added HANDLED and NOT_HANDLED as it makes the psuedo code
more obvious.

Added getCurrentMessage primarily for use by code in enter
so that it can know why the new state is being entered.

Change-Id: I1446e417b77684fbde0020b1da0975eedc57cce4
nternal/util/HierarchicalStateMachine.java
39ccc0811fad542fdce8e8226d90c219dec7e451 19-May-2010 The Android Open Source Project <initial-contribution@android.com> am 56d4bcd8: am 627356ce: am d6c0bb0f: merge from open-source master
627356cee467fad0335b2bc8cc058a3784f0bf63 19-May-2010 The Android Open Source Project <initial-contribution@android.com> am d6c0bb0f: merge from open-source master

Merge commit 'd6c0bb0f0f3827f1c336db20ac9dc0eb90cd46fa' into kraken

* commit 'd6c0bb0f0f3827f1c336db20ac9dc0eb90cd46fa':
Removed Calls to deprecated APIs
d6c0bb0f0f3827f1c336db20ac9dc0eb90cd46fa 19-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I0598edad283a177a5ddcc30e20d2284503e6038e
2b9a49a30d2ce1176cbd90741897705bec32d0bd 19-May-2010 Romain Guy <romainguy@android.com> Merge "Removed Calls to deprecated APIs"
9b081a809a7e39c6877a9606289ada4680f3d91f 19-May-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 8b625a95 to master

Change-Id: I03264c6aad2d87629f9154f5c390cb36ce08efba
dc8a7f69d7df5f1ca29763995a0d55acf7936fc6 10-May-2010 Dianne Hackborn <hackbod@google.com> Add new API to take over a window's Surface.

Change-Id: Iad6245faadc95f19ea63c8e229a1c02e9188f69e
nternal/view/BaseSurfaceHolder.java
nternal/view/RootViewSurfaceTaker.java
f90fa1a04f80d30cd7e06441016a9364f8be75bd 18-May-2010 The Android Open Source Project <initial-contribution@android.com> am 75c1b73d: am 40090708: am 4547e528: merge from open-source master
400907086ac1a304daa50a72013ac27a9c63b26b 18-May-2010 The Android Open Source Project <initial-contribution@android.com> am 4547e528: merge from open-source master

Merge commit '4547e5284e79192373f3a6bb6c452501171bc1d6' into kraken

* commit '4547e5284e79192373f3a6bb6c452501171bc1d6':
Removed Calls to deprecated APIs and unused Imports
4547e5284e79192373f3a6bb6c452501171bc1d6 18-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I3607454a9257701855354c12ef1f36841c889aea
15d24708b1c33188c97e3be5be94131acd8e095d 17-May-2010 Christian Mehlmauer <FireFart@gmail.com> Removed Calls to deprecated APIs and unused Imports

Change-Id: Ib26783ca1d6c345cc91aa3ab5b9654f5316c78a0
nternal/app/ExternalMediaFormatActivity.java
nternal/app/RingtonePickerActivity.java
nternal/app/UsbStorageActivity.java
nternal/app/UsbStorageStopActivity.java
746a95ab7145a1c7583d1f2d6004a508cd7a31dc 17-May-2010 Christian Mehlmauer <FireFart@gmail.com> Removed Calls to deprecated APIs

Change-Id: I3f9b6a8d3c8a050156a6cc7ea0eb9de33b82f79a
nternal/app/NetInitiatedActivity.java
a1700783b52c3f4e6b52ea425cdce93c74936586 13-May-2010 Adam Powell <adamp@google.com> ActionBar - custom navigation views

Change-Id: Ibc98565816c713474eefd4e96fb51175abfb0187
nternal/app/SplitActionBar.java
7cd51efcbd2d083bf577696591ef1769034f7e2f 13-May-2010 Jeff Hamilton <jham@android.com> Remove the deprecated cursor methods.

Change-Id: Ie3571fea9f36996c31c327240b11086f8cc487f0
nternal/database/SortCursor.java
468202dd71e375a1f7f2038e094baffe204c4972 13-May-2010 Mike Lockwood <lockwood@android.com> am 702b8752: am 5a9cbb29: am a3d5549c: am 098e58da: Use SystemClock.elapsedRealtime in ShutdownThread timeout logic
5a9cbb291fa7505a6c51eba6f600009dfc17366d 13-May-2010 Mike Lockwood <lockwood@android.com> am a3d5549c: am 098e58da: Use SystemClock.elapsedRealtime in ShutdownThread timeout logic

Merge commit 'a3d5549c802bc4fbf1e1ca05bc3552db17212036' into kraken

* commit 'a3d5549c802bc4fbf1e1ca05bc3552db17212036':
Use SystemClock.elapsedRealtime in ShutdownThread timeout logic
a3d5549c802bc4fbf1e1ca05bc3552db17212036 13-May-2010 Mike Lockwood <lockwood@android.com> am 098e58da: Use SystemClock.elapsedRealtime in ShutdownThread timeout logic

Merge commit '098e58da93f304d7d7791f193c6237870b94989d' into froyo-plus-aosp

* commit '098e58da93f304d7d7791f193c6237870b94989d':
Use SystemClock.elapsedRealtime in ShutdownThread timeout logic
098e58da93f304d7d7791f193c6237870b94989d 13-May-2010 Mike Lockwood <lockwood@android.com> Use SystemClock.elapsedRealtime in ShutdownThread timeout logic

This avoids problems if the time is reset while shutting down.

Change-Id: I54c7c787e55648ebf5a68e79056f92fbac0081ae
Signed-off-by: Mike Lockwood <lockwood@android.com>
nternal/app/ShutdownThread.java
33b974393b6fadcefc896ec4a0f9b66724f61e9f 20-Apr-2010 Adam Powell <adamp@google.com> ActionBar added to framework, integrated with Activity and styles.
Added onClick attribute support to menus in MenuInflater.

Change-Id: I739771b4f249d87a0d8b15969f3d526b099067a1
nternal/app/SplitActionBar.java
nternal/view/menu/ActionMenu.java
nternal/view/menu/ActionMenuItem.java
863f22d0451d52cbcccc252ad29858ef1578e709 13-May-2010 Konstantin Lopyrev <klopyrev@google.com> Fix 2673731: Added password history

Change-Id: I88919357abea31062caf96b214823b03cbaa15a4
nternal/widget/LockPatternUtils.java
42364be58b1b9ff511c92133884c73e736d68a7d 05-May-2010 Adam Powell <adamp@google.com> am b7e23dbe: am 37f4f5b1: am d135f74b: am 151af19b: Fix bug 2651076 - Catch/log ActivityNotFoundException in MenuItemImpl.invoke()
37f4f5b1eaa0bbc8909dec80ebf08790d36b7135 05-May-2010 Adam Powell <adamp@google.com> am d135f74b: am 151af19b: Fix bug 2651076 - Catch/log ActivityNotFoundException in MenuItemImpl.invoke()

Merge commit 'd135f74b972b88de2ae8b11b3ada886d29c1e25d' into kraken

* commit 'd135f74b972b88de2ae8b11b3ada886d29c1e25d':
Fix bug 2651076 - Catch/log ActivityNotFoundException in MenuItemImpl.invoke()
d135f74b972b88de2ae8b11b3ada886d29c1e25d 05-May-2010 Adam Powell <adamp@google.com> am 151af19b: Fix bug 2651076 - Catch/log ActivityNotFoundException in MenuItemImpl.invoke()

Merge commit '151af19bf409a47424ddaa51e1ac4a0c532c4eb6' into froyo-plus-aosp

* commit '151af19bf409a47424ddaa51e1ac4a0c532c4eb6':
Fix bug 2651076 - Catch/log ActivityNotFoundException in MenuItemImpl.invoke()
151af19bf409a47424ddaa51e1ac4a0c532c4eb6 04-May-2010 Adam Powell <adamp@google.com> Fix bug 2651076 - Catch/log ActivityNotFoundException in MenuItemImpl.invoke()

Change-Id: I841a37349fbc6af33073aaecae903eb8999cc5bd
nternal/view/menu/MenuItemImpl.java
4fcc5b1f93eb1fd2e7e3f7fcc16a1b7a8a6419bf 19-Apr-2010 Daniel Lehmann <lehmannd@google.com> Ensure public methods exist to update the state of the UI, so that it can be set from outside

Change-Id: Ib1d7b0b36b6cdcbf1256647da76130927a29ec6d
nternal/widget/ContactHeaderWidget.java
212db7d3f8ce5297f4a556234a9c0675c697f1cf 09-Apr-2010 Adam Powell <adamp@google.com> Added MultiSelectListPreference

Added set support to XmlUtils; added Set<String> functions to SharedPreferences.

MultiSelectListPreference allows multiple selection and persistence of
string preferences. Addresses bug 2575634.

Change-Id: Icd56022d444b0ce43cccf819cd7d600fdb00e88a
nternal/util/XmlUtils.java
690de26230f393fd46b2273190d80687a25ccdc1 10-Apr-2010 Jesse Wilson <jessewilson@google.com> am 97a22e1b: am 86b0276a: am f9e90378: am bc284a5f: Merge "Move the public method HttpDateTime.parse() into AndroidHttpClient." into froyo
86b0276a39d1ca1472e09d4c3787f5ff8f49a1d9 10-Apr-2010 Jesse Wilson <jessewilson@google.com> am f9e90378: am bc284a5f: Merge "Move the public method HttpDateTime.parse() into AndroidHttpClient." into froyo

Merge commit 'f9e90378d50210298d1cec2b913653597cd62be4' into kraken

* commit 'f9e90378d50210298d1cec2b913653597cd62be4':
Move the public method HttpDateTime.parse() into AndroidHttpClient.
f9e90378d50210298d1cec2b913653597cd62be4 10-Apr-2010 Jesse Wilson <jessewilson@google.com> am bc284a5f: Merge "Move the public method HttpDateTime.parse() into AndroidHttpClient." into froyo

Merge commit 'bc284a5f9f1e3f19ddd45cfb233f0d1775b612a7' into froyo-plus-aosp

* commit 'bc284a5f9f1e3f19ddd45cfb233f0d1775b612a7':
Move the public method HttpDateTime.parse() into AndroidHttpClient.
7cfa90fee54f44831ac492891d1c123601c2a262 08-Apr-2010 Jesse Wilson <jessewilson@google.com> Move the public method HttpDateTime.parse() into AndroidHttpClient.

See bug http://b/2553589

Change-Id: Ide3399c7c63daf9c0b8c18669076f2f4d6e9a876
nternal/http/HttpDateTime.java
04867ab7c67e3cbaea68d0c78ebeaa37f9e10440 06-Apr-2010 Daniel Lehmann <lehmannd@google.com> am ba3147d1: am 140d040b: am d8b9b511: Merge "Pass cookie to TOKEN_CONTACT_INFO so that QuickContact without photo works again Bug:2572239" into froyo
ba3147d157c7d1ac8ffe2be5abca039430eee64e 06-Apr-2010 Daniel Lehmann <lehmannd@google.com> am 140d040b: am d8b9b511: Merge "Pass cookie to TOKEN_CONTACT_INFO so that QuickContact without photo works again Bug:2572239" into froyo

Merge commit '140d040b6a5d2dc01e999e6f7b69863c71b2272b' into kraken

* commit '140d040b6a5d2dc01e999e6f7b69863c71b2272b':
Pass cookie to TOKEN_CONTACT_INFO so that QuickContact without photo works again
140d040b6a5d2dc01e999e6f7b69863c71b2272b 06-Apr-2010 Daniel Lehmann <lehmannd@google.com> am d8b9b511: Merge "Pass cookie to TOKEN_CONTACT_INFO so that QuickContact without photo works again Bug:2572239" into froyo

Merge commit 'd8b9b511821a06d86b3ffaab0d71ee9ce3834678' into froyo-plus-aosp

* commit 'd8b9b511821a06d86b3ffaab0d71ee9ce3834678':
Pass cookie to TOKEN_CONTACT_INFO so that QuickContact without photo works again
b45c047ba0d54424e41525911e077af2ac5c672e 06-Apr-2010 Daniel Lehmann <lehmannd@google.com> Pass cookie to TOKEN_CONTACT_INFO so that QuickContact without photo works again
Bug:2572239

Change-Id: I5fedd6cac64d495ba208ddcb45a7d09a05bb9a65
nternal/widget/ContactHeaderWidget.java
6243d4ca06393d038062b62f9fae47529e6b550e 05-Apr-2010 Amith Yamasani <yamasani@google.com> am c778f71d: am 733a2f65: am 1b4c0d70: Merge "Fix a crash in BatteryStatsImpl, due to a previous fix." into froyo
c778f71d5c36ed2b3d8dfce3a82b343e40f7bd3a 05-Apr-2010 Amith Yamasani <yamasani@google.com> am 733a2f65: am 1b4c0d70: Merge "Fix a crash in BatteryStatsImpl, due to a previous fix." into froyo

Merge commit '733a2f654934d452b2febf6f80cd1136830758d5' into kraken

* commit '733a2f654934d452b2febf6f80cd1136830758d5':
Fix a crash in BatteryStatsImpl, due to a previous fix.
733a2f654934d452b2febf6f80cd1136830758d5 05-Apr-2010 Amith Yamasani <yamasani@google.com> am 1b4c0d70: Merge "Fix a crash in BatteryStatsImpl, due to a previous fix." into froyo

Merge commit '1b4c0d702066794b9ce97b02721aa9e552997381' into froyo-plus-aosp

* commit '1b4c0d702066794b9ce97b02721aa9e552997381':
Fix a crash in BatteryStatsImpl, due to a previous fix.
e5795610bdc97aebfaa863b5134294aed5c7c1f2 05-Apr-2010 Amith Yamasani <yamasani@google.com> Fix a crash in BatteryStatsImpl, due to a previous fix.

This is probably the real fix for the original bug. The last line was probably not
well formed and resulted in an overrun in the native code.

Bug: 2564824
Change-Id: I8a9cc267f8045a61eff4b5d532258afa32a8b837
nternal/os/BatteryStatsImpl.java
79e642e8ed75033eacc461633a8f4cd5157d25df 18-Mar-2010 Mike Lockwood <lockwood@android.com> Call LocationManager.sendNiResponse() instead of calling directly to GpsLocationProvider

Change-Id: I6a5b47abb0519f5228d29bc3340bb2490564803e
Signed-off-by: Mike Lockwood <lockwood@android.com>
nternal/app/NetInitiatedActivity.java
dc6a0b84cc6ab440d588cfb29df3a4dfac39bab3 03-Apr-2010 Amith Yamasani <yamasani@google.com> am e27c176e: am c2e060cb: am 0913ce95: Merge "Potential fix for bug: 2564824 : Device runtime restart in BatteryService" into froyo
e27c176e6c7f595bcf44a68e850513f6a57b0acc 03-Apr-2010 Amith Yamasani <yamasani@google.com> am c2e060cb: am 0913ce95: Merge "Potential fix for bug: 2564824 : Device runtime restart in BatteryService" into froyo

Merge commit 'c2e060cbedaa2371fcc5c909c216c8ceafa4f649' into kraken

* commit 'c2e060cbedaa2371fcc5c909c216c8ceafa4f649':
Potential fix for bug: 2564824 : Device runtime restart in BatteryService
c2e060cbedaa2371fcc5c909c216c8ceafa4f649 03-Apr-2010 Amith Yamasani <yamasani@google.com> am 0913ce95: Merge "Potential fix for bug: 2564824 : Device runtime restart in BatteryService" into froyo

Merge commit '0913ce95c29371cb7b58e294a8d60262bc7f4329' into froyo-plus-aosp

* commit '0913ce95c29371cb7b58e294a8d60262bc7f4329':
Potential fix for bug: 2564824 : Device runtime restart in BatteryService
0913ce95c29371cb7b58e294a8d60262bc7f4329 03-Apr-2010 Amith Yamasani <yamasani@google.com> Merge "Potential fix for bug: 2564824 : Device runtime restart in BatteryService" into froyo
fcced8308101f8e019cc0bea36cff0621c127d8a 03-Apr-2010 Adam Powell <adamp@google.com> am ffc67455: am 128f1a87: am 6024ca5c: Fix bug 2185026 - back button in context menu now calls onContextMenuClosed()
ffc67455f8a96d9bba775a44d0942fbc70058755 03-Apr-2010 Adam Powell <adamp@google.com> am 128f1a87: am 6024ca5c: Fix bug 2185026 - back button in context menu now calls onContextMenuClosed()

Merge commit '128f1a87c55a291109ce521a92308c186e5d2db5' into kraken

* commit '128f1a87c55a291109ce521a92308c186e5d2db5':
Fix bug 2185026 - back button in context menu now calls onContextMenuClosed()
128f1a87c55a291109ce521a92308c186e5d2db5 03-Apr-2010 Adam Powell <adamp@google.com> am 6024ca5c: Fix bug 2185026 - back button in context menu now calls onContextMenuClosed()

Merge commit '6024ca5c90203b6c33acc6adfbf7e4e613549a0a' into froyo-plus-aosp

* commit '6024ca5c90203b6c33acc6adfbf7e4e613549a0a':
Fix bug 2185026 - back button in context menu now calls onContextMenuClosed()
6024ca5c90203b6c33acc6adfbf7e4e613549a0a 03-Apr-2010 Adam Powell <adamp@google.com> Fix bug 2185026 - back button in context menu now calls onContextMenuClosed()

Change-Id: I6c16879a8ad8e4651d21f639a620a936bf991f8d
nternal/view/menu/MenuDialogHelper.java
2098eadfba7aba5d667579222f0fac76d1235ff0 02-Apr-2010 Amith Yamasani <yamasani@google.com> Potential fix for bug: 2564824 : Device runtime restart in BatteryService

Look for corrupted bytes and replace with ?

If the problem is in the parsing code, then this will not help.

Change-Id: If33643f126a4099d4113e37760c6ef74683fe97e
nternal/os/BatteryStatsImpl.java
39f99a1ceeffdc45aa0baef4722eb563fd490073 02-Apr-2010 Mike Lockwood <lockwood@android.com> am dfcb20d1: am a9e1a131: am 87e72cd3: Merge "Vibrate before shutting down." into froyo
17145db0a7f376090e7cc7834c3cd87da891d2ee 02-Apr-2010 Jim Miller <jaggies@google.com> am 64265cc5: am 15be35f6: am bf1259b8: Fix 2538826: Allow aspect of LockPatternView to be customized.
dfcb20d1c3cd920e29715710baa9e1a2d5613b8b 02-Apr-2010 Mike Lockwood <lockwood@android.com> am a9e1a131: am 87e72cd3: Merge "Vibrate before shutting down." into froyo

Merge commit 'a9e1a131e3a5dcde4d69ee9f99aee4702dcff909' into kraken

* commit 'a9e1a131e3a5dcde4d69ee9f99aee4702dcff909':
Vibrate before shutting down.
a9e1a131e3a5dcde4d69ee9f99aee4702dcff909 02-Apr-2010 Mike Lockwood <lockwood@android.com> am 87e72cd3: Merge "Vibrate before shutting down." into froyo

Merge commit '87e72cd3b327fefc39030a628e9e9b7141791d39' into froyo-plus-aosp

* commit '87e72cd3b327fefc39030a628e9e9b7141791d39':
Vibrate before shutting down.
87e72cd3b327fefc39030a628e9e9b7141791d39 02-Apr-2010 Mike Lockwood <lockwood@android.com> Merge "Vibrate before shutting down." into froyo
a717f64ddcdce44379b24616333a58a6df2fcca5 02-Apr-2010 Mike Lockwood <lockwood@android.com> Vibrate before shutting down.

BUG: 2439291

Change-Id: I0f5abba34a14f1dd1cbe2077122d6f3e940b4d90
Signed-off-by: Mike Lockwood <lockwood@android.com>
nternal/app/ShutdownThread.java
64265cc59ba2a40f3795d4821a77be0c735e0d24 02-Apr-2010 Jim Miller <jaggies@google.com> am 15be35f6: am bf1259b8: Fix 2538826: Allow aspect of LockPatternView to be customized.

Merge commit '15be35f6c9a88f453ba3a6be8d93fed8537ad77e' into kraken

* commit '15be35f6c9a88f453ba3a6be8d93fed8537ad77e':
Fix 2538826: Allow aspect of LockPatternView to be customized.
15be35f6c9a88f453ba3a6be8d93fed8537ad77e 02-Apr-2010 Jim Miller <jaggies@google.com> am bf1259b8: Fix 2538826: Allow aspect of LockPatternView to be customized.

Merge commit 'bf1259b8a6a44d7a4eab5131cd33dac0fbcb50b6' into froyo-plus-aosp

* commit 'bf1259b8a6a44d7a4eab5131cd33dac0fbcb50b6':
Fix 2538826: Allow aspect of LockPatternView to be customized.
bf1259b8a6a44d7a4eab5131cd33dac0fbcb50b6 01-Apr-2010 Jim Miller <jaggies@google.com> Fix 2538826: Allow aspect of LockPatternView to be customized.

This fixes a problem where the pattern unlock area shrank on
mdpi devices.

This change is required since some devices (mdpi) don't have
enough vertical room to show a square LockPatternView and shrink
the area to match the minimum of width and height. To fix the
problem and minimize changes to existing platforms, the parameter
is configurable and has a default in values/donottranslate that
emulates the old behavior. New behavior for mdpi devices is
specified in values-port-mdpi/donottranslate, which is the
only place we currently see the problem.

Tested:
mdpi device in both orientations
hdpi device in both orientations
hdpi device in both orientations with keyboard open/closed

Change-Id: I3b9a5ef1d9b5e70f7b1823c9f48a3938f52cc7a4
nternal/widget/LockPatternView.java
726e838cc9c0814fff026837ed64ac73e0e10f2e 31-Mar-2010 Daniel Lehmann <lehmannd@google.com> am 22d7142d: am 1b679754: am 58c9a4bc: Merge "Don\'t load photo if it\'s id is 0. Saves one database query Bug:2546767" into froyo
22d7142dd9787f767576208e00f01ddfeff9f181 31-Mar-2010 Daniel Lehmann <lehmannd@google.com> am 1b679754: am 58c9a4bc: Merge "Don\'t load photo if it\'s id is 0. Saves one database query Bug:2546767" into froyo

Merge commit '1b679754b6f6fd5da8f5fc48415cad65cc8f3a56' into kraken

* commit '1b679754b6f6fd5da8f5fc48415cad65cc8f3a56':
Don't load photo if it's id is 0. Saves one database query
1b679754b6f6fd5da8f5fc48415cad65cc8f3a56 31-Mar-2010 Daniel Lehmann <lehmannd@google.com> am 58c9a4bc: Merge "Don\'t load photo if it\'s id is 0. Saves one database query Bug:2546767" into froyo

Merge commit '58c9a4bca0ce20ebf63a8c9619d405b788a98b9b' into froyo-plus-aosp

* commit '58c9a4bca0ce20ebf63a8c9619d405b788a98b9b':
Don't load photo if it's id is 0. Saves one database query
18d4b733f85c1611c168b4b3c490fc1f3b5b539a 29-Mar-2010 Daniel Lehmann <lehmannd@google.com> Don't load photo if it's id is 0. Saves one database query
Bug:2546767

Change-Id: I0739cd45acecd18bafda9a200dff60fdcc219021
nternal/widget/ContactHeaderWidget.java
e33b93206bda114e1c319e61129df2b4eafad8f6 30-Mar-2010 Jim Miller <jaggies@google.com> am baaa33a3: am d41d4586: am c6dc5070: Merge "Fix 2537999: Don\'t throw exception when SlidingTab has UNSPECIFIED specs" into froyo
baaa33a3789f15e94f1a0d292fb9be84ecb70a64 30-Mar-2010 Jim Miller <jaggies@google.com> am d41d4586: am c6dc5070: Merge "Fix 2537999: Don\'t throw exception when SlidingTab has UNSPECIFIED specs" into froyo

Merge commit 'd41d458696b2ab54387dd0683a3365e788b97c2d' into kraken

* commit 'd41d458696b2ab54387dd0683a3365e788b97c2d':
Fix 2537999: Don't throw exception when SlidingTab has UNSPECIFIED specs
d41d458696b2ab54387dd0683a3365e788b97c2d 30-Mar-2010 Jim Miller <jaggies@google.com> am c6dc5070: Merge "Fix 2537999: Don\'t throw exception when SlidingTab has UNSPECIFIED specs" into froyo

Merge commit 'c6dc5070ef663e514add038b1d2e78761156b0c0' into froyo-plus-aosp

* commit 'c6dc5070ef663e514add038b1d2e78761156b0c0':
Fix 2537999: Don't throw exception when SlidingTab has UNSPECIFIED specs
c6dc5070ef663e514add038b1d2e78761156b0c0 30-Mar-2010 Jim Miller <jaggies@google.com> Merge "Fix 2537999: Don't throw exception when SlidingTab has UNSPECIFIED specs" into froyo
d646f69c4e7cf0ad06bd2687a31b5cbb4441230c 29-Mar-2010 The Android Open Source Project <initial-contribution@android.com> am f29c7d4d: am c89704a7: merge from open-source master
f29c7d4d271a5a4483025b313c6b363417171d04 29-Mar-2010 The Android Open Source Project <initial-contribution@android.com> am c89704a7: merge from open-source master

Merge commit 'c89704a77f9c51ebd8c1cc6863e15ff402a56c86' into kraken

* commit 'c89704a77f9c51ebd8c1cc6863e15ff402a56c86':
Fix Memory Leak When Switching Input Methods
c89704a77f9c51ebd8c1cc6863e15ff402a56c86 29-Mar-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I6a8109d11dabc579501c598ab2927cf802797130
8aca694a363de4398e0172dbafe7cf6b47b17fa4 29-Mar-2010 Daniel Lehmann <lehmannd@google.com> am 7eeb9c23: am 3e9032e6: Merge "Increase name-label height so that "g" isn\'t cut off anymore. Decrease header height so that no resizes are required after background loading for most contacts Bug:2542703 Bug:2549485" into froyo
7eeb9c2382153a6c95bf9b976eebd44c5ddaa0f2 29-Mar-2010 Daniel Lehmann <lehmannd@google.com> am 3e9032e6: Merge "Increase name-label height so that "g" isn\'t cut off anymore. Decrease header height so that no resizes are required after background loading for most contacts Bug:2542703 Bug:2549485" into froyo

Merge commit '3e9032e646c898a725c256c90031494cc349eea0' into kraken

* commit '3e9032e646c898a725c256c90031494cc349eea0':
Increase name-label height so that "g" isn't cut off anymore. Decrease header height so that no resizes are required after background loading for most contacts
31f805ac2fc2c7779ab347fb4f5cf20dacb9c75e 27-Mar-2010 Dianne Hackborn <hackbod@google.com> am 54ca402c: am 4c8a63ca: Merge "Fix issue #2538228: Intents targeting browsers constantly nagging" into froyo
54ca402c25d0e789f3e596012be9b35c119056e1 27-Mar-2010 Dianne Hackborn <hackbod@google.com> am 4c8a63ca: Merge "Fix issue #2538228: Intents targeting browsers constantly nagging" into froyo

Merge commit '4c8a63ca4d4ac18f593fd9c235f18ba1f691eef7' into kraken

* commit '4c8a63ca4d4ac18f593fd9c235f18ba1f691eef7':
Fix issue #2538228: Intents targeting browsers constantly nagging
d07950f0a18afb32a5ef418692ac63ea22505e14 27-Mar-2010 Daniel Lehmann <lehmannd@google.com> Increase name-label height so that "g" isn't cut off anymore. Decrease header height so that no resizes are required after background loading for most contacts
Bug:2542703
Bug:2549485

Change-Id: Ic2b88fd405043c2869610c9495bd4aa860b5c025
nternal/widget/ContactHeaderWidget.java
5ef402baafc4818ccdf2aaec5da9cf25dd1c0e12 27-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2538228: Intents targeting browsers constantly nagging

Some applications are setting the MIME type field for an http:
intent, which is technically wrong because the recipient opening
the URI will get the MIME type from the header. This was hitting
a bug when we compute the intent filter when setting the
preferred activity, where we have to set both the MIME type and
data URI for the intent filter. (For file: and content: URIs
only the MIME type is needed, since these can be opened directly
through ContentResolver so everyone is presumed to be able to
handle them.)

Change-Id: Ia7025e6859e9c90997bf56c2c80f225fca7a2007
nternal/app/ResolverActivity.java
966a8c78598bdba1e8993428b5b1eef4d97ae501 26-Mar-2010 Jim Miller <jaggies@google.com> Fix 2537999: Don't throw exception when SlidingTab has UNSPECIFIED specs

This is try to capture the case where we sometimes see UNSPECIFIED
MeasureSpec in SlidingTab. It should be OK as long as one of the dimensions
is constrained. The log event will give some indication of what's
going on when this happens.

This also fixes a bug where it was possible to not reset the mAnimating flag
in the Phone app.

Change-Id: Ibab1c944ec895a7c19d5a18cc67f6e4db716f685
nternal/widget/SlidingTab.java
16f1c787396a237f074d4b5103fe00d39a2377dc 26-Mar-2010 Dianne Hackborn <hackbod@google.com> am d49258fe: Fix issue #2544466: Car Home brightness icon comes and goes while phone is in car dock in FRE83

Merge commit 'd49258fed489bcd72a2b2a6ce3a3c38d4b2531e6' into kraken

* commit 'd49258fed489bcd72a2b2a6ce3a3c38d4b2531e6':
Fix issue #2544466: Car Home brightness icon comes and goes while phone is in car dock in FRE83
d49258fed489bcd72a2b2a6ce3a3c38d4b2531e6 26-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2544466: Car Home brightness icon comes and goes while phone is in car dock in FRE83

There was a really dumb bug that was causing us to not always apply
the new configuration. As a result of fixing this, there were new
glithes in the transition between car and regular mode, so further
work here to fix that. And since I was actually working during the
night and seeing night mode, I noticed how obnoxiously bright the
status bar is compared to the car home at night, so it now nicely
dims itself when we switch to the night config. Oh and in doing
that I also found and fixed a bug in dispatching config changes to
a window (where they wouldn't get dispatched if the window didn't
resize).

FINALLY... tweak the wallpaper enter/exit animations a bit to
make them a little smoother.

Change-Id: I4e062093cbcfbc919307799a794846db2920216f
nternal/app/DisableCarModeActivity.java
629520527efe5f404b64e95aff01a81886e55eb3 18-Mar-2010 Daniel Sandler <dsandler@google.com> Redesigned keyguard layout in the no-SIM case. DO NOT MERGE

The emergency call button has been removed (since the user
can disable the keyguard, open the phone app, and enter the
emergency number there).

AM/PM have also been baseline-aligned with the clock.

Bug: 2421380
Change-Id: I3fb25a29e02f3e2ee2b1505a8765d53ccceb1372
nternal/widget/DigitalClock.java
1026f4850bce9b2bd4fa34f487d2c2d9f9c70691 26-Mar-2010 Mike Lockwood <lockwood@android.com> Merge "Call LocationManager.sendNiResponse() instead of calling directly to GpsLocationProvider"
ffc3f8f40c7eff0bc3bb43f74a1a0e9235acb258 18-Mar-2010 Mike Lockwood <lockwood@android.com> Call LocationManager.sendNiResponse() instead of calling directly to GpsLocationProvider

Change-Id: I190fb70a608539f77080db64be1bd5b8dc8519e3
Signed-off-by: Mike Lockwood <lockwood@android.com>
nternal/app/NetInitiatedActivity.java
54df9de49454a5b403f87d6b8aa6746b7b2c47a5 18-Mar-2010 Daniel Sandler <dsandler@google.com> Redesigned keyguard layout in the no-SIM case.

The emergency call button has been removed (since the user
can disable the keyguard, open the phone app, and enter the
emergency number there).

AM/PM have also been baseline-aligned with the clock.

(Requires I46a78c700427d769da6f7f2d3e9f419c2a921a61)

Bug: 2421380

Change-Id: I07bfc0f1c5b3f0e10b8cb72768848251439e19dd
nternal/widget/DigitalClock.java
3d31bb111a5f4052e189722d73bbfc61bf474288 26-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2544466: Car Home brightness icon comes and goes while phone is in car dock in FRE83

There was a really dumb bug that was causing us to not always apply
the new configuration. As a result of fixing this, there were new
glithes in the transition between car and regular mode, so further
work here to fix that. And since I was actually working during the
night and seeing night mode, I noticed how obnoxiously bright the
status bar is compared to the car home at night, so it now nicely
dims itself when we switch to the night config. Oh and in doing
that I also found and fixed a bug in dispatching config changes to
a window (where they wouldn't get dispatched if the window didn't
resize).

FINALLY... tweak the wallpaper enter/exit animations a bit to
make them a little smoother.

Change-Id: I234458f6081ec021311ee04c247931eabcf0447c
nternal/app/DisableCarModeActivity.java
0d3b202bdedcdd692d96e53303bc5168d39a07e1 26-Mar-2010 Dianne Hackborn <hackbod@android.com> Merge "Fix Memory Leak When Switching Input Methods"
cd70988401be5919e8d1889727bb01c91d56627c 26-Mar-2010 Jim Miller <jaggies@google.com> Fix 2535700: Add support for enforcing password quality

In addition, this change removes old lockpattern constants which were set
to DevicePolicyManager constants anyway.

Change-Id: I05f7f50ca099f4bd87a2d8e1d6dd2bc6f3a2b139
nternal/widget/LockPatternUtils.java
85f2c9ce5a0e074df2429a5d66e1754e368a0430 22-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2530103: ActivePassword data in Device Policy Manager needs to be persisted

Also fixes how the quality vs. mode is handled to be more consistent, which also
required introducing a new "alphabetic" quality since it is possible for the user
to enter such a password.

The current password quality and length is stored in the DPM, since at boot it
couldn't figure this out from the stored password.

Change-Id: I519d9b76dd0b4431bcf42920c34dda38c9f1136e
nternal/widget/LockPatternUtils.java
4cee725b1fd3958d850fc83214797f76d5f6b468 19-Mar-2010 Christopher Tate <ctate@google.com> Use atomic++ rather than lock/++/unlock in the input dispatch code path

Decouples the input dispatch thread from the battery-stats object lock regime,
to avoid the possibility of ever blocking the input dispatch thread on its
behalf. The stats object is widely used and can sometimes be locked for a
very long time (on the order of seconds) during certain extensive dump
operations.

This change does not alter the data format of the battery stats' externalized
representations.

Fixes bug #2530346

Change-Id: Iee288be3bf4936641b532dceecb8f6de8f552bf0
nternal/os/BatteryStatsImpl.java
379232c8f5c9faacfcb097b44930dde9a042b1bc 19-Mar-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2512131: Trackball goes up when moving"
7d9af5ae762c59e879a86e77dcb330856774bc09 19-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2512131: Trackball goes up when moving

Change-Id: Ib403de88f24bc1b6e5417732e3b69f89a5160bbc
nternal/widget/PointerLocationView.java
1afd1c90ebe789b8d3a137004127a50d2db7e3b5 19-Mar-2010 Dianne Hackborn <hackbod@google.com> Maybe fix issue #2457218: Corrupt batterystats.bin file preventing phone boot - LIBtt68127

No steps to repro, but makes the code more robust by using the standard
JournaledFile class and doing sanity checks on the input it reads.

This required moving the JournaledFile class in to the framework (and
we really should get rid of either it or AtomicFile, but they have
different recovery semantics so that is tough). Also went through and
cleaned up the file management in various places.

Change-Id: Ieb7268d8435e77dff66b6e67bb63b62e5dea572e
nternal/backup/LocalTransport.java
nternal/os/AtomicFile.java
nternal/os/BatteryStatsImpl.java
nternal/util/JournaledFile.java
e7be6a85da5be32348f4e83ede195477a7ec1790 19-Mar-2010 Wink Saville <wink@google.com> Allow transitionTo in enter/exit.

bug: 2435366
Change-Id: Id15c5e2cca49ced5ebbda24887f8c490e717f101
nternal/util/HierarchicalState.java
nternal/util/HierarchicalStateMachine.java
d5ed7c787ff20258090ed459f1d64f6cf41544a7 18-Mar-2010 Joe Onorato <joeo@android.com> Merge "fix 2517656 Pin/Password Unlocks place focus on the launcher screen when they shouldn't"
16537757decfa09374852f2361b63a8738b67601 18-Mar-2010 Joe Onorato <joeo@android.com> fix 2517656 Pin/Password Unlocks place focus on the launcher screen when they shouldn't

PasswordEntryKeyboardHelper now sets the FLAG_KEEP_TOUCH_MODE flag for the events
so that the last event we process from the soft keybaord doesn't exit touch mode
and we don't erroneously go into non-touch mode since the on-screen button pressing
left us in touch mode.

Change-Id: Id2546ec3bc4b337aedb5e925de0c709ce62ea059
nternal/widget/PasswordEntryKeyboardHelper.java
d3dd518baf87f06a571e56d9a127b043cf719e23 18-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Add new install flag to install on internal flash only Change default install location policy for new flag. New error code for media unavailable."
14b6abda1309631d49d4bebbb0317a7e1dfc0a50 17-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Add new install flag to install on internal flash only
Change default install location policy for new flag.
New error code for media unavailable.

Change-Id: I5a5d0828b067692b2b94a15a2bcc7534f796c1a2
nternal/app/IMediaContainerService.aidl
91fbd56757751a7aca8ef2b4d936e587509e6eef 18-Mar-2010 Wink Saville <wink@google.com> Add additional sendMessage methods.

To simplify sending messages add sendMessage methods that take
what and obj as parameters.

Change-Id: Ib22d752eb3cb32fe3dfa8dd2e65915acec3e5db6
nternal/util/HierarchicalStateMachine.java
8a9ab24a5c9b595ac0268fcade4b5bbfe7c45c2d 12-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Do storage checks before initiating a move.
Add new remote method to check for insufficient error conditions.
Some fixes in MountService when updating media status on PackageManagerService
Fix size calculation condition in installd.

Add new error code if media is unavailable.
New tests for testing error codes.
Some additional debugging statements in MountService.

Change-Id: Ibfe90d5ed6c71d57f9c1c67806f38b5ae9ecdfbf
nternal/app/IMediaContainerService.aidl
nternal/content/PackageHelper.java
650e22ca3a97501e12f4befb80f2cd5b39ea78bc 16-Mar-2010 Adam Powell <adamp@google.com> Merge "Fix monkey bug 2512055"
22cb2f46fdbb9a904ac394f488278fb47e2d4734 16-Mar-2010 Adam Powell <adamp@google.com> Fix monkey bug 2512055

Don't blow up when there aren't any menu items to layout in IconMenuView.

Change-Id: Ief08f0f8ed89aec4959d4d80cfd066dbe92dc3aa
nternal/view/menu/IconMenuView.java
0cd57a44ea43ec146722774a3f7d623eb9c9cbb3 15-Mar-2010 Jeff Sharkey <jsharkey@android.com> Switch SelectionBuilder to accept Object[], fix NPE.

Change-Id: I8d6ef1b47d89e4fc643402075f0549f4c4277a0f
nternal/content/SelectionBuilder.java
b258659ad6f96779009222db73b844e93498a4a4 15-Mar-2010 Jim Miller <jaggies@google.com> Merge "Fix 2428368: Fix most of the lockscreen orientation refresh bugs"
a027c95e798d75de1165feebefb2df4d1c7c0927 13-Mar-2010 Jim Miller <jaggies@google.com> Fix 2428368: Fix most of the lockscreen orientation refresh bugs

This change removes the legacy notification of orientation and configuration changed events
from KeyguardUpdateMonitor and moves them into the individual activities. This was necessary
to guarantee order of events.

In addition, to minimize discrepencies due to notification lag, Keyguard screens (LockScreen,
PatternUnlock, etc.) are now responsible for handling onConfigurationChanged() notification and
forwarding them to LockPatternKeyguardView by a call to recreateMe() with the new configuration.

Change-Id: I703daf3e91bc6588e87c844a3ed3d259a6b8ecdf
nternal/widget/LockPatternUtils.java
f8d0f095e34f8d661ca5b7d555d8610272099bff 12-Mar-2010 Kenny Root <kroot@google.com> Add missing license notices to files

Change-Id: Ie46176940810bd5001f7650a381c1c3c90a3718b
nternal/widget/PointerLocationView.java
c9421ba1f46d9f9aeee833e1fde2cc263b058411 12-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2492387: system server crash in WallpaperManagerService

Also move some of the important framework error logs over to Slog.

Change-Id: If6697c3e4f18498612ebd7b0e4e4f042fd713372
nternal/os/RuntimeInit.java
15a4d2ffd04dc6c70f2cd17dae12ac6bc14c69ab 12-Mar-2010 Kenny Root <kroot@google.com> Add correct copyright headers to multiple files

Format for the list of changes shows the origin commit reference followed
by the file name.

33931-p9 awt/org/apache/harmony/awt/gl/font/AndroidGlyphVector.java
33931-p9 awt/org/apache/harmony/awt/gl/image/PngDecoderJava.java
133776-p9 core/java/android/app/IntentService.java
127013-p9 core/java/android/appwidget/AppWidgetHost.java
27863-p9 core/java/android/bluetooth/BluetoothAudioGateway.java
60765-p9 core/java/android/content/SyncResult.java
43920-p9 core/java/android/content/pm/ActivityInfo.java
43920-p9 core/java/android/content/pm/ApplicationInfo.java
43920-p9 core/java/android/content/pm/InstrumentationInfo.java
43920-p9 core/java/android/content/pm/PackageInfo.java
44103-p9 core/java/android/content/pm/PackageItemInfo.java
68960-p9 core/java/android/content/pm/PackageStats.java
43920-p9 core/java/android/content/pm/ResolveInfo.java
43920-p9 core/java/android/content/pm/ServiceInfo.java
60641-p9 core/java/android/content/res/Configuration.java
60734-p9 core/java/android/content/res/TypedArray.java
137672-p9 core/java/android/inputmethodservice/ExtractButton.java
123112-p9 core/java/android/inputmethodservice/ExtractEditText.java
119291-p9 core/java/android/inputmethodservice/IInputMethodSessionWrapper.java
112946-p9 core/java/android/inputmethodservice/IInputMethodWrapper.java
115078-p9 core/java/android/os/BatteryStats.java
124790-p9 core/java/android/text/style/UpdateAppearance.java
45083-p9 core/java/android/view/RawInputEvent.java
101491-p9 core/java/android/view/inputmethod/EditorInfo.java
114701-p9 core/java/android/view/inputmethod/ExtractedText.java
123112-p9 core/java/android/view/inputmethod/ExtractedTextRequest.java
119291-p9 core/java/com/android/internal/os/HandlerCaller.java
129279-p9 core/java/com/android/internal/os/PkgUsageStats.java
114701-p9 core/java/com/android/internal/view/IInputConnectionWrapper.java
114701-p9 core/java/com/android/internal/view/InputConnectionWrapper.java
84364-p9 opengl/java/android/opengl/EGLLogWrapper.java
11355-p9 opengl/tools/glgen/src/CFunc.java
11355-p9 opengl/tools/glgen/src/CType.java
11355-p9 opengl/tools/glgen/src/CodeEmitter.java
11355-p9 opengl/tools/glgen/src/GenerateGL.java
11355-p9 opengl/tools/glgen/src/JFunc.java
11355-p9 opengl/tools/glgen/src/JType.java
11355-p9 opengl/tools/glgen/src/JniCodeEmitter.java
11355-p9 opengl/tools/glgen/src/ParameterChecker.java
57236-p9 services/java/com/android/server/status/AnimatedImageView.java
66754-p9 services/java/com/android/server/status/CloseDragHandle.java
57188-p9 services/java/com/android/server/status/DateView.java
46928-p9 services/java/com/android/server/status/ExpandedView.java
70590-p9 services/java/com/android/server/status/FixedSizeDrawable.java
45968-p9 services/java/com/android/server/status/IconData.java
57470-p9 services/java/com/android/server/status/IconMerger.java
82719-p9 services/java/com/android/server/status/LatestItemView.java
45968-p9 services/java/com/android/server/status/NotificationData.java
66754-p9 services/java/com/android/server/status/NotificationLinearLayout.java
57458-p9 services/java/com/android/server/status/NotificationViewList.java
45968-p9 services/java/com/android/server/status/StatusBarException.java
45968-p9 services/java/com/android/server/status/StatusBarIcon.java
46130-p9 services/java/com/android/server/status/StatusBarNotification.java
45968-p9 services/java/com/android/server/status/StatusBarView.java
46199-p9 services/java/com/android/server/status/Ticker.java
62286-p9 services/java/com/android/server/status/TickerView.java
57188-p9 services/java/com/android/server/status/TrackingView.java
86041-p9 telephony/java/android/telephony/PhoneStateListener.java
87020-p9 telephony/java/com/android/internal/telephony/TelephonyIntents.java
136269-p9 telephony/java/com/android/internal/telephony/gsm/SpnOverride.java
34409-p9 tests/FrameworkTest/src/com/android/frameworktest/FrameworkTestApplication.java
55717-p9 tests/FrameworkTest/src/com/android/frameworktest/performance/InvalidateCycle.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/AutoCompleteTextViewActivityLandscape.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/AutoCompleteTextViewActivityPortrait.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityNonScrollablePanScan.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityNonScrollableResize.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityScrollablePanScan.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityScrollableResize.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/BottomEditTextActivityPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/BottomEditTextActivityResize.java
127341-p9 tests/ImfTest/src/com/android/imftest/samples/ButtonActivity.java
129347-p9 tests/ImfTest/src/com/android/imftest/samples/DialogActivity.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/EditTextActivityDialog.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityNoScrollPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityScrollPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityScrollResize.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/OneEditTextActivityNotSelected.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/OneEditTextActivitySelected.java
25959-p9 tests/framework-tests/src/android/test/FrameworkTests.java
46162-p9 tests/framework-tests/src/com/android/internal/http/multipart/MultipartTest.java
77101-p9 tools/layoutlib/bridge/tests/com/android/layoutlib/bridge/NinePatchTest.java
9788976b1465ce982b5ae7c741345edd0ecd9322 core/java/android/accounts/AuthenticatorDescription.java
53332883543868fb83e111a07306368b7772b340 core/java/android/app/UiModeManager.java
93e7e22ec91dbc641d10ca6d70423e1357a95bba core/java/android/app/FullBackupAgent.java
328c0e7986aa6bb7752ec6de3da9c999920bb55f core/java/android/content/CursorEntityIterator.java
307da1a46b4c9b711bafe8fbaaa6b98e8868c18e core/java/android/content/SyncQueue.java
307da1a46b4c9b711bafe8fbaaa6b98e8868c18e core/java/android/content/SyncOperation.java
eb034652c2037a47ebfd99779e8383bb8bb528af core/java/android/content/pm/LabeledIntent.java
49237345d83e62fdb9eb8d50b13ad086636a04fa core/java/android/content/pm/FeatureInfo.java
a2b6c3775ed6b8924232d6a01bae4a19740a15f8 core/java/android/content/pm/PackageInfoLite.java
3ecd5f437580e49d80beecd29489d5fb1f7a7db0 core/java/android/content/pm/RegisteredServicesCacheListener.java
5ebbb4a6b3e16f711735ae0615b9a9ea64faad38 core/java/android/content/pm/XmlSerializerAndParser.java
c4516a7b62de525e3d6d5e76851bdfaf12c11f05 core/java/android/database/sqlite/SQLiteTransactionListener.java
9bbc21a773cbdfbef2876a75c32bda5839647751 core/java/com/android/internal/backup/LocalTransport.java
21f1bd17b2dfe361acbb28453b3f3b1a110932fa core/java/com/android/internal/content/PackageMonitor.java
4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 core/java/com/android/internal/view/BaseSurfaceHolder.java
4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 core/java/com/android/internal/view/BaseIWindow.java
e540833fdff4d58e37c9ba859388e24e2945ed45 core/java/com/android/internal/os/SamplingProfilerIntegration.java
192ab903887bbb8e7c7b6da5c581573850e30f46 core/tests/coretests/src/android/widget/expandablelistview/PositionTesterContextMenuListener.java
1619367ab823150fa8856d419abe02ceb75886f1 media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaProfileReader.java
27f8002e591b5c579f75b2580183b5d1c4219cd4 opengl/tools/glgen/stubs/gles11/glGetString.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glGetProgramInfoLog.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glGetShaderInfoLog.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glShaderSource.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/GenerateGLES.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/Jsr239CodeEmitter.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/GLESCodeEmitter.java
69e21f5f6e0d04539cd92848ea009dd615d88c2c opengl/tests/gldual/src/com/android/gldual/TriangleRenderer.java
c028be4f3b8c7476b46859f66c3f33d528adf181 packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerMeasurement.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerTestActivity.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerTestRunner.java
df8a3f31d871db25e952972c2eb346a71186e9e3 tests/BrowserTestPlugin/src/com/android/testplugin/TestPlugin.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/ActivityManagerPermissionTests.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/ServiceManagerPermissionTests.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java

Copyright header moved to top in following file:

core/tests/coretests/src/android/widget/ListViewTest.java

Change-Id: I3c3198be5a0ba36e18679ed834170432bf0b8418
nternal/backup/LocalTransport.java
nternal/content/PackageMonitor.java
nternal/os/HandlerCaller.java
nternal/os/PkgUsageStats.java
nternal/os/SamplingProfilerIntegration.java
nternal/view/BaseIWindow.java
nternal/view/BaseSurfaceHolder.java
nternal/view/IInputConnectionWrapper.java
nternal/view/InputConnectionWrapper.java
c9b21c1a5358446fe1ba28fdf06fe6f9fbdd091e 12-Mar-2010 Kenny Root <kroot@google.com> Add copyright header for new file

Change-Id: I441c4e002eb8729e7e0ae7a2ab6a38d5dffa0049
nternal/view/WindowManagerPolicyThread.java
26b1ef95833665fb83195caad010566c8a9e0199 12-Mar-2010 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #2461567: Home screen redraw messed up"
ac3587d7ced544091264a35249dbd3f9531a3cab 11-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2461567: Home screen redraw messed up

Make sure that we have a window redraw itself after resizing its
surface.

Also includes a little optimization to avoid having an extra thread
for the ImageWallpaper.

Change-Id: I88d1eb66e3116077f48e6f9086a5b6459505ef69
nternal/service/wallpaper/ImageWallpaper.java
nternal/view/WindowManagerPolicyThread.java
f0f566ec4607376583e59964a6a8a6dcb0265c20 11-Mar-2010 Wink Saville <wink@google.com> Ignore instead of throw errors in QuittingState and reorder some parameters.

Since there could be an arbitrary number of messages in
the queue but Handler/Looper/MessageQueue do not provide
any mechanism for removing "all" messages the best we can
do is ignore. Throwing an error is probably too heavy.

Change-Id: I13c81ac5786484f5b3218885b010de596d943975
nternal/util/HierarchicalStateMachine.java
1b8b98b3db5dcf0b01d1a632aafea076cc91f5a4 11-Mar-2010 Wink Saville <wink@google.com> Add quit and fix HSM EBNF.

Add support for quiting the looper and stopping a thread.

Allow enter/exit at top or bottom of a STATE EBNF.

Fix missing brace in MSG_LIST.

Change-Id: Iddf5ce908008933bf8f0646e844254183da3d1f3
nternal/util/HierarchicalStateMachine.java
089262dc022d87e31eefc536025be6c015c7ebde 10-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Dont include code size for apps on sdcard.
Use constants defined in PackageHelper for user preferences
to install auto, internal, external.
Set default install location to external.
Update settings db version number

Change-Id: Ib5110c9377990e20a48cee923e55898dfddfd1e6
nternal/content/PackageHelper.java
fe62d04c30e7b3abe408b56c7744c7f547c57640 09-Mar-2010 Jeff Sharkey <jsharkey@android.com> Helper for combining multiple selection/selectionArgs.

Change-Id: I08eb082149a2a3e45ab00b81a3f46825ad52188d
nternal/content/SelectionBuilder.java
17bc415ded862bc0a5f70ee2f7259f34d3491a17 09-Mar-2010 Mike Lockwood <lockwood@google.com> Merge "Add new shutdown observer for MountService. Use new observer before rebooting and shutting down. Add some unit tests for unmount and shutdown code paths Fix registering/unregistering part in MountService Use ShutdownThread in PowerManager.reboot() Add reboot support to ShutdownThread. Remove MountService code from PowerManagerService.java and Power.java. Clean shutdown/reboot is handled exclusively by ShutdownThread now."
6ffce2e9a3c57634bb73f8ff133ca680f8070d5d 08-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Add new shutdown observer for MountService.
Use new observer before rebooting and shutting down.
Add some unit tests for unmount and shutdown code paths
Fix registering/unregistering part in MountService
Use ShutdownThread in PowerManager.reboot()
Add reboot support to ShutdownThread.
Remove MountService code from PowerManagerService.java and Power.java.
Clean shutdown/reboot is handled exclusively by ShutdownThread now.

Change-Id: Iefb157451d3d9c426cb431707b870a873c09123d
nternal/app/ShutdownThread.java
a2b6c3775ed6b8924232d6a01bae4a19740a15f8 06-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Add conditions to check for updated system applications. Restrict them
to internal flash only even before we copy.

Return error codes when install flag options mismatch.
Some conditions for existings apps
- install flags override existing location
- explicity manifest option install location overrides previous location
- if upgraded package's install location is unspecified or auto, fall
back to recommended install policy which considers user setting as well.

Check for sdcard status before finding available size on sdcard
Add light weight parsing for manifest attributes including package name and
install location only

Change-Id: I5143dda87c88c595f564b317326c926d0ec3ceb8
nternal/app/IMediaContainerService.aidl
nternal/content/PackageHelper.java
c4e26a5c99b261c956b9b47ab11217b20f539df8 09-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Showing phonetic name in the contact header."
2509d3c11fa247d37d023e32411e6dad15d85b85 08-Mar-2010 Dianne Hackborn <hackbod@google.com> Clear active password in device admin when password is cleared.

Fixes issue #2480213: DevicePolicyManagerService returning true
for isActivePasswordSufficient even though the current password
on the device is not sufficient.

Change-Id: I3cb11311d8696670726d969712a63a7c00cd1ce4
nternal/widget/LockPatternUtils.java
aeae357f6399aee68fb7a60e1a38b82c0062711c 09-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Showing phonetic name in the contact header.

Change-Id: I83f608ddf3a01ba6c29687f9e78212800e4ad4b1
nternal/widget/ContactHeaderWidget.java
156c43545529fb3d731ffdd9c4514d38758e3f06 06-Mar-2010 Amith Yamasani <yamasani@google.com> Move lockscreen settings to secure table to prevent tampering. b/2343673

Migrate old settings to secure on upgrade.
nternal/widget/LockPatternUtils.java
f99ae76533119f9fef111abef17a3a8fcb8f12a5 08-Mar-2010 Dianne Hackborn <hackbod@google.com> Hold wake lock while shutting down.

It is nicer to make sure the screen stays on while we are shutting
down, so the screen goes off when we are actually complete rather
than some time before.

Change-Id: I8725ac9884df6d21344f35288da3e375d9779b3b
nternal/app/ShutdownThread.java
4528186e0d65fc68ef0dd1941aa2ac8aefcd55a3 06-Mar-2010 Christopher Tate <ctate@google.com> Refactor android.backup => android.app.backup

Change-Id: I0b21316ff890d7f3c7d4b82837bb60670724c2e8
nternal/backup/IBackupTransport.aidl
nternal/backup/LocalTransport.java
e7085e909d0c7f58a160b2730ff06aca085dfd6b 04-Mar-2010 Robert Greenwalt <robdroid@android.com> Update framework tethering UI

Getting rid of notification dialog - maybe the entire TetherActivity.
Also getting rid of toasts - to ephemeral.
nternal/app/TetherActivity.java
5a73506cdd466f2b96686ced3ff0f7ca224d1143 03-Mar-2010 Robert Greenwalt <robdroid@android.com> Add error reporting for Tethering.

Also make the usb interface configuration more robust so retries are possible.

Makes all Tethering errors recoverable - no harm letting them try again anyway. Worst case
is they need to reboot.
nternal/app/TetherActivity.java
9b10ef5fe85e9d29721ff0cd15161f960d38a8db 03-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Rework the way PackageManager binds to default container service.

Clean up stale containers when enabling/disabling packages on sdcard.
Check the path of packages which are being enabled.
Make sure gc's are done prior to destroying containers when moving applicati
as well as enabling/disabling packages for sdcard mount status changes.

Some miscellaneous issues
Remove hack to avoid renaming containers.
Fix test with forward locked apps
Remove adding container id to asec list when renaming
Some cosmetic changes to DefaultContainerService
nternal/content/PackageHelper.java
829778843cf459384841f9f4ecafe862b6228d6e 02-Mar-2010 Dianne Hackborn <hackbod@google.com> Move the pointer location thing out of common.
nternal/widget/PointerLocationView.java
a3afae33b7458177f04157268b59c74ba9b56366 01-Mar-2010 Dave Sparks <davidsparks@android.com> Merge "Stop previous ringtone when silent is selected. Bug 2256593."
87bba1ee14279bb14a28d42e27c4ef66d9967bf8 27-Feb-2010 Dianne Hackborn <hackbod@google.com> Move DeviceAdmin APIs to android.app.admin.

Also add ability for admins to hide themselves when not in use,
a facility for admins to not allow other admins to reset
their password, and debug dumping.
nternal/widget/LockPatternUtils.java
370dd39132bf64f2a0703969a110c0d3b136c6eb 27-Feb-2010 Dave Sparks <davidsparks@android.com> Stop previous ringtone when silent is selected. Bug 2256593.
nternal/app/RingtonePickerActivity.java
69ac9887459a65a0eebc6f9c450a5b6c2313d713 25-Feb-2010 Jim Miller <jaggies@google.com> Fix 2336057: Provide a way for the user to return to a call from LockScreen.

This makes the "Emergency call" button dual-purpose. If there's a call in progress,
the button will show "Return to call" and take the user back to the call.
nternal/widget/LockPatternUtils.java
2269d1572e5fcfb725ea55f5764d8c3280d69f6d 25-Feb-2010 Dianne Hackborn <hackbod@google.com> Re-arrange android-common so framework no longer links with it.

This is the framework part, moving classes around so the framework
no longer needs to link to android-common. Makes some APIs public,
others that didn't need to be public are private in the framework,
some small things are copied.
nternal/net/DNParser.java
nternal/net/DomainNameValidator.java
nternal/os/PowerProfile.java
nternal/util/FastXmlSerializer.java
nternal/util/XmlUtils.java
ee74858f1f68a915ab42b89a258ff1e7eff47b06 25-Feb-2010 Fred Quintana <fredq@google.com> make the SyncStateContentProviderHelper.update() method return an indication if the row to update still exists
nternal/content/SyncStateContentProviderHelper.java
d70a3d4e2d356aab4cac313f1f9d8272a5e3e8d0 24-Feb-2010 Robert Greenwalt <robdroid@android.com> Tethering improvements.

Changes due to comments.
Fixing Tether teardown.

bug:2422545
nternal/app/TetherActivity.java
cf6eaeaae9e6745dd6e07540812c79821d7043c2 24-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Some framework fixes for apps on sd
change hard coded path in installd
fix tests
Work around for renaming containers.
Do forced unmount when destroying containers.
Force a gc in default container service to release handle to parsed package
and thus avoid getting killed by vold
Some cosmetic changes to PackageManager api.
Unit tests for renaming container for MountService
Remove internal size limit on app to be installed.
nternal/content/PackageHelper.java
0c33ed2992b2eb484c229fd3322df14d97c10caa 23-Feb-2010 Devin Taylor <devin.taylor@garmin.com> Fix Memory Leak When Switching Input Methods

Fixes a memory leak when input methods are switched. Uses a variety of methods
to avoid holding a reference to the InputMethodService which created the binders,
which was leaking those InputMethodServices.

See http://code.google.com/p/android/issues/detail?id=6661 for reproduction steps.
nternal/view/IInputMethodSession.aidl
5b0fb3a7e8070ed366a85acc1904d2f34030445d 23-Feb-2010 Jim Miller <jaggies@google.com> Fix 2463886: Allow delayed fetching of DevicePolicyManager in LockPatternUtils.

Today we're seeing a crash that's likely caused by a change in the order in which
system services start.

The crash we're seeing happens in response to user interaction which happens after the
boot process completes, so we should re-fetch the DevicePolicyManager if we weren't
able to get it when LockPatternUtils was constructed.
nternal/widget/LockPatternUtils.java
9e0f5d9a63ba88c2bf69df0557f8c9696db370c4 23-Feb-2010 Dianne Hackborn <hackbod@google.com> Fix some random bugs.

2185256: After open &close of device keyboard shortcut does not added to Home desktop.

ActivityThread was losing the last saved state when restarting or launching into
a paused state.

2366174: defaults not cleared when they should be

PackageManagerService now removes any preferred activity records for a package
when it is uninstalled.

2154556: Battery stats can have an unbounded number of wake locks

We now start combining wake locks into one shared record when we hit a
maximum limit (currently 20).

2442519: Foreground services can have no notification by providing a bogus one.

If the notification manager rejects our notification, the service is forced to
no longer be in the foreground.

2442383: Finalization issues in com.android.server.am.PendingIntentRecord.java

Cleaned up finalization to call super class and avoid the big activity manager
lock (we still need to use the locks inside of the message system, but these
are much less likely to be a problem).

2284190: Cannot call a phone number using adb

We weren't getting the calling uid/pid in startActivity() if the caller did not
supply an application record.
nternal/os/BatteryStatsImpl.java
17b7d97d7159da265d016a842c6319bd22b361d0 22-Feb-2010 Romain Guy <romainguy@google.com> Merge "Fix bug where calling getButton(int) returns null."
6fe2b22085864b8f6bb6c59ecc0a12c6c4253309 22-Feb-2010 Romain Guy <romainguy@android.com> Fix bug where calling getButton(int) returns null.

Fixes external bug http://code.google.com/p/android/issues/detail?id=6360
nternal/app/AlertController.java
21f1bd17b2dfe361acbb28453b3f3b1a110932fa 20-Feb-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2438980: Implement package watcher for voice recognizer service setting

I am getting tired of writing package monitor code, realized this is missing in
a number of places, and at this point it has gotten complicated enough that I
don't think anyone actually does it 100% right so:

Introducing PackageMonitor.

Yes there are no Java docs. I am still playing around with just what this
thing is to figure out what makes sense and how people will use it. It is
being used to fix this bug for monitoring voice recognizers (integrating the
code from the settings provider for setting an initial value), to replace
the existing code for monitoring input methods (and fix the bug where we
wouldn't remove an input method from the enabled list when it got
uninstalled), to now monitor live wallpaper package changes (now allowing
us to avoid reverting back to the default live wallpaper when the current
one is updated!), and to monitor device admin changes.

Also includes a fix so you can't uninstall an .apk that is currently enabled
as a device admin.

Also includes a fix where the default time zone was not initialized early
enough which should fix issue #2455507 (Observed Google services frame work crash).

In addition, this finally introduces a mechanism to determine if the
"force stop" button should be enabled, with convenience in PackageMonitor
for system services to handle it. All services have been updated to support
this. There is also new infrastructure for reporting battery usage as an
applicatin error report.
nternal/content/PackageMonitor.java
281a80da143a977046e5b9f65afc85c7fb0b6d25 19-Feb-2010 Jim Miller <jaggies@google.com> Fix 2448345: Fix tactile feedback bug in password/PIN and pattern unlock.
nternal/widget/PasswordEntryKeyboardHelper.java
e36d6e277e49475076b7872d36ea6a5c5b996e9d 18-Feb-2010 Dianne Hackborn <hackbod@google.com> Work on issue #2263557: PMF3000 showing hybrid of portrait and landscape modes

This is a bunch of reworking of how configuration changes are handled:

- When orientation is changing (for whatever reason), the window manager no
longer tries to pre-emptively compute a new configuration. Instead, it
just determines change is happening and tells the window manager.
- The activity manager is now responsible for giving the window manager the
final configuration it is using. This is both so it knows whem the
activity manager is done with its configuration updates, and so the window
manager can use the "real" configuration.
- When an orientation or other configuration change is happening, freeze the
screen and keep it frozen until the activity manager has given us the
final configuration.
- The window manager can now send new configurations to its clients during
its layout pass, as part of a resize, if it has determined that it has
changed. This allows for a new View.onConfigurationChanged() API for any
view to easily find out when the configuration has changed.
- ViewRoot now also works with the activity thread to make sure the process's
current resources are updated to the new configuration when it receives one
from a window. This ensures that at the time onConfigurationChanged() and
other view callbacks are happening, the correct configuration is in force.
- There is now a sequence number associated with Configuration, which
ActivityThread uses to avoid using stale configurations. This is needed now
that it can receive configurations asynchronously from both the window
manager and activity manager.
- The hack for keeping the locale has been removed, and underlying problem
fixed by having Configuration initialize its locale to "unknown" instead of
a valid default value.
nternal/view/BaseIWindow.java
d970998b0d489774ad1c5b94b47d233912f00214 18-Feb-2010 San Mehat <san@google.com> framework: storage: Add 'force' option to unmount/destroy storage apis, and update callsites.

Also adds additional storage unit tests

Signed-off-by: San Mehat <san@google.com>
nternal/content/PackageHelper.java
154f7a1cc2d4f0468a7cc8dfa36e837c84cd9f7e 17-Feb-2010 Tobias Haamel <haamel@google.com> Show car mode notification in status bar.

The notification is an ongoing event and can be used to get out of car mode.
nternal/app/DisableCarModeActivity.java
6a6ce74e5972f189004340af97c77aa7631478ee 17-Feb-2010 Robert Greenwalt <robdroid@android.com> Merge "Update Tethering."
2a091d7aa0c174986387e5d56bf97a87fe075bdb 12-Feb-2010 Robert Greenwalt <robdroid@android.com> Update Tethering.

Adds telephony support, async model, multiple tethered iface suport,
better notifications, device config.

bug:2413855
nternal/app/TetherActivity.java
nternal/util/HierarchicalStateMachine.java
679bba339ef6948091180c776d6a284cddd812f5 16-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Move mount service wrapper calls to PackageHelper

Fix bug related to forward locked apps.
nternal/content/PackageHelper.java
642b7c0f1964389ed0b049df275c7b4daaf35b7a 16-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Include install location preference when installing packages. Changes include Add new remote call in default container service to determine install location. Rename INSTALL_ON_SDCARD Remove recommentAppInstall method Add some additional flags used in remote stubs. Move check for protected apps prior to copy. Unit tests"
1c9131c91f27c8258dfad0a92cee105275f5422a 13-Feb-2010 Dan Egnor <egnor@google.com> Remove all traces of the old checkin service (and its associated parental
control interfaces) from the framework.
nternal/os/RuntimeInit.java
5b993ce7bc29e43a3215a50ce6ce5d6550d4e5e2 12-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Include install location preference when installing packages.
Changes include
Add new remote call in default container service to determine
install location.
Rename INSTALL_ON_SDCARD
Remove recommentAppInstall method
Add some additional flags used in remote stubs.
Move check for protected apps prior to copy.
Unit tests

DefaultContainerService first parses the file uri(if content uri is specified
it returns a default install internal only value) and returns
a recommended location. Based on which the temporary id is determined
either a file name or a container id and the file is copied there.
This is then later renamed during install.
Todo's light weight parsing of package when determining location since we
just need the install location attribute only when finding out
recomended location. This will also enable to move the check for
updated system apps(cannot be on sdcard) prior to copying.
nternal/app/IMediaContainerService.aidl
nternal/content/PackageHelper.java
ec52eedc2ceb623b503f6b82eb560c0e9a6e4619 12-Feb-2010 Jim Miller <jaggies@google.com> Fix 2438785: Add missing key code to landscape keyboard and fix log spew.
nternal/widget/PasswordEntryKeyboard.java
575c6710a38f608aca2c25e7784674a47d18a871 11-Feb-2010 Jim Miller <jaggies@google.com> Merge "Fix 2373088: Cleanup and minor fixes to PasswordKeyboard*."
23085b781e145ed684e7270af1d5ced6800b8eff 09-Feb-2010 Ben Cheng <bccheng@android.com> Support per-application switch to execute the VM in safe mode.

The new attribute can be set by adding android:safeMode="true"
in AndroidManifest.xml with the SDK.

Tested with pairing locally compiled SDK with Eclipse and verified that the JIT
(the only component currently included in the safe mode) is indeed disabled
with the new attribute.

Bug: 2267583
nternal/os/ZygoteConnection.java
280b6023cb77be1cd18f20c0c6a169eba1ed35dc 10-Feb-2010 Jim Miller <jaggies@google.com> Fix 2373088: Cleanup and minor fixes to PasswordKeyboard*.
nternal/widget/PasswordEntryKeyboard.java
nternal/widget/PasswordEntryKeyboardHelper.java
nternal/widget/PasswordEntryKeyboardView.java
4154c07c5cabc74029a2df379075391d782a682c 10-Feb-2010 San Mehat <san@google.com> StorageNotification: Move notification / usb storage activity into StatusBarPolicy

Signed-off-by: San Mehat <san@google.com>
nternal/app/StorageNotification.java
nternal/app/UsbStorageActivity.java
b104340496e3a531e26c8f428c808eca0e039f50 05-Feb-2010 San Mehat <san@google.com> Framework: Clean up / Refactor Mount APIs

- Move android.storage.* -> android.os.storage.* and refactor users
- Refactor generic shares back to explicit ums enable/disable/isEnabled
- Remove media insert/removed event callbacks (not ready for Froyo)
- Remove 'label' from volume state change callbacks
- Add public API functions for enabling/disabling USB mass storage (permissions enforced
in MountSevice)
- Remove some stray un-needed import lines
- Move android.os.IMountService / android.os.IMountServiceListener -> android.os.storage
- Improve code comments

Updated:
MountService: Add dup state check and move debugging behind a conditional
UsbStorageActivity: Fix review comments + a TODO
StorageNotification: Add @Override tags
StorageManager: Don't use a static Listener list
MountService: Reduce bloat and fix == where I meant .equals()
PackageManagerTests: Update for new API

Signed-off-by: San Mehat <san@google.com>
nternal/app/ExternalMediaFormatActivity.java
nternal/app/NetInitiatedActivity.java
nternal/app/ShutdownThread.java
nternal/app/StorageNotification.java
nternal/app/TetherActivity.java
nternal/app/UsbStorageActivity.java
64e6a45ed45e0d096a1490408ee1cab2a4626950 05-Feb-2010 San Mehat <san@google.com> StorageNotification: Add general storage notification for UMS/Storage events

Signed-off-by: San Mehat <san@google.com>
nternal/app/StorageNotification.java
0b31970cac04259a6e20dfc6d6e42cd9532528e3 06-Feb-2010 Jim Miller <jaggies@google.com> Fix 2402303: Split Keyboard widget from LatinIME into reusable PasswordEntryKeyboardView

- Added new PasswordEntryKeyboardView to internal/widgets. Widget supports:
- alpha mode with symbols (latin-1 only).
- a numeric keyboard
- IME emulation that applies keyboard input to arbitrary top-level view widget.
- Added new transparent assets to framework resources.
- Modified Keyguard and Keyguard layouts to use new PasswordEntryKeyboardView.
nternal/widget/PasswordEntryKeyboard.java
nternal/widget/PasswordEntryKeyboardHelper.java
nternal/widget/PasswordEntryKeyboardView.java
d60d3742abe4e6c51681276713bbd68a3e21f04e 05-Feb-2010 Romain Guy <romainguy@android.com> Fix dialogs to occupy more space.
nternal/widget/WeightedLinearLayout.java
d0e18ffb82b59d38aeaf0e552f48e734202719ab 26-Jan-2010 Robert Greenwalt <robdroid@android.com> First pass at USB Tethering.

bug:2281900
nternal/app/TetherActivity.java
8321eb377f6fbff87c677b59340cc0bc23775501 03-Feb-2010 Mike Chan <mike@android.com> Merge "BatteryStatsImpl: initalize audio timer"
ec7f7e6378f87cdc826a8b5d836fff26f44b0b09 29-Jan-2010 San Mehat <san@google.com> UsbStorageActivity: Refactor for new MountService API

Signed-off-by: San Mehat <san@google.com>
nternal/app/UsbStorageActivity.java
18d200fd2aa26e4c9b6ca7c38bb5fd6b81e40259 02-Feb-2010 Mike Chan <mike@android.com> BatteryStatsImpl: initalize audio timer

Signed-off-by: Mike Chan <mike@android.com>
nternal/os/BatteryStatsImpl.java
798c4b985d5c7909f9dd0ee9464bffae1d0b6026 30-Jan-2010 Jim Miller <jaggies@google.com> am 3a8a2818: am d8a3a895: Fix 2404771: Expose reset() in SlidingTab widget so we can reset it when we get an incoming call.

Merge commit '3a8a28185bc26ccfdf847016d5a40af35436ca97'

* commit '3a8a28185bc26ccfdf847016d5a40af35436ca97':
Fix 2404771: Expose reset() in SlidingTab widget so we can reset it when we get an incoming call.
d8a3a8957b9d71ab75584b0cc98324fd70cc527c 30-Jan-2010 Jim Miller <jaggies@google.com> Fix 2404771: Expose reset() in SlidingTab widget so we can reset it when we get an incoming call.

Updated javadoc.
nternal/widget/SlidingTab.java
9327f4f671de3cbb795612bf4f314ceff88de865 29-Jan-2010 Dianne Hackborn <hackbod@google.com> More device policy work: clarify password modes, monkeying.

Clarifies what the password modes mean, renaming them to "quality"
and updating their documentation and the implementation to follow.

Also adds a facility to find out if a monkey is running, which I
need for the api demo to avoid letting it wipe the device.
nternal/widget/LockPatternUtils.java
391e62690ee1c1d1307dd12a9d84a08c8984ddd3 29-Jan-2010 Chris Tate <ctate@android.com> Merge "Add a method to IBackupTransport to get the current backup set token"
50c6df04cf17a99c3959c306a4e0e10da6d85c46 29-Jan-2010 Christopher Tate <ctate@google.com> Add a method to IBackupTransport to get the current backup set token

This will be used to specifically manage restores of last-known-good data
generated from the current device during its normal provisioned lifetime.
nternal/backup/IBackupTransport.aidl
nternal/backup/LocalTransport.java
77c292d83e70793dcb23677ab60a6c707fc613dd 29-Jan-2010 Daniel Sandler <dsandler@android.com> Merge "New full-screen activity for USB mass storage interaction."
b94f795c257e32a1d7be1115568b5b6f576dec37 28-Jan-2010 Daniel Sandler <dsandler@google.com> New full-screen activity for USB mass storage interaction.

Still TODO: patch into forthcoming callbacks from
MountService so the USB storage activity always shows the
correct state of the device. (Right now it only refreshes
its display onResume.)

Bug: 2299129
nternal/app/UsbStorageActivity.java
nternal/app/UsbStorageStopActivity.java
254cb446faa7cb13699d8150eb4cc4f44cb61a2d 28-Jan-2010 Dianne Hackborn <hackbod@google.com> More device admin.

- Clean up device policy manager APIs.
- Implement lockNow(). For now this just turns the screen off to lock the device.
nternal/widget/LockPatternUtils.java
d47c6ed4a9f2b5bd31f6c806b74701428efe458b 28-Jan-2010 Dianne Hackborn <hackbod@google.com> Bite the bullet and add support for multiple device admins.
nternal/widget/LockPatternUtils.java
83e5ff09d5ea440c3d32c9293449701d2475f4eb 28-Jan-2010 Wei Huang <weih@google.com> am 29bc7270: am 495bae67: Merge "fix bug 2264186: clean up the outstanding async queries in ContactHeaderWidget." into eclair

Merge commit '29bc7270ec2fd54707326eeee556be2fd4d86ca3'

* commit '29bc7270ec2fd54707326eeee556be2fd4d86ca3':
fix bug 2264186: clean up the outstanding async queries in ContactHeaderWidget.
c028be4f3b8c7476b46859f66c3f33d528adf181 25-Jan-2010 Suchi Amalapurapu <asuchitra@google.com> AppsOnSd feature - Add default container

Add new remote interface to do temporary copies. The new
remote stub handling is done on mHandler thread and doesn't need locking
for now.
Add new InstallArgs class and subclasses to isolate cases for installation.
Move resource deletion for failed installs/upgrades to later on in installation
cycle.
Fix code path for forward locked apps when using scanPackageLI

TODO's
Fix installation paths to completely use InstallArgs based design later on.
Get rid of using flags in various install/uninstall code paths.
Ideally InstallArgs should be created using these flags and used in the
rest of the code.
Function renames.
Revisit mount api's.
nternal/app/IMediaContainerService.aidl
bce2806a37a281396b944d10a6a8161de9977225 27-Jan-2010 Eugene Koh <koh@google.com> Merge "Modify the interface of HanziToPinyin class to make it generic and add test class"
4256586663f0d045c69ea818db4893b3365b9915 21-Jan-2010 Bai Tao <michaelbai@google.com> Modify the interface of HanziToPinyin class to make it generic and add test class
nternal/util/HanziToPinyin.java
5e5e6ccc37151c3e5d5272e8c1997955b6bed069 23-Jan-2010 Romain Guy <romainguy@android.com> Make dialogs look better when their content is small.
nternal/widget/WeightedLinearLayout.java
cd2354f5407f77f150c1d445a3bb3ec2180db51f 22-Jan-2010 Jim Miller <jaggies@google.com> am 84928fa9: am 813d2d86: Merge "Fix for 2292713: Remove workaround that hides SlidingTab widget while internal state is inconsistent." into eclair

Merge commit '84928fa93c3be222b77794de9922d299f4971ea4'

* commit '84928fa93c3be222b77794de9922d299f4971ea4':
Fix for 2292713: Remove workaround that hides SlidingTab widget while internal state is inconsistent.
11b019d07f4de0b25e2f863a7bcaad112d847d56 21-Jan-2010 Jim Miller <jaggies@google.com> Fix 2385283: Use device-specific salt when generating hashes for lock passwords.
nternal/widget/LockPatternUtils.java
df83afaf299666e99c519aa86e7e082b7c116e95 20-Jan-2010 Dianne Hackborn <hackbod@google.com> More device policy manager / admin work.

Update API with some new features, re-arrange how you check for valid
passwords, and start hooking up the back-end implementation.
nternal/widget/LockPatternUtils.java
22149f3d4ed44c63e066ba16f00709da47220a25 21-Jan-2010 Wei Huang <weih@google.com> fix bug 2264186: clean up the outstanding async queries in ContactHeaderWidget.

- ContactHeaderWidget has cascading async queries, which weren't cancelled if a new query for a different phone number is started.
If the new query fails to find a corresponding contact, the old async queries from the previous number could end up setting the
contact name and photo to the wrong contact.

I tested this by calling

ContactHeaderWidget.bindFromPhoneNumber(number1);
ContactHeaderWidget.bindFromPhoneNumber(number2);

where number1 has a corresponding contact in the databse, and number2 doesn't. At the end of these 2 calls, the ContactHeaderWidget
would display the contact info for number1.

- also found a bug in AsyncQueryHandler.cancelOperation(), which doesn't reliably cancel the previous query. In ContactHeaderWidget's
case, we really depend on the cancelling to work. So work around this bug by resetting mAsyncQueryHandler when we need to do a
new lookup/query. When the old query result is passed back in the callback, discard the result if the QueryHandler is not the same
as mAsyncQueryHandler.

Change-Id: Ice79e77f787af03400e080cbd58162a91838181f
nternal/widget/ContactHeaderWidget.java
1206b9eb71e0fc0cfeb98677b92f16afb8179a31 21-Jan-2010 Jim Miller <jaggies@google.com> Merge "Fix 2385283: Add DevicePolicyManager calls to LockScreen."
31f90b62e8c83270094f5b0b4c75a0e06d72cd75 20-Jan-2010 Jim Miller <jaggies@google.com> Fix 2385283: Add DevicePolicyManager calls to LockScreen.
nternal/widget/LockPatternUtils.java
0b3533ae838811d15afb1017144dfbf7c41df4a8 20-Jan-2010 Barry Hayes <bhayes@google.com> Check the boolean value for the arg to ZygoteInit to make sure it's either true or false.
Make a slightly more informative usage message.
Give developers a slightly easier way to have their preloaded classes list out of sync without blowing up.
nternal/os/ZygoteInit.java
2cd1e6eda90170114e0795b13f65f964296cf2f2 16-Jan-2010 Jim Miller <jaggies@google.com> Fix for 2292713: Remove workaround that hides SlidingTab widget while internal state is inconsistent.

The previous workaround for this race condition prevented glitches by postponing drawing the SlidingTab until the internal state was consistent.
Unfortunately, the InCallScreen seems to trigger this most of the time if the keyboard is open or the last application was in landscape mode.

Instead, we'll handle this separately in lockscreen.
nternal/widget/SlidingTab.java
22dd86e0556bf60f46bb92a4d90aef8c2d55da58 12-Jan-2010 San Mehat <san@google.com> MountService: Refactor to use NativeDaemonConnector and clean-up

Signed-off-by: San Mehat <san@google.com>
nternal/app/ExternalMediaFormatActivity.java
c93c70c4b849d31ff1b5e5cf2fb9462fd60e5da0 12-Jan-2010 San Mehat <san@google.com> Merge "framework: storage: Ensure that filesystems are unmounted before shutdown/reboot" into eclair
7ebf017658070323ed1c2bbd80c46c7cd2390d87 12-Jan-2010 San Mehat <san@google.com> framework: storage: Ensure that filesystems are unmounted before shutdown/reboot

Signed-off-by: San Mehat <san@google.com>
nternal/app/ShutdownThread.java
69aa4a953f040277c19c23208bb830f52796c8c6 23-Dec-2009 Jim Miller <jaggies@google.com> Fix 2332563: Add password-lock support to lockscreen
nternal/widget/LockPatternUtils.java
6e106ff7b419613eca17839f224344fbfc450559 11-Jan-2010 Tom Taylor <tomtaylor@google.com> am 2bb1f870: am 1edd8277: Merge "Hide unused fields" into eclair

Merge commit '2bb1f87089faa14954c1b5afa92a34ea947f5ff6'

* commit '2bb1f87089faa14954c1b5afa92a34ea947f5ff6':
Hide unused fields
980a938c1c9a6a5791a8240e5a1e6638ab28dc77 09-Jan-2010 Romain Guy <romainguy@android.com> Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
nternal/app/AlertController.java
nternal/view/menu/IconMenuItemView.java
nternal/widget/SlidingTab.java
9f7f7cad0b1fd7b096d65faf4b2352204403257e 07-Jan-2010 San Mehat <san@google.com> ShutdownThread: Shutdown MountService before lowlevel shutdown

Signed-off-by: San Mehat <san@google.com>
nternal/app/ShutdownThread.java
1af33d0ddc2f50ade146e4d48e2feb6f1d553427 05-Jan-2010 Doug Zongker <dougz@android.com> add recovery system interface to API

Adds android.os.RecoverySystem (marked as pending) to replace the
(hidden) com.android.internal.os.RecoverySystem. RecoverySystem
contains methods for:

- verifying the signature of an update package
- rebooting to install a package
- rebooting to wipe user data

(The reboot functions require "android.permission.REBOOT" and
"android.permission.ACCESS_CACHE_FILESYSTEM".) Providing these
simplifies implementation of OTA update for device builders.

Change-Id: I63ce743b156e7a1a0327fd395b0e4a82c0eda79a
nternal/os/RecoverySystem.java
ac65121351f88a890d73a9911f705b7f8f663cd8 06-Jan-2010 Tom Taylor <tomtaylor@google.com> Hide unused fields

When ContactHeaderWidget.bindFromPhoneNumber is called with a number
that's not in contacts, onQueryComplete takes a path that doesn't hide
fields that don't apply to the current phone number. As a result, the
user sees the new number, but old data from the previous display (such
as the facebook status). With this change, those fields are hidden.
Fixes bug 2336977.

Change-Id: Ib6253c18dc58c3d28b463c87d5d195a84d613600
nternal/widget/ContactHeaderWidget.java
c0227fa68f5cee1812301c8aae0dcd1e2340cd89 05-Jan-2010 Marco Nelissen <marcone@google.com> VerticalTextSpinner has been moved in to the music app, and is no longer needed here.
nternal/widget/VerticalTextSpinner.java
e38d58bf890c03eb034afd18c62c730c7d735f1c 31-Dec-2009 Dan Egnor <egnor@google.com> Remove Google-specific (or only-used-by-Google-code) classes.

Fix a small typo in Context javadoc.
nternal/net/DbSSLSessionCache.java
f0108cda21bec61418b24aa6217406072780b5d5 22-Dec-2009 Tom Taylor <tomtaylor@google.com> resolved conflicts for merge of ad2fa35d to master

Change-Id: Ia4362cd48ac0689b91003943a4cd9660da72ff90
f966afa1461c602fb5b50aeb5d6429dc525014be 22-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I34a427a5

* changes:
Adding support for LoggingPrintStream.write(byte[]) and friends.
60d8762413e8daba5f73559786312a9ec5e3b827 17-Dec-2009 Dan Egnor <egnor@google.com> DropBox logging of app & system server crashes.

The crashes are also reported to the event log (and of course the
main logcat, like they always have been). Ordinary Log.e(t,m,e) isn't dropboxed
but there's a new Log.wtf() which always is. (Still @pending in this change.)

Add a hook to IPowerManager to crash the system server on demand
(only for apps with REBOOT permission, since it's basically a restart).
This is not exposed in PowerManager, must be invoked directly -- mostly
this is there so "Bad Behavior" in dev tools can do it.
nternal/os/RuntimeInit.java
d4a4729c0cac582a2dcec7c8cfb316b81885a0f0 21-Dec-2009 Tom Taylor <tomtaylor@google.com> Update imports to android-common

Several files were moved to android-common. Update all the references
to import those files from the new location.
nternal/database/ArrayListCursor.java
nternal/os/PowerProfile.java
nternal/util/FastXmlSerializer.java
nternal/util/XmlUtils.java
f41de2a4a1c22e3f3ee9a8cd65ec7997c9587cdb 18-Dec-2009 Jesse Wilson <jessewilson@google.com> Adding support for LoggingPrintStream.write(byte[]) and friends.

By default, Android's System.out and System.err are implemented by
the AndroidPrintStream subclass of LoggingPrintStream. Until now,
that class has silently discarded the raw bytes it has received.
This causes two problems:

Applications may be accidentally wasting CPU+memory writing to
System.out. By making this output visible, the developers of such
applications can silence the problem at the source.

Application developers may be purposefully writing to these streams
and perplexed by the data's disappearance. For example, the core
library's own java.util.logging.ConsoleHandler sends its log data
into this black hole. By making the data visible, we save the data
and remove an unnecessary sharp edge from our API.
nternal/os/LoggingPrintStream.java
df1549128f26be712c46c88202b97145275f2125 15-Dec-2009 Dmitri Plotnikov <dplotnikov@google.com> Cherry-picking change I476e5a00 from eclair-china

Add Hanzi to Pinyin converter and sort key for contacts

Sort key and Hanzi to Pinyin converter is used for Chinese
implementation of contacts search, indexing and sorting.
Hanzi to Pinyin converter should be implemented on top of ICU
transliterator in the future.

Change-Id: I620f67c85897ee4054eda2624e7bcc12a81740aa
nternal/util/HanziToPinyin.java
e143bc92b2dfa205ea6af80855132bf52e018688 14-Dec-2009 Paul Westbrook <pwestbro@google.com> resolved conflicts for merge of 15d3bb2c to master
7762d93621f508f4410fd37b5bbdfec0071b0420 11-Dec-2009 Paul Westbrook <pwestbro@google.com> Unbundling work

Moved AndroidHttpClient, Rfc822InputFilter, Rfc822Validator
NumberPicker, NumberPickerButton to android-common
---
nternal/widget/NumberPicker.java
nternal/widget/NumberPickerButton.java
d021302134460efbb596f4a4a2951e75b83d0ede 11-Dec-2009 Dan Egnor <egnor@google.com> resolved conflicts for merge of f6bb01b0 to master
b7f0367cec1c744aa66ef397b0244e25d507491c 10-Dec-2009 Dan Egnor <egnor@google.com> Eliminate CrashData and friends.

(CrashData was a custom-marshalled crash-info class used for a server crash
reporting system I am deprecating). Use ApplicationErrorReport.CrashInfo
instead to report crash details (mostly the stack trace) from RuntimeInfo to
ActivityManagerService, since we're likely to need the crash information in
that form anyway.

Remove the (long-disabled) flags and support for the "Debug" button
in the crash dialog.

Further gut the ICheckinService interface by removing the crash-reporting
APIs (and everything that calls them), plus the synchronous checkin()
method (which has been stubbed out for a while now).

A new dropbox-based crash reporting system is in the works, but not part
of this change.
nternal/os/RuntimeInit.java
7a4fb7376b6819f609b8f462c56329eff50fcb6d 11-Dec-2009 Wink Saville <wink@google.com> am 595c4092: am 8fb0faf3: Merge change I0a56959e into eclair-mr2

Merge commit '595c40920f31ba7b6674eb341548173e2aaf6ea7'

* commit '595c40920f31ba7b6674eb341548173e2aaf6ea7':
Implement a HierarchicalStateMachine
8fb0faf3cc2f792db8cf38fe5ab67c5eab7baa5c 11-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I0a56959e into eclair-mr2

* changes:
Implement a HierarchicalStateMachine
d2169dde42284fa2e56b1b870d4ffcfe824f975d 10-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change If3bafe4f

* changes:
Encrypted File Systems. Recovery changes for framework. Modifications to allow for new call to recovery to toggle EFS settings.
630432e4249ca775e28eedeeb28d1f367ca45296 10-Dec-2009 Ken Shirriff <kens@google.com> am d44c2f2c: am 1270e2e2: Merge change I96ddd6e2 into eclair-mr2

Merge commit 'd44c2f2c85c8720763837b89a8988b6e5cc248bf'

* commit 'd44c2f2c85c8720763837b89a8988b6e5cc248bf':
Migration to TrafficStats.
314664d2479a55b182035f0585eadd40a0e6833d 10-Dec-2009 Dianne Hackborn <hackbod@google.com> am 68a3b8b6: am 24eca800: Merge change I887f355f into eclair-mr2

Merge commit '68a3b8b66044d0a9fa901ad306fc6db6d13f94d3'

* commit '68a3b8b66044d0a9fa901ad306fc6db6d13f94d3':
Propagate background scheduling class across processes.
fc5b4802a544b6ca304aa7e58a26018ef714d233 09-Dec-2009 Wink Saville <wink@google.com> Implement a HierarchicalStateMachine

A hierarchical state machine is a state machine which processes messages
and can have states arranged hierarchically. Each state in the state
machine may have a single parent state and if a child state is unable to
handle a message it may have the message processed by its parent.

Change-Id: I0a56959ece8f89e4f9122dc8044120b82d517bbb
nternal/util/HierarchicalState.java
nternal/util/HierarchicalStateMachine.java
nternal/util/ProcessedMessages.java
1270e2e22b0b3f0705cee2b82788d8dc3fb03cdb 08-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I96ddd6e2 into eclair-mr2

* changes:
Migration to TrafficStats.
1719a39a4c0ff3afbf9c9e5f03f20ba50f490902 08-Dec-2009 Ken Shirriff <kens@google.com> Migration to TrafficStats.

TrafficStats is the SDK version of NetStat.
nternal/os/BatteryStatsImpl.java
887f355f99ff83d568ef2885a4fdcaae475583df 08-Dec-2009 Dianne Hackborn <hackbod@google.com> Propagate background scheduling class across processes.

This is a very simply implementation: upon receiving an IPC, if the handling
thread is at a background priority (the driver will have taken care of
propagating this from the calling thread), then stick it in to the background
scheduling group. Plus an API to turn this off for the process, which is
used by the system process.

This also pulls some of the code for managing scheduling classes out of
the Process JNI wrappers and in to some convenience methods in thread.h.
nternal/os/BinderInternal.java
3baf1bf734b6212908486d84b356ed1bc7cd838b 30-Nov-2009 Oscar Montemayor <oam@google.com> Encrypted File Systems. Recovery changes for framework.
Modifications to allow for new call to recovery to toggle EFS settings.
nternal/os/RecoverySystem.java
fb397e73b2bee3ec6963b45ab8c6316c590babe9 04-Dec-2009 Jim Miller <jaggies@google.com> am cdeed788: am 3077f7df: am 1296d562: Merge change I8b63ab66 into eclair

Merge commit 'cdeed7887323048cc42e9c62f3205340a91b97bc'

* commit 'cdeed7887323048cc42e9c62f3205340a91b97bc':
Better animation for sliding widget.
3077f7df2eaf4127438d4337a9a25766261b02ee 04-Dec-2009 Jim Miller <jaggies@google.com> am 1296d562: Merge change I8b63ab66 into eclair

Merge commit '1296d562cf9b80e439724e15b4fdaf6626d2b4df' into eclair-mr2

* commit '1296d562cf9b80e439724e15b4fdaf6626d2b4df':
Better animation for sliding widget.
8b63ab664ff5068d022c080ce04995a0bfdd7030 02-Dec-2009 Jim Miller <jaggies@google.com> Better animation for sliding widget.

Because of the way an Animation handles invalidates, we need to have one Animation per widget being animated.
nternal/widget/SlidingTab.java
4063b4d1cf57461cebc3f52106381883e6469040 23-Nov-2009 Daniel Sandler <dsandler@google.com> am 0182aa35: am 40c1dbf0: am a59a01ab: Merge change I43f72dd1 into eclair

Merge commit '0182aa354f996ce43362cd7d1a04012ea9269f41'

* commit '0182aa354f996ce43362cd7d1a04012ea9269f41':
Don't block TIME_TICK broadcasts in the DigitalClock widget.
40c1dbf081035f878b96dd67ef112eb49001c087 23-Nov-2009 Daniel Sandler <dsandler@google.com> am a59a01ab: Merge change I43f72dd1 into eclair

Merge commit 'a59a01ab2b959a8a5aeb09dd664d5be193fd8219' into eclair-mr2

* commit 'a59a01ab2b959a8a5aeb09dd664d5be193fd8219':
Don't block TIME_TICK broadcasts in the DigitalClock widget.
f60e108fa984d823aabad5b691bc248bffe5d1a5 20-Nov-2009 Daniel Sandler <dsandler@google.com> Don't block TIME_TICK broadcasts in the DigitalClock widget.

This change applies the fix -- originally by phanna in
https://android-git.corp.google.com/g/#change,33669 -- to
the com.android.internal.widget version of DigitalClock,
which is used by the keyguard and pattern lock screens.

Change-Id: I43f72dd144423e55f73ba52903d52163c8f65591
nternal/widget/DigitalClock.java
8e38ce4deef2c8acd411073b9affab6a7b16b631 19-Nov-2009 Jim Miller <jaggies@google.com> am 5d81e8c8: am 43733460: am 30142f7e: Merge change I9f239766 into eclair

Merge commit '5d81e8c82aa8d55eff2c2c78e4a553c479332187'

* commit '5d81e8c82aa8d55eff2c2c78e4a553c479332187':
Workaround for 2262578: Don't draw tabs if view is not in the correct orientation for the layout
8488a6013ee447bf2e8358d5b20cd29dcca43212 19-Nov-2009 Amith Yamasani <yamasani@google.com> am 41029cf4: am 9335d414: am 778f1e65: Merge change Icfc893d2 into eclair

Merge commit '41029cf413abbfdf004e04f192a440e457701c47'

* commit '41029cf413abbfdf004e04f192a440e457701c47':
Fix for 2267410 : Battery use doesn't show CPU usage on non-wiped devices
4373346073250b668c0ff287b0d584401f7f3c96 18-Nov-2009 Jim Miller <jaggies@google.com> am 30142f7e: Merge change I9f239766 into eclair

Merge commit '30142f7ef7bf3d4699526cb9ce02b220a8045c5d' into eclair-mr2

* commit '30142f7ef7bf3d4699526cb9ce02b220a8045c5d':
Workaround for 2262578: Don't draw tabs if view is not in the correct orientation for the layout
30142f7ef7bf3d4699526cb9ce02b220a8045c5d 18-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I9f239766 into eclair

* changes:
Workaround for 2262578: Don't draw tabs if view is not in the correct orientation for the layout
9335d414bd2af5bb1ad74459de165a3d93a9ca7b 18-Nov-2009 Amith Yamasani <yamasani@google.com> am 778f1e65: Merge change Icfc893d2 into eclair

Merge commit '778f1e65a5ea37bc4adc4725e281a34b775bc72d' into eclair-mr2

* commit '778f1e65a5ea37bc4adc4725e281a34b775bc72d':
Fix for 2267410 : Battery use doesn't show CPU usage on non-wiped devices
778f1e65a5ea37bc4adc4725e281a34b775bc72d 18-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Icfc893d2 into eclair

* changes:
Fix for 2267410 : Battery use doesn't show CPU usage on non-wiped devices
cfc893d27a59bddbc5d0da0038e8313f6c379f86 18-Nov-2009 Amith Yamasani <yamasani@google.com> Fix for 2267410 : Battery use doesn't show CPU usage on non-wiped devices

Due to a change in cpu stepping values, the batterystats.bin file needs to
be wiped for Battery Use app to show CPU cost correctly.
Bumping up the version number of the file fixes this.
nternal/os/BatteryStatsImpl.java
1d0a152fa8905b9dfb87dc87da8e5432e48eae96 18-Nov-2009 Jim Miller <jaggies@google.com> Workaround for 2262578: Don't draw tabs if view is not in the correct orientation for the layout

This is an uber hack. Since there is a race between resizing the view and getting
the orientation-changed notification, this just tries to avoid drawing the tabs in the
wrong orientation (based on what we *expect* to be the orientation specified in the layout
file for the SlidingTab). This masks the problem *most* of the time.
nternal/widget/SlidingTab.java
813d11a91af1e1f98712406928a724aaf82ac5ba 18-Nov-2009 Evan Millar <emillar@google.com> am a6780991: am e53c9a81: am 6bcd99c2: Merge change I1b6d202b into eclair

Merge commit 'a67809918f6c212630da0b359628d0e8722b091f'

* commit 'a67809918f6c212630da0b359628d0e8722b091f':
Move photo querying off main thread.
c0c999a43ce6ee8344cfe877d152e7c8b69b059d 18-Nov-2009 Jim Miller <jaggies@google.com> am 8bf56e6a: am c0b0ad21: am f0166e4d: Merge change I4f01d4a4 into eclair

Merge commit '8bf56e6a1bb842aaae2b8b7630d2bc2711f36bb6'

* commit '8bf56e6a1bb842aaae2b8b7630d2bc2711f36bb6':
Fix 2209086: Clean up visual glitches in SlidingTab for lock and incall screen.
e53c9a81e5208bc51ee8e365f19ff867897e63af 17-Nov-2009 Evan Millar <emillar@google.com> am 6bcd99c2: Merge change I1b6d202b into eclair

Merge commit '6bcd99c2a63338254c68e27e40e5395cbdd3e1ef' into eclair-mr2

* commit '6bcd99c2a63338254c68e27e40e5395cbdd3e1ef':
Move photo querying off main thread.
1b6d202bd44373d9a7c0235939f63423f1e26773 17-Nov-2009 Evan Millar <emillar@google.com> Move photo querying off main thread.

Fixes bug http://b/issue?id=2265642
nternal/widget/ContactHeaderWidget.java
c0b0ad212a8fa55da91fd759cc2451afe8134d43 17-Nov-2009 Jim Miller <jaggies@google.com> am f0166e4d: Merge change I4f01d4a4 into eclair

Merge commit 'f0166e4dd0907e487531960e36f516406d265b73' into eclair-mr2

* commit 'f0166e4dd0907e487531960e36f516406d265b73':
Fix 2209086: Clean up visual glitches in SlidingTab for lock and incall screen.
4f01d4a4da7754dbe6a49cca8f94e81104acb87f 17-Nov-2009 Jim Miller <jaggies@google.com> Fix 2209086: Clean up visual glitches in SlidingTab for lock and incall screen.

This fixes the following glitches:
- flash at the end of animation as the widget resets. Fix: new "hold" animation holds the view for 1 second, allowing it to transition before we reset the view.
- target flashing. Fix: remove AlphaAnimation when we want to hide the target.
- bar appears to get stuck at edge. Fix: sliding bar now slides fully offscreen when hold == true. Added setHoldAfterTrigger() method to allow InCallScreen and LockScreen to have different behaviors.
- view continues to animate when shown again. Fix: reset the animations and sliders when the view is hidden.

Tested:
Answer/Decline call on CDMA and GSM device.
Unlock phone and toggle sound on/off in LockScreen on both devices.
nternal/widget/SlidingTab.java
c82f4cc748a2697342cc63a5f9da957a7f9e4eb4 16-Nov-2009 Jim Miller <jaggies@google.com> am 12814547: resolved conflicts for merge of 607b9c37 to eclair-mr2-plus-aosp

Merge commit '12814547b828bfd9d6a632bbc6c699afd5c4cbce'

* commit '12814547b828bfd9d6a632bbc6c699afd5c4cbce':
Fix 2209086: Add animations and misc ui improvements to SlidingTab.
607b9c37de459d57b7c2f8333e743bba0d159c7c 16-Nov-2009 Jim Miller <jaggies@google.com> am 521d400b: Fix 2209086: Add animations and misc ui improvements to SlidingTab.

Merge commit '521d400b230bee5e7b9748f26832c0d0275b8253' into eclair-mr2

* commit '521d400b230bee5e7b9748f26832c0d0275b8253':
Fix 2209086: Add animations and misc ui improvements to SlidingTab.
521d400b230bee5e7b9748f26832c0d0275b8253 16-Nov-2009 Jim Miller <jaggies@google.com> Fix 2209086: Add animations and misc ui improvements to SlidingTab.

Added translation animation where tab "flies" when you release.
Added translation animation where pressing and releasing one tab will hide/show the other
Added alpha animation to make target appear gradually
Added margin around swipe area to allow easier unlocking.
Removed unused handler.
nternal/widget/SlidingTab.java
ac4bacd9777c12e4cd6ddc335518a61a3f18f47f 15-Nov-2009 Jim Miller <jaggies@google.com> am 16a9d9a7: Fix 2209086: Fix missing callback that was preventing tab bar text from updating.

Merge commit '16a9d9a736a1bfdc12aa54c549508dd12596247f' into eclair-mr2

* commit '16a9d9a736a1bfdc12aa54c549508dd12596247f':
Fix 2209086: Fix missing callback that was preventing tab bar text from updating.
16a9d9a736a1bfdc12aa54c549508dd12596247f 14-Nov-2009 Jim Miller <jaggies@google.com> Fix 2209086: Fix missing callback that was preventing tab bar text from updating.

Also includes a cosmetic fix to move the Digital clock down a bit.
nternal/widget/SlidingTab.java
151328767e0d5941e9d50e4b571e9ba4aa7d93b4 14-Nov-2009 Jim Miller <jaggies@google.com> am 17831dd4: am d1841144: am 7c1c4600: Merge change I425ca595 into eclair

Merge commit '17831dd428419686ec0e6da9b25fd593bdee7ac0'

* commit '17831dd428419686ec0e6da9b25fd593bdee7ac0':
Fix 2261626: Don't show text on button if orientation is vertical.
d1841144e4d592724001018f427806edb9c72ae0 14-Nov-2009 Jim Miller <jaggies@google.com> am 7c1c4600: Merge change I425ca595 into eclair

Merge commit '7c1c46000be136ffda36283fdc93bfe3cba72601' into eclair-mr2

* commit '7c1c46000be136ffda36283fdc93bfe3cba72601':
Fix 2261626: Don't show text on button if orientation is vertical.
425ca595dcc37ddb7a9f96310e5b800f424811a6 14-Nov-2009 Jim Miller <jaggies@google.com> Fix 2261626: Don't show text on button if orientation is vertical.
nternal/widget/SlidingTab.java
9db3d07b9620b4269ab33f78604a36327e536ce1 13-Nov-2009 Jean-Baptiste Queru <jbq@google.com> eclair snapshot
nternal/app/ChooserActivity.java
nternal/app/IBatteryStats.aidl
nternal/app/NetInitiatedActivity.java
nternal/app/ResolverActivity.java
nternal/app/ShutdownThread.java
nternal/backup/BackupConstants.java
nternal/backup/IBackupTransport.aidl
nternal/backup/LocalTransport.java
nternal/backup/SystemBackupAgent.java
nternal/content/SyncStateContentProviderHelper.java
nternal/os/BatteryStatsImpl.java
nternal/os/HandlerCaller.java
nternal/os/PowerProfile.java
nternal/os/RuntimeInit.java
nternal/os/SamplingProfilerIntegration.java
nternal/os/ZygoteInit.java
nternal/service/wallpaper/ImageWallpaper.java
nternal/view/BaseIWindow.java
nternal/view/BaseSurfaceHolder.java
nternal/view/menu/IconMenuView.java
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuDialogHelper.java
nternal/widget/ContactHeaderWidget.java
nternal/widget/DialogTitle.java
nternal/widget/LockPatternUtils.java
nternal/widget/LockPatternView.java
nternal/widget/NumberPicker.java
nternal/widget/RotarySelector.java
52349182e1ce746afd48cfb1426f6830e9345c29 13-Nov-2009 Jim Miller <jaggies@google.com> am c41bc910: am 5be290d6: am 11fea858: Merge change I8061e6ac into eclair

Merge commit 'c41bc910bd6fe3daf56c32a5be858b71872093d3'

* commit 'c41bc910bd6fe3daf56c32a5be858b71872093d3':
Fix 2209086: Updated assets and fixed widget dimension calculation.
5be290d6296da34cdd2724ee94dfc3b61bc02785 13-Nov-2009 Jim Miller <jaggies@google.com> am 11fea858: Merge change I8061e6ac into eclair

Merge commit '11fea858b2f2d3f9c40a4da848d7bcee47edde04' into eclair-mr2

* commit '11fea858b2f2d3f9c40a4da848d7bcee47edde04':
Fix 2209086: Updated assets and fixed widget dimension calculation.
4811d62d5f07a1ffbf085d5e424e2b54d0e7ebfd 13-Nov-2009 Jim Miller <jaggies@google.com> Fix 2209086: Updated assets and fixed widget dimension calculation.

Added hvga assets for new lock screen widget.

Tested:
LockScreen on wvga and hvga devices.
InCallScreen on wvga and hvga devices.
nternal/widget/SlidingTab.java
67abf57846168dd00fa951489c3d636e6016f3ce 12-Nov-2009 Dan Egnor <egnor@google.com> am 00556831: am f18a01c7: Rename [I]DropBox[Service] to [I]DropBoxManager[Service].

Merge commit '00556831f7503a922a5402c525b4387ebdd1a4bb'

* commit '00556831f7503a922a5402c525b4387ebdd1a4bb':
Rename [I]DropBox[Service] to [I]DropBoxManager[Service].
f18a01c77e78209b74e34d05cfb352fa4a92db5f 12-Nov-2009 Dan Egnor <egnor@google.com> Rename [I]DropBox[Service] to [I]DropBoxManager[Service].

Un-hide the DropBoxManager interface, and update the public API accordingly.
nternal/os/IDropBoxManagerService.aidl
nternal/os/IDropBoxService.aidl
10d6dd5ae1bf11d5878fe6a3303ed213abc111e4 12-Nov-2009 Jim Miller <jaggies@google.com> am e6874f9d: am 0b66ea65: am 2477fd69: Merge change Ic31c11ad into eclair

Merge commit 'e6874f9df43037b28bb5a8b315849db10d5d1a1e'

* commit 'e6874f9df43037b28bb5a8b315849db10d5d1a1e':
Fix 2209086: restore drawable states when drawables change.
0b66ea65f7c43c7a39e91baf7a39945fc2ad6355 12-Nov-2009 Jim Miller <jaggies@google.com> am 2477fd69: Merge change Ic31c11ad into eclair

Merge commit '2477fd69492055f3c6ee62ed9993e9fde8283144' into eclair-mr2

* commit '2477fd69492055f3c6ee62ed9993e9fde8283144':
Fix 2209086: restore drawable states when drawables change.
2477fd69492055f3c6ee62ed9993e9fde8283144 12-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ic31c11ad into eclair

* changes:
Fix 2209086: restore drawable states when drawables change.
4df2c5433bb530fae6191a0298a6d494ca03eaa7 12-Nov-2009 Jim Miller <jaggies@google.com> Fix 2209086: restore drawable states when drawables change.

This fixes a bug where the right tab hightlight wasn't being seen.
The prooblem was that we weren't preserving the drawables' states when
the application requested a new drawable. We now track the drawable state
so we can updated it when the resources change.
nternal/widget/SlidingTab.java
4829ae00acfe429a94f09cacf0b53154a55b0462 12-Nov-2009 Daniel Sandler <dsandler@google.com> am 09904d84: am d1a3fc38: am 609bbf18: Merge change I54089080 into eclair

Merge commit '09904d84d10c5b3345c2594e9fe3ec275a4f3a69'

* commit '09904d84d10c5b3345c2594e9fe3ec275a4f3a69':
Update keyguard and pattern-lock layouts for new UX designs.
d1a3fc38e99e0483402168529020e758ecd777ce 12-Nov-2009 Daniel Sandler <dsandler@google.com> am 609bbf18: Merge change I54089080 into eclair

Merge commit '609bbf182e4b4f39b6be7ed01331887ca70ea4c1' into eclair-mr2

* commit '609bbf182e4b4f39b6be7ed01331887ca70ea4c1':
Update keyguard and pattern-lock layouts for new UX designs.
e3ea6e3d4c8a8c2dc71f608a74ed9f6137afe63d 12-Nov-2009 Daniel Sandler <dsandler@google.com> Update keyguard and pattern-lock layouts for new UX designs.

To do this, we bring DigitalClock over from Clock into the
internal widgets. Its font, Clockopia, comes along for the
ride (find it in /system/fonts).

This change is required for relevant code changes in
frameworks/policy/phone.

Change-Id: I354534f1abd9cf9557c9d18566f1d55b6be5e8f1
nternal/widget/DigitalClock.java
5eacb0f6be0176a4c3a5a2bc246e073ffdde1ad3 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am 897223a1: am d669d488: am 34d723d8: Merge change I32371166 into eclair

Merge commit '897223a1040ce29edc9c2fd500071ab7f559e5fe'

* commit '897223a1040ce29edc9c2fd500071ab7f559e5fe':
Fix issue #2239203: Setting large background causes OOME and soft-reboot spiral
d669d48888fdefab4907f4de5b296fc366b59eaf 12-Nov-2009 Dianne Hackborn <hackbod@google.com> am 34d723d8: Merge change I32371166 into eclair

Merge commit '34d723d8fa75e8f97401311e03b3839246143018' into eclair-mr2

* commit '34d723d8fa75e8f97401311e03b3839246143018':
Fix issue #2239203: Setting large background causes OOME and soft-reboot spiral
c9dbbe28f7879bd377114587ed1f40235a2d37ca 12-Nov-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2239203: Setting large background causes OOME and soft-reboot spiral

Try really really hard not to crash, for any reason.

Change-Id: I32371166229825f13fc8d12d5cf3a6531cdb345e
nternal/service/wallpaper/ImageWallpaper.java
34ce2fb7c4ca750ecb7ae7380442476e05fdd157 12-Nov-2009 Jim Miller <jaggies@google.com> am 809b2594: am 207d00c1: am f2897fe4: Merge change Idc34a3f7 into eclair

Merge commit '809b2594886fa64f23bd6e87f97f8b06e933fa9e'

* commit '809b2594886fa64f23bd6e87f97f8b06e933fa9e':
Fix 2209086: add drawables for SlidingTab states in PhoneApp. Update string file for new SlidingTab sound states.
207d00c13c02d301ff4ec302b1ee8cd7c256a4a5 12-Nov-2009 Jim Miller <jaggies@google.com> am f2897fe4: Merge change Idc34a3f7 into eclair

Merge commit 'f2897fe42e22966127dbee8025d6bdc1d1697d81' into eclair-mr2

* commit 'f2897fe42e22966127dbee8025d6bdc1d1697d81':
Fix 2209086: add drawables for SlidingTab states in PhoneApp. Update string file for new SlidingTab sound states.
753401aa471d2fb87ab937c2b02b182ebc215c3a 12-Nov-2009 Jim Miller <jaggies@google.com> Fix 2209086: add drawables for SlidingTab states in PhoneApp. Update string file for new SlidingTab sound states.
Tweak "animation" to be 250ms based on conversation with ui guys. Some minor performance tweaks to SlidingTab.
nternal/widget/SlidingTab.java
78aa69a092b32ab77714ca96694857fca7a1a381 12-Nov-2009 Jim Miller <jaggies@google.com> am ad902f06: am 052908a5: am 2f92bd3e: Merge change Ia895aa7d into eclair

Merge commit 'ad902f06dd44e30286c48c8a28bb2509b80c63bc'

* commit 'ad902f06dd44e30286c48c8a28bb2509b80c63bc':
Fix for 2209086: Initial pass at new SlidingTab widget and integration into LockScreen.
052908a5d93f3d842cd7a9d8eda5acd3d9565b69 12-Nov-2009 Jim Miller <jaggies@google.com> am 2f92bd3e: Merge change Ia895aa7d into eclair

Merge commit '2f92bd3ecb45e2690dcdc9c09564a1b3805f673b' into eclair-mr2

* commit '2f92bd3ecb45e2690dcdc9c09564a1b3805f673b':
Fix for 2209086: Initial pass at new SlidingTab widget and integration into LockScreen.
24ccf3c59077d81b0dd3b314822ff7dab215c165 11-Nov-2009 Jim Miller <jaggies@google.com> Fix for 2209086: Initial pass at new SlidingTab widget and integration into LockScreen.

Tested:
- unlock and mute/unmute

Not working:
- highlighting on right tab.
nternal/widget/SlidingTab.java
430785f66d56a1eb977c8f73c8a0939fa2a3b543 10-Nov-2009 Marco Nelissen <marcone@google.com> am eac4222f: am 949ffa3d: am 11cff8cd: Merge change Ie211adae into eclair

Merge commit 'eac4222f7f30bf1df14b223cf62e594914dd32d4'

* commit 'eac4222f7f30bf1df14b223cf62e594914dd32d4':
Add a way for wallpapers to know the delta between virtual screens.
949ffa3da5231772425c3bde50caeab6c4d08ec5 10-Nov-2009 Marco Nelissen <marcone@google.com> am 11cff8cd: Merge change Ie211adae into eclair

Merge commit '11cff8cd30f03b5adb137e985532543da5e960c4' into eclair-mr2

* commit '11cff8cd30f03b5adb137e985532543da5e960c4':
Add a way for wallpapers to know the delta between virtual screens.
bf6956b1d95442e9d9c483894d578fe6b7044cbb 10-Nov-2009 Marco Nelissen <marcone@google.com> Add a way for wallpapers to know the delta between virtual screens.
nternal/service/wallpaper/ImageWallpaper.java
nternal/view/BaseIWindow.java
11e3364a6afd4e83cc60894031793dabcc6193a3 29-Oct-2009 Dan Egnor <egnor@google.com> am 473bbd21: am 95240270: Instead of a raw AIDL interface, give DropBox a Java interface (android.os.DropBox); move the Binder interface behind the scenes. Make DropBoxEntry into DropBox.Entry. Make it possible to get a dropbox from an (Application)Context with the u

Merge commit '473bbd2140a2515a6a9a450ee955a790e0b6dcff'

* commit '473bbd2140a2515a6a9a450ee955a790e0b6dcff':
Instead of a raw AIDL interface, give DropBox a Java
952402704a175ba27f6c89dff1ada634c5ce5626 28-Oct-2009 Dan Egnor <egnor@google.com> Instead of a raw AIDL interface, give DropBox a Java
interface (android.os.DropBox); move the Binder interface
behind the scenes. Make DropBoxEntry into DropBox.Entry.
Make it possible to get a dropbox from an (Application)Context
with the usual getSystemService(DROPBOX_SERVICE) type thing.
Update the tests accordingly.
nternal/os/IDropBoxService.aidl
9e6784f053e1d2cedc69f20112edee667be5c2e2 24-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I3183c78f

* changes:
Plug into the new optimized path for Dalvik logging.
246978b8dc89562dda47fea9a7aee61949101242 23-Oct-2009 Tom Taylor <tomtaylor@google.com> Add a method to clear info about a contact

Add a method so the ContactInfoWidget will throw away the cached
info it has on a contact (e.g. picture and uri).

Change-Id: Ia8f376e356c6bcf246bbd72239c5ca2a3b7c9574
nternal/widget/ContactHeaderWidget.java
7580493b014a2c7ea883cd291255798dc72ebbff 21-Oct-2009 Dianne Hackborn <hackbod@google.com> Implement feature #2117336: Create event communication APIs for live wallpaper

Note: currently only implements an async version (no result), and not yet
actually tested.

Change-Id: Id47ed045a4b0eb309ea8c58daf41a0e03eff1d3a
nternal/view/BaseIWindow.java
3183c78f19e794c10ecc3fa2b437a70335401542 23-Oct-2009 Jesse Wilson <jessewilson@google.com> Plug into the new optimized path for Dalvik logging.
nternal/logging/AndroidHandler.java
f37447bad3773b62176baa837908daf6edb44273 09-Oct-2009 Amith Yamasani <yamasani@google.com> Proper fix for zero signal strength and no_service. Fixes #2176141

Track phone service state changes and use a separate timer for out-of-service
since the hunting can timeout on some devices.

Store the timeout value in the config.xml, as it is device/network specific.

Settings App will also change to use the hunting duration to compute the cost
of zero signal.
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
nternal/os/PowerProfile.java
9485aec1df6094b7d2497212c8fe04a6d459b4cd 09-Oct-2009 Jim Miller <jaggies@google.com> Fix for 2177367: Reduce duration of vibrate in RotaryLockScreen

BUG=2177367
nternal/widget/RotarySelector.java
568cae571a3d74d1992176a21722e07b44e9a3c4 08-Oct-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2171460: Turn off background blurring of power dialog

Change-Id: I521629e0ccd0116acf149eeb7476c8474fc7c74a
nternal/app/ShutdownThread.java
f242b7b931898856bcbcb7ec36cacf43098ba544 08-Oct-2009 Nick Pelly <npelly@google.com> Introduce BluetoothAdapter.getDefaultAdapter().

This is the main entry point to the Bluetooth APIs, and returns the default
local Bluetooth adapter.

It replaces context.getSystemService(Context.BLUETOOTH_SERVICE). This was
never in a public SDK release.

DrNo: eastham
Bug: 2158765
Joke: Why can't you play cards in the jungle? Because there's too many cheetas!
Change-Id: Ieed8be009ee5aba621cb69090ee8c8a9c19c840d
nternal/app/ShutdownThread.java
5037e57fd43bccf79be80bc140b33d1fa69abe13 05-Oct-2009 Jim Miller <jaggies@google.com> Fix for 2161835: Tweaks to rotary lock screen:

- Make inactive dimples dim.
- When an item is grabbed, make all other dimples dim.
nternal/widget/RotarySelector.java
bd0a81ff1c0e92e80e05e2f12bb1805c7d081e94 04-Oct-2009 Dianne Hackborn <hackbod@google.com> Work on issue #2163789: Way too much logging

Dr.No from mcleron.

Change-Id: Iaca2268684f83fe8757e64db0b0e047a19755311
nternal/backup/LocalTransport.java
88e037577f7db140e4ef88b77eefaa910e06e5f5 02-Oct-2009 David Brown <dab@google.com> RotarySelector widget: add callback for "grabbed" state changes.

This is the frameworks/base part of the fix for Bug 2158434: add a new
callback to the OnDialTriggerListener interface, so the RotarySelector can
tell the app about state changes between NOTHING_GRABBED and
LEFT_HANDLE_GRABBED and RIGHT_HANDLE_GRABBED.

BUG=2158434
DRNO=timsullivan

TESTED=regular incoming calls, call waiting calls, answering a call,
rejecting a call. Also verified I didn't affect the
lock screen at all.
nternal/widget/RotarySelector.java
d9b6f14a6926dce7ad3d98e6e30b503c69c904c0 01-Oct-2009 Jim Miller <jaggies@google.com> Adjust opacity for inactive dimple in rotary widget
nternal/widget/RotarySelector.java
8550f255232eb4e4852466c5297fdc125887f5af 30-Sep-2009 Suchi Amalapurapu <asuchitra@google.com> Check if rename of backed up file fails before persisting new changes.
If not these system services will end up with inconsistent settings files
when the device runs out of storage.
Delete mangled settings file in PackageManager if the current write fails
so that we don't end up overwriting the backed up version with the
mangled version
Include null check when retrieving fwd locked resource for an existing package
nternal/os/BatteryStatsImpl.java
86aece8b4ad6d55cc9a3c185c3730d7387a46661 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I8dfd6ea8 into eclair

* changes:
Handle bad lines in /proc/wakelocks : Fix for 2124260
53b707ba26055f3b7597db5826dee64987bfb83a 30-Sep-2009 Amith Yamasani <yamasani@google.com> Handle bad lines in /proc/wakelocks : Fix for 2124260

Use the return value from the native parser to skip over bad lines. When
the wakelocks overflow, there could be empty or badly formatted lines.
Skip over them.
nternal/os/BatteryStatsImpl.java
c1a2a8296e811a2b9f8553346147be65e8a690b6 30-Sep-2009 Evan Millar <emillar@google.com> Change FasttrackBadgeWidget->QuickContactBadge and make public.

Change-Id: I9d12beeba16c2f64742b4a99d0da4ceb73525b5b
nternal/widget/ContactHeaderWidget.java
85d630020a29c24f3d51f00b5ce3f701c16f0a45 30-Sep-2009 Jim Miller <jaggies@google.com> Fix for 2139014: Allow platform customization of vibration pattern in LockScreenView.

Can be configured by config_virtualKeyVibePattern.
nternal/widget/LockPatternView.java
41e8dc02cdde381cc2d7d55bfb56d5c7f72eb86e 29-Sep-2009 Jim Miller <jaggies@google.com> Fix for 2137900: Be more conservative about poking the wakelock.

Updated after review: white space, check for null pattern listener.
nternal/widget/LockPatternView.java
13a90abcae224b85d128ded8e59398a3fc1ce4e1 28-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Adding status update attribution to ContactHeaderWidget

Change-Id: I677f8a8d805c68d95ee56cd1119cc3e97c6ae073
nternal/widget/ContactHeaderWidget.java
36ad03e1b7a0de569ecb561f8a444f111e8bd5ac 28-Sep-2009 Tadashi G. Takaoka <takaoka@google.com> Delegate exclude mimetypes to FasttrackBadgeWidget

Internal Bug: 2138745
nternal/widget/ContactHeaderWidget.java
879664e3e2e0169aba53d88f6c30c8b15858315d 27-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Adding columns to support attribution of status updates. Also renaming some columns to better describe their purpose.

Change-Id: If6d7812f38a3cfd662a5ae2387c72c4761fdf9fa
nternal/widget/ContactHeaderWidget.java
8e55eaccffeda078d7389b7fb66b0c6df347bf31 26-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Changing contact status to Presence-based

Change-Id: I35589e87f1e1743413d3f10509e9eccc333aa2fb
nternal/widget/ContactHeaderWidget.java
695800047c907960a5ecc7f9af7e031707b93b5c 26-Sep-2009 Evan Millar <emillar@google.com> Fix http://b/issue?id=2106682 (Don't show status if we don't have it).

Change-Id: I1636914ef47fc5319f2593d3e7aea33e523be3c7
nternal/widget/ContactHeaderWidget.java
bf07e03291ed9d9a263f133a05b66b3bfe58e75f 23-Sep-2009 Evan Millar <emillar@google.com> Change longClick -> click in ContactHeaderWidget.

Also don't enable it by default, but add an api to explicitly request
it.

Change-Id: I75fa4bfddba7a1800dec24e6a068eca614370a26
nternal/widget/ContactHeaderWidget.java
6ecacd40dd56d80d6b7b8454d8f4c04124c8d899 25-Sep-2009 Neel Parekh <neel@google.com> Center name when no status.
Also shows the status if exists (not actually hooked up yet though).

Bug: 2138736
nternal/widget/ContactHeaderWidget.java
3546825421cab5330583633ed854134c35d1c08d 26-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26720 into eclair

* changes:
Allow us to set the contact uri without setting the fast track's uri
c8ad6dcb8abcf5f7296faecdcfa93a01fb4011b9 25-Sep-2009 Karl Rosaen <krosaen@android.com> Optimize rotary selector widget by using bitmaps instead of drawables.

In profiling setBounds was expensive. Time per onDraw from 13.3ms to 6.59ms :)
nternal/widget/RotarySelector.java
e0fc838ebc18e327a399902cacae16bdbbc09627 24-Sep-2009 Nicolas Roard <nicolas@android.com> Fix the shortcuts
nternal/view/menu/MenuBuilder.java
ff9c54b7214e99b3182f53f3089da0503f3edddc 24-Sep-2009 Karl Rosaen <krosaen@android.com> fix bug where siilent mode dissapears when it triggers instead of animating off to the left edge.
nternal/widget/RotarySelector.java
74646ad618a9ca289efa99b4a822e66ca61b8f95 24-Sep-2009 Karl Rosaen <krosaen@android.com> Update RotarySelector to support vertical orientation, and add resolution specific assets (removing old ones).
nternal/widget/RotarySelector.java
ffa424800d0338b8b894aef2ea1e3e3344cbda7a 24-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2133206: dialogs/menus should auto-dismiss when screen turns off

Lot of infrastructure for more things to go away when "clear system dialogs"
happens, and now do this when we turn on the lock screen.

Change-Id: I567130296fe47ce82df065ed58ef21b37416ceaf
nternal/view/BaseIWindow.java
e2d034c9014919a45ddd717d4e564e73771b2fef 24-Sep-2009 Mathias Agopian <mathias@google.com> wallpaper: don't erase the background, just to repaint over it. saves 1.7 ms on some hardware
nternal/service/wallpaper/ImageWallpaper.java
eeadd3ffa29b70688593b763fcf0c84d9fc48c4c 24-Sep-2009 Neel Parekh <neel@google.com> Allow us to set the contact uri without setting the fast track's uri
nternal/widget/ContactHeaderWidget.java
c3c6621a2cf2f0d40d062dcad1c9f65485473841 23-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25879 into eclair

* changes:
Setting the default HTTP user agent at runtime init.
36dac6ae8e005f0247e44345727d1580b1623127 22-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26390 into eclair

* changes:
Bring the dimples back, and make the "spin around" animation have a fling feeling.
896264f603ad90e58557c5d3f34bc6389fff3fc5 22-Sep-2009 Karl Rosaen <krosaen@android.com> Bring the dimples back, and make the "spin around" animation have a fling feeling.

Also clean up the animation code into start/update animation functions.
nternal/widget/RotarySelector.java
de9eef1c66208c0ef1b6aab6c27ec9c5ce014d97 22-Sep-2009 Evan Millar <emillar@google.com> Add aggregated badge to ContactHeaderWidget

Change-Id: I0266828c7d560b9aefc3f58d27c217f710f1b0bb
nternal/widget/ContactHeaderWidget.java
9bbd5ee49f4a26b87273c40a955557e63f10da3b 22-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26290 into eclair

* changes:
Make IBackupTransport.finishBackup() also return an int code, since it too can return TRANSPORT_NOT_INITIALIZED (in fact that's typically how it comes).
0144516e19b9fd5415a56f8b41191187e2344bb0 22-Sep-2009 Dan Egnor <egnor@google.com> Make IBackupTransport.finishBackup() also return an int code, since it too can
return TRANSPORT_NOT_INITIALIZED (in fact that's typically how it comes).

For consistency, make other IBackupTransport methods return int instead of
boolean, and handle accordingly.

Make initializeDevice() its own method instead of a flag on performBackup().
This will be needed when un-checking the settings box anyway, and is
conceptually unrelated to whatever happens to be the first post-initialization
backup we perform. (Note that even if the init is sent separately from the
backup operation, the server will remember that an init has been done and
will *not* return NOT_INITIALIZED for the subsequent backup.)

Fix LocalTransport accordingly (trivial changes).

Handle failures more robustly in BackupManagerService -- most notably,
doQueuedBackups() was ignoring the result code of processOneBackup(), so
a NOT_INITIALIZED error would go past unseen (at least until the next
backup pass). Keep track of error code returns more universally now.
(This includes finishBackup(), of course.)
nternal/backup/IBackupTransport.aidl
nternal/backup/LocalTransport.java
fe6104fbfbba0434e78f9e21f460c71cddfe8449 21-Sep-2009 Mark Wagner <mxw@google.com> When manually setting the uri pass it through to the badge widget.
nternal/widget/ContactHeaderWidget.java
d55e18acbe444b74dc9e71eff6ea2c3eaf25fbd0 21-Sep-2009 Christopher Tate <ctate@android.com> Reset backup tracking in response to transport data-wipe notification

When attempting a backup, the transport may inform us that the backend is in an
uninitialized state. This typically means that the device's data has been wiped
after a period [e.g. 90 days] of inactivity. This means that we need to
re-store all data subject to backup, and all of our incremental state tracking
on the device is now stale.

In response, we wipe all of our recorded backup state and restart the backup
pass on all participants.
nternal/backup/BackupConstants.java
nternal/backup/IBackupTransport.aidl
nternal/backup/LocalTransport.java
d5ffa12dea99233e6a75048d82ad4daf0373191f 21-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26127 into eclair

* changes:
Uri encode phone number before passing it to query.
2acda4bead7fde78a376f823e29df0679bb68a52 21-Sep-2009 Megha Joshi <mjoshi@google.com> Uri encode phone number before passing it to query.

Fixes bug 2122926
nternal/widget/ContactHeaderWidget.java
e43530ab571e901f94361078c7c1f970a0bd27f2 21-Aug-2009 Amith Yamasani <yamasani@google.com> Track CPU speed stepping to get more accurate CPU cost per app.

More CPU speed stepping happening with newer devices, so we need
to qualify CPU time with the CPU speed, since power consumption
varies greatly by speed. Apps that peg the CPU should get a higher
penaltly.

Also, fix for 2062930: NPE at VolumePreference.onKey()
nternal/os/BatteryStatsImpl.java
nternal/os/PowerProfile.java
6b96512601bf37d840a99c8d82dcfbcc0427b33c 21-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26034 into eclair

* changes:
Clean up spin animation in rotary selector, and be even more generous for triggering.
052e187edaa3934a290c81a6efcc664b59a09b59 21-Sep-2009 Karl Rosaen <krosaen@android.com> Clean up spin animation in rotary selector, and be even more generous for triggering.
nternal/widget/RotarySelector.java
25a747f5c47f25c1a18961b03507f309b84924fe 20-Sep-2009 Christopher Tate <ctate@android.com> Add an 'init everything' operation to the first backup pass

IBackupTransport.performBackup() now takes a flag "wipeAllFirst", which if set
will result in the entire restore set for the current device/account being wiped
clean prior to the storage of the provided package. This ensures that a device
on which backup has just been enabled will not confront potentially-stale
information, nor will the restore set potentially contain mismatched data from
orphaned packages.

The Backup Manager has also been revised to pass this flag when first backing up
its master metadata block (and never pass it thereafter unless something has
caused the backup state tracking to be erased, e.g. the user has opted out of
backup and then later re-enabled it).
nternal/backup/IBackupTransport.aidl
nternal/backup/LocalTransport.java
278ec5d6f57f01fb5d9acce5794daf66f5535baa 20-Sep-2009 Karl Rosaen <krosaen@android.com> Add better transition to rotary lock widget when triggering: spin around instead of snap back.

Also add some icons and make a layout tweak, used by the lock screen (coming in a commit
to android.policy).
nternal/widget/RotarySelector.java
d0f80d445644bfc08b62339f01766b924e42dc4d 19-Sep-2009 Jesse Wilson <jessewilson@google.com> Setting the default HTTP user agent at runtime init.

I can't do this in HttpURLConnection directly, since that would
cause a forbidden dependency from Dalvik on Android.
nternal/os/RuntimeInit.java
7ff7ddf70b560e0e47f1231651b90718667c40bc 19-Sep-2009 Evan Millar <emillar@google.com> Fix http://b/issue?id=2099487

Change-Id: Ib5391cc5e9d17bc4ad964471037e7f9819802a64
nternal/widget/ContactHeaderWidget.java
5fef93b2a827cfafee04d7cfb827262c9b75fd91 18-Sep-2009 Karl Rosaen <krosaen@android.com> Some tweaks to the rotary lock widget.

- don't show arrows above widget when in resting state
- don't show other icon once you press one (e.g don't show silent mode icon when you are pressing the lock icon)
- wider target for triggering action
nternal/widget/RotarySelector.java
6a20b823c3c9de8daa1c4bc002d6e58fe82d3a60 16-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25293 into eclair

* changes:
Fix a handful of bugs in the ContactHeaderWidget
1ca654e1193010365de10f55cbfebe1521c71db4 16-Sep-2009 Karl Rosaen <krosaen@android.com> Address romain's code review comments
nternal/widget/RotarySelector.java
2c867f9b7f7e15da19fbd9642baa8b5278f274d0 15-Sep-2009 Evan Millar <emillar@google.com> Fix a handful of bugs in the ContactHeaderWidget

-http://b/issue?id=2074981 fixed
-http://b/issue?id=2088564 fixed.
-http://b/issue?id=2097374 fixed.
-http://b/issue?id=2095896 fixed.
-http://b/issue?id=2093734 fixed.

-Use FasttrackBadgeWidget.

-Also changes api in ContactsHeaderWidget to accept contact uri instead
of contact id.

Change-Id: I6623a99c7f5011387c57fc9a6861eef63174ca6e
nternal/widget/ContactHeaderWidget.java
e4d95d02a25fb6596a3bf622ba57d4145773da90 16-Sep-2009 Karl Rosaen <krosaen@android.com> Add RotarySelector widget to android.internal for use by lock screen and incoming call screen.
nternal/widget/RotarySelector.java
8d37426c754e9822feaa8c6cc0b7c13e8523e217 15-Sep-2009 Dianne Hackborn <hackbod@google.com> Various fixed for back key handling.

My last change was far from perfect. Hopefully this gets us
a little closer.

Change-Id: I413e55b6af42400b565de3040859d25d668bc9d2
nternal/view/menu/MenuDialogHelper.java
c2974809373697147cbe5754835cc871fb93aef1 14-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2116977: buttons are huge and bent

Now that we are using preloaded drawables in compatibilty mode, when
constructing them from their constant state we need to set the new
drawable's target density appropriately.

Change-Id: I3665cbea09d38b9ac5f45f8c380dc8641f86b266
nternal/view/menu/IconMenuView.java
19382ac1a4e4e7c23a1346d299368763f149de9c 12-Sep-2009 Dianne Hackborn <hackbod@google.com> Some optizations to wallpaper drawing/scrolling.

First, fix some issues with the final wallpaper bitmap
we use: ensure it is always 16bpp, and make sure dithering
of its bitmap is turned off. We take of dithering
when loading, to make sure we don't use it when drawing.

Also add new APIs to return the wallpaper with the equivalent
of Launcher's old FastBitmapDrawable. As doing this, also load
the default wallpaper the same way as custom ones, taking care to
resize it as needed at load time.

Finally implement a mechanism for the window manager to wait
for the wallpaper to redraw at its new position before returning
from the application's call to change the offset. This ensures
that the wallpaper better tracks the application. Note that there
is a timeout in this wait that is relatively short, and if it
expires we will run for a while without waiting.

Change-Id: Ife449437746da85958bd447e0a6cf3d2223b398c
nternal/os/HandlerCaller.java
nternal/service/wallpaper/ImageWallpaper.java
nternal/view/BaseIWindow.java
93f00def4b63511be91057b2bc69f1dda6f038e9 14-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24509 into eclair

* changes:
Addressed reviewer comments.
5b61bea7aba93fc812991116fbbf9c4dbccb4890 10-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24581 into eclair

* changes:
Dialog titles would sometimes use a font too large.
4bdf17c69712b28e82f15f81f39482ff096b7f67 10-Sep-2009 Romain Guy <romainguy@android.com> Dialog titles would sometimes use a font too large.

This was due to code in DialogTitle.java which would multiply the textSize of
the theme twice.

Change-Id: Id44e39e729ebd43b08c967a67cde0d33dd8f2efb
nternal/widget/DialogTitle.java
84b4d37dd1e9269f73c2a9cacadcd88ec4256e3f 10-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2099206] Encoding phone number prior to sending it to the phone lookup filter

Change-Id: I80327febe7134ac1bdef958251943a9777879d53
nternal/widget/ContactHeaderWidget.java
eec2f41d607c3eacba4f7d9cc098b335c7310d23 10-Sep-2009 Bob Lee <crazybob@google.com> Addressed reviewer comments.
nternal/os/SamplingProfilerIntegration.java
1048ad554ac64224c864f52266b5839cd91d4ee5 09-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24395 into eclair

* changes:
Make NumberPicker subclassable
fdf6db6748b32f620a7f68b13a67c38b4e59e5ed 09-Sep-2009 Tom Taylor <tomtaylor@google.com> Make NumberPicker subclassable

Make a few methods and member variables protected so behavior can be
overridden. In this case, Messaging app uses the control and doesn't
want wrap-around behavior.

Change-Id: Iceb34743b7d17e933400750a5de56b9ecfe8f146
nternal/widget/NumberPicker.java
de893f550301a60274e87aa8168225e7a7a42184 08-Sep-2009 Nick Pelly <npelly@google.com> API_CHANGE

Another round of Bluetooth API clean up, javadoc'ing and unhide'ing.

-- Symbols for getting/setting bluetooth state --
BluetoothAdapter.ACTION_STATE_CHANGED
BluetoothAdapter.EXTRA_STATE
BluetoothAdapter.EXTRA_PREVIOUS_STATE
BluetoothAdapter.STATE_OFF
BluetoothAdapter.STATE_TURNING_ON
BluetoothAdapter.STATE_ON
BluetoothAdapter.STATE_TURNING_OFF
BluetoothAdapter.isEnabled()
BluetoothAdapter.getState()
BluetoothAdapter.enable()
BluetoothAdapter.disable()

-- Symbols for getting/setting scan mode --
BluetoothAdapter.ACTION_SCAN_MODE_CHANGED
BluetoothAdapter.EXTRA_SCAN_MODE
BluetoothAdapter.EXTRA_PREVIOUS_SCAN_MODE
BluetoothAdapter.SCAN_MODE_NONE
BluetoothAdapter.SCAN_MODE_CONNECTABLE
BluetoothAdapter.SCAN_MODE_DISCOVERABLE
BluetoothAdapter.getScanMode()
BluetoothAdapter.setScanMode()

-- Symbols for getting address/names --
BluetoothAdapter.getAddress()
BluetoothAdapter.getName()
BluetoothAdapter.setName()
nternal/app/ShutdownThread.java
c4516a7b62de525e3d6d5e76851bdfaf12c11f05 03-Sep-2009 Fred Quintana <fredq@google.com> add a transaction monitor
nternal/content/SyncStateContentProviderHelper.java
eb034652c2037a47ebfd99779e8383bb8bb528af 07-Sep-2009 Dianne Hackborn <hackbod@google.com> Implement all of the infrastructure for configuring wallpapers.

Actually being able to configure a wallpaper relies on additional
work in the launcher and wallpapers that will be in another change.
Also note that this breaks all existing wallpapers, since they now
need to include a meta-data item about themselves. This also
will be fixed in another change.

Change-Id: I97d2c2bd07237abc32f92b9147c32530a2f73c71
nternal/app/ChooserActivity.java
nternal/app/ResolverActivity.java
e540833fdff4d58e37c9ba859388e24e2945ed45 05-Sep-2009 Bob Lee <crazybob@crazybob.org> Integrated the profiler into the framework. We run it all the time if the persist.sampling_profiler
system property is set. Saves snapshots to the SD card.
nternal/os/RuntimeInit.java
nternal/os/SamplingProfilerIntegration.java
nternal/os/ZygoteInit.java
b1e2a4d0d0107df4ecf4d484a340ec21dc105305 04-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Removing references to deprecated API and the deprecated API itself.
nternal/widget/ContactHeaderWidget.java
b623a7c953ae34e21212cda782aabc12c837fffd 02-Sep-2009 Jeff Hamilton <jham@android.com> Don't crash when a user taps on a fast track trigger that isn't hooked up to a contact.
nternal/widget/ContactHeaderWidget.java
72b1f379d5c97c8ff31d2201e78215af777d6bda 31-Aug-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
nternal/os/ZygoteInit.java
284ac93aa30642fda87d5c40263a1263677c21cd 28-Aug-2009 Dianne Hackborn <hackbod@google.com> More work on wallpapers: animations, lifecycle, scaling, etc.

Yet more work on improving the behavior of wallpapers. This fixes a few
problems in their lifecycle (corresponding change in the picker also
required for this), makes their animations better for hardware that supports
alpha fades, adds animations for the wallpapers themselves, eliminates
fixed size wallpapers, and adjusts the API for retrieving a wallpaper
bitmap to take care of scaling the raw wallpaper image to match the current
desired width and height.

Change-Id: If1c0aaceba4ea4e175dcb7a8416ca7ddbb9bfa6f
nternal/service/wallpaper/ImageWallpaper.java
22d1f9fb23015471de6af1a70e40fb5c82ecb665 19-Aug-2009 Danke Xie <dankex@qualcomm.com> gps: Network initiated SUPL

Initial contribution from Qualcomm.

Signed-off-by: Mike Lockwood <lockwood@android.com>
nternal/app/NetInitiatedActivity.java
678771b8118c3289aff6814775cbb30fa8aada29 21-Aug-2009 Karl Rosaen <krosaen@android.com> New strings and utlity method tweaks associated with updated account unlock screen flow.

- 'setPermanentlyLocked(false)' no longer automatically resets the pattern
- new string for "waiting to verify account" progress dialog
- new string for account unlock screen title when you aren't past the too many
attempts, but just hit the 'forgot pattern' button
nternal/widget/LockPatternUtils.java
f7eab4f78fe4bdb193a4f8caf2648d2cb3ef36ea 25-Aug-2009 Jeff Sharkey <jsharkey@android.com> Don't use deprecated API in contact header widget.

Fixes http://b/2074981
nternal/widget/ContactHeaderWidget.java
84235ee923c13e58ce339c25c86f734b338a81e0 23-Aug-2009 Jeff Sharkey <jsharkey@android.com> Add extra to exclude specific MIME-types from Fast-Track.

Also added ContactHeaderWidget accessor for passing along
this list when triggering Fast-Track. This is used so that
the header widget can hide the profile icon when launched
while already looking at the profile.
nternal/widget/ContactHeaderWidget.java
07ef599b9f35572a3a75b884febe500a6c390e7e 21-Aug-2009 Romain Guy <romainguy@android.com> Fix typo: the x offset was assigned to the y coordinate.

Also remove a couple of useless casts.
nternal/service/wallpaper/ImageWallpaper.java
60662b035c0ac0dd3b67d1bbdb54e1b6ba139148 20-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> The API for phone lookup has changed - updating Contact Header accordingly.
nternal/widget/ContactHeaderWidget.java
b22293590cb10b1d8722dbf9c226cb58f240d7d5 18-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21748 into eclair

* changes:
Get At command count from Bluetooth headset.
82cb029e2a4907ee55fed4a00493b76b3e11a7a1 18-Aug-2009 Amith Yamasani <yamasani@google.com> Get At command count from Bluetooth headset.

Pass in the BT headset object when available to the BatteryStats.
nternal/os/BatteryStatsImpl.java
bd022f423a33f0794bb53e5b0720da2d67e4631c 15-Aug-2009 Nick Pelly <npelly@google.com> Bluetooth: API change.

Split BluetoothDevice into BluetoothDevice and BluetoothAdapter.

BluetoothAdapter: Represents the local BT adapter. Operations on the local
adapter (start a scan, etc).
BluetoothDevice: Represents a remote BT device. Operations on remote devices
(pair, connect, etc).

IBluetoothDevice.aidl -> Bluetooth.aidl
BluetoothDeviceService.java -> BluetoothDeviceService.java

TODO:
Javadoc
nternal/app/ShutdownThread.java
8df8b2b405c60cacf7a66c4e2ca078dd3d7ec7bd 18-Aug-2009 Dianne Hackborn <hackbod@google.com> Allow wallpapers to get touch events.
nternal/os/HandlerCaller.java
nternal/service/wallpaper/ImageWallpaper.java
nternal/view/BaseIWindow.java
7341d7a104b47996445d069a695e155a07184606 14-Aug-2009 Dianne Hackborn <hackbod@google.com> More work on wallpapers.

- Do better about figuring out when to stop them and other related window
management.
- Fix problem where we were not redrawing the surface when the orientation
changed. This was the cause of the device hang.
nternal/service/wallpaper/ImageWallpaper.java
0cd48879dca53a9f4d449126d406527bc4b94baf 14-Aug-2009 Dianne Hackborn <hackbod@google.com> A little more wallpaper robustness.

- Recover if a live wallpaper is crashing repeatedly.
- Don't crash when someone tries to set a static wallpaper.
- Make the static wallpaper update correctly when the image changes.
nternal/service/wallpaper/ImageWallpaper.java
317a6280cc109e873646e4652be1582d870eedfd 14-Aug-2009 Mathias Agopian <mathias@google.com> Surface::GPU and Surface::HARDWARE are now deprecated; they will be set automatically if needed.

this also ripples into the window manager API by making some constant there deprecated as well.
nternal/view/BaseSurfaceHolder.java
97f3209b45dd59b814dda70f1cc90ee8bc5f1319 12-Aug-2009 Mark Wagner <mxw@google.com> more support for bindStatic
some minor tweaks to the layout in the hopes I can start using this for gtalk soon
nternal/widget/ContactHeaderWidget.java
ab13c7792e01f99f9e37c49ff11335ce36efa268 13-Aug-2009 Jeff Sharkey <jsharkey@android.com> Add methods for directly setting Contact header data.

Previously, ContactHeaderWidget only allow data binding
through helper methods, or a single static call. In the
Contacts edit UI, we need to set individual fields directly
based on internal EntityDelta states. Also added more
documentation and exposed more-direct query helpers.
nternal/widget/ContactHeaderWidget.java
9875e6117a1c106fb5d25917eb0c6206fd05a561 13-Aug-2009 Dianne Hackborn <hackbod@google.com> Should clear background.
nternal/service/wallpaper/ImageWallpaper.java
72c82ab9923025a91bbabb32e56bfea27bfd083b 12-Aug-2009 Dianne Hackborn <hackbod@google.com> Report wallpaper offset to the wallpaper, use this in the image wallpaper.

Wallpapers can now be just the size of the screen, and get told when their
scroll position should change to do the updating on their own.
nternal/os/HandlerCaller.java
nternal/service/wallpaper/ImageWallpaper.java
nternal/view/BaseIWindow.java
45e503ae91d380ebe5158927b7d6aa80e166d096 12-Aug-2009 android-build SharedAccount <android-build@sekiwake.mtv.corp.google.com> resolved conflicts for merge of 802527c6 to master skipping preloaded-classes as pre Bob
773c6341244ed0be380b8242fb6d17d53c491f56 11-Aug-2009 Evan Millar <emillar@google.com> Add presence to ContactsHeaderWidget
nternal/widget/ContactHeaderWidget.java
93187560b5130594901a723ff8023da4913db3a9 12-Aug-2009 Mark Wagner <mxw@google.com> contrary to popular belief ContentResolver.query can return null.
so check.
nternal/widget/ContactHeaderWidget.java
ef654bdd5bd957574abd4194d7b0585f3fc3fd34 12-Aug-2009 Romain Guy <romainguy@android.com> Draw the wallpaper chosen by the user
nternal/service/wallpaper/ImageWallpaper.java
b4f59bffc03575739776d91c5a61b09451042f8a 11-Aug-2009 Romain Guy <romainguy@android.com> Fix possible exception in default live wallpaper
nternal/service/wallpaper/ImageWallpaper.java
ac1e59d887651220f5367cc7fa4207b34eab774d 11-Aug-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
nternal/widget/LockPatternView.java
2e93f65cab0b4b21a1285b83e985559325e87a3a 11-Aug-2009 Bob Lee <crazybob@google.com> Updated preloaded-classes file.
nternal/os/ZygoteInit.java
ad2eaf208df515064898e0a69015e8910aa972f1 11-Aug-2009 Jeff Sharkey <jsharkey@android.com> Added long-press hooks to Contact header widget.

To match Contacts edit UI mocks, the user long-presses on
the photo or display name to select a new primary. This
change provides the hooks needed over in Contacts.
nternal/widget/ContactHeaderWidget.java
759a39e8d2a8b27ef07e102394629dce68aa186b 10-Aug-2009 Dianne Hackborn <hackbod@google.com> Live wallpapers become a little more real.

This adds a new theme for having a wallpaper, and fixes up the window manager
to do the right thing when transitioning between a windows with and without
wallpapers (between two windows with wallpapers is not yet addressed).

The wallpaper API now has callbacks to tell you when to start/stop animating.

Also fiddle the image wallpaper to be a little more interesting.
nternal/service/wallpaper/ImageWallpaper.java
4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 09-Aug-2009 Dianne Hackborn <hackbod@google.com> Very primitive wallpapers in a surface.

This is all of the basic pieces:

- The WallpaperService now creates a surface with the window manager for its
contents.
- There is a simple service that displays a bitmap.
- The wallpaper manager takes care of starting and stopping the service.
- The window manager knows about wallpaper windows and how to layer them with
the windows that want to be shown on top of wallpaper.

Lots and lots of issues remain, but at this point you can actually write a
wallpaper service, select it in the UI, and see it behind an activity.
nternal/os/HandlerCaller.java
nternal/service/wallpaper/ImageWallpaper.java
nternal/view/BaseIWindow.java
nternal/view/BaseSurfaceHolder.java
23d479588f6e591e4643ca97063c5b017122da2e 07-Aug-2009 Mark Wagner <mxw@google.com> Mods to the ContactHeaderWidget to be able to have it display strings
as passed in by the caller. For example we may want to use this in
the case when there is no contact in a given circumstance.
nternal/widget/ContactHeaderWidget.java
6bfe14dea21deec4c90ceea79b8f810164f88031 06-Aug-2009 Jeff Sharkey <jsharkey@android.com> Add SHOW_OR_CREATE size modes, trigger from contact header.

Added constants so that apps triggering SHOW_OR_CREATE can
request a desired size through EXTRA_MODE. Also added hooks
to internal ContactHeaderWidget to launch SHOW_OR_CREATE
when user taps on photo.
nternal/widget/ContactHeaderWidget.java
8db05867bd3b37f78601f7447e1371c6f709baab 04-Aug-2009 Karl Rosaen <krosaen@google.com> am 0e74f5a5: Guard against index out of bounds exception in lock pattern widget.

Merge commit '0e74f5a50b3b08c4519a040dafa895ab1f5b4d2e'

* commit '0e74f5a50b3b08c4519a040dafa895ab1f5b4d2e':
Guard against index out of bounds exception in lock pattern widget.
0e74f5a50b3b08c4519a040dafa895ab1f5b4d2e 04-Aug-2009 Karl Rosaen <krosaen@google.com> Guard against index out of bounds exception in lock pattern widget.

Fixes bug 2027516.
nternal/widget/LockPatternView.java
fc03aa78943e66c0e0f3358fc73cf3dcf28894dd 03-Aug-2009 Mark Wagner <mxw@google.com> check return value from Cursor.moveToFirst()
nternal/widget/ContactHeaderWidget.java
b3ac9318efde5de9938fea8b55b1f84addb80d4f 01-Aug-2009 Evan Millar <emillar@google.com> Adds the ContactHeaderWidget for use by system apps.

The ContactHeaderWidget is a new widget that is used as a header banner
in various system applications, including contacts, mms, and gtalk.
Convenience methods are supplied for bind the widget to a specific
contact, which can be specified by contact id, email, or phone number.
nternal/widget/ContactHeaderWidget.java
5c1207be90fdf296c1b83034b7c68915e1749284 01-Aug-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
nternal/widget/EditStyledText.java
a8675f67e33bc7337d148358783b0fd138b501ff 29-Jul-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
nternal/os/BatteryStatsImpl.java
nternal/os/PowerProfile.java
nternal/widget/LockPatternView.java
nternal/widget/NumberPicker.java
9bb8fd77c8dc177aab9ac96bed4f55972dcda70a 29-Jul-2009 Joe Onorato <joeo@android.com> Only restore the bits for wallpapers that aren't built in.
nternal/backup/SystemBackupAgent.java
e2dba02441b42afbae725109ac779877a4b72aa0 25-Jul-2009 Dianne Hackborn <hackbod@google.com> am 11ea3347: Allow for screen density drawables in compatibility mode.

Merge commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8'

* commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8':
Allow for screen density drawables in compatibility mode.
11ea33471e1a14a8594f0b2cd012d86340dd3bd8 23-Jul-2009 Dianne Hackborn <hackbod@google.com> Allow for screen density drawables in compatibility mode.

This change allows us to use drawables that match the current screen
density even when being loaded in compatibility mode. In this case,
the bitmap is loaded in the screen density, and the bitmap and
nine-patch drawables take care of accounting for the density difference.

This should be safe for existing applications, for the most part, since
they shouldn't really be pulling the bitmap out of the drawable. For
the small rare chance of them breaking, it worth getting the correct
graphics. Also this will only happen when there is actually a resource
of the matching density, and no existing apps should have resources for
anything besides the default density (though of course all of the
framework resources will be available in the native density).

As part of this, the bitmap density API has been changed to a single
integer provider the DPI unit density.
nternal/widget/EditStyledText.java
cf4550c3198d6b3d92cdc52707fe70d7cc0caa9f 21-Jul-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
nternal/app/IBatteryStats.aidl
nternal/backup/IBackupTransport.aidl
nternal/backup/LocalTransport.java
nternal/backup/SystemBackupAgent.java
nternal/os/BatteryStatsImpl.java
nternal/os/PowerProfile.java
nternal/os/ZygoteInit.java
nternal/util/BitwiseInputStream.java
nternal/util/BitwiseOutputStream.java
a695d185f11b2b03ecf0e0f796621fb00bfe7855 21-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am ef1a92ab: Merge change 7961 into donut

Merge commit 'ef1a92abe1bebe4feba4ba33cd0c7e25ee83fcc0'

* commit 'ef1a92abe1bebe4feba4ba33cd0c7e25ee83fcc0':
Bluetooth at command tracking.
3f7e35c2c7d3d7f08f50c1d93cd16b1f49354ccc 14-Jul-2009 Amith Yamasani <yamasani@google.com> Bluetooth at command tracking.
nternal/os/BatteryStatsImpl.java
nternal/os/PowerProfile.java
4764605109a0dd993a805b368897f93ab29e8996 15-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am fa8904a6: Merge change 7012 into donut

Merge commit 'fa8904a683903524ed9749f296e80381e5820178'

* commit 'fa8904a683903524ed9749f296e80381e5820178':
Fix couple of issues in DatePicker
2bf761c20253222a763bce9a63d14c48ab08a556 14-Jul-2009 Suchi Amalapurapu <asuchitra@google.com> Fix couple of issues in DatePicker
The NumberPicker's listener needs to be invoked only if
the current value changes when validating input.
This removes the some unwanted duplicate calls to onChanged.
Adjust day for month and leap years. note that updateDaySpinner
directly sets the value on day picker and doesn't invoke the
listener twice
nternal/widget/NumberPicker.java
0f4e1ab773d4d52bfb85a9ad2f050ead3b8b4e49 10-Jul-2009 Fred Quintana <fredq@google.com> - remove an un-needed constant
- add a content provider helper that manages a table for storing sync state by account
- add contact definitions to Contacts access the sync state
nternal/content/SyncStateContentProviderHelper.java
8a72cd9c7dd907b934bbe94955a18b3f2fa5ee71 12-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 1c9fb40c: Merge change 6845 into donut

Merge commit '1c9fb40cb6dbfeee58c41a43852c5b94a1b83613'

* commit '1c9fb40cb6dbfeee58c41a43852c5b94a1b83613':
Use MeasureSpec.getWidth instead of default display in lock pattern widget.
6a109b4874b79d9bf8f5d990bfe831a59e5a83dc 11-Jul-2009 Karl Rosaen <krosaen@google.com> Use MeasureSpec.getWidth instead of default display in lock pattern widget.
nternal/widget/LockPatternView.java
0a04ca7c97a82ad7afa8fa9d6c3a93964a588c07 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 7c5ae202: Merge change 6104 into donut

Merge commit '7c5ae202c53be1ab4881a6811aa5bd091c3aef10'

* commit '7c5ae202c53be1ab4881a6811aa5bd091c3aef10':
Add a "clear backed-up data" method to the backup mechanism
ee0e78af5af3bf23dd928fe5e0ebeb39157eaf66 02-Jul-2009 Christopher Tate <ctate@google.com> Add a "clear backed-up data" method to the backup mechanism

It's now possible to ask that the backup manager wipe the saved data for a given
application from the backing store. LocalTransport implements this now but the
Google backend does not yet. When the data is wiped, the on-device backup state
is also wiped to ensure that the next backup pushes all necessary data.

Bmgr has not yet been modified to actually call into this method, but it will
be soon.
nternal/backup/IBackupTransport.aidl
nternal/backup/LocalTransport.java
f7b2146edc5ea8f6d8fb21007f18efa347489ba5 30-Jun-2009 Tammo Spalink <tammo@google.com> am c25dbf88: add comment about endianness

Merge commit 'c25dbf88fc21c707b72502c43695c2c31ff22a23'

* commit 'c25dbf88fc21c707b72502c43695c2c31ff22a23':
add comment about endianness
1f9508ce4d55626f6a9ed40d7d3852d4494415e9 30-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am ae352273: Merge change 5192 into donut

Merge commit 'ae3522734ef83254626cacee18a9490f6af62415'

* commit 'ae3522734ef83254626cacee18a9490f6af62415':
make BitwiseInputStream.read return int
c25dbf88fc21c707b72502c43695c2c31ff22a23 28-Jun-2009 Tammo Spalink <tammo@google.com> add comment about endianness
nternal/util/BitwiseInputStream.java
nternal/util/BitwiseOutputStream.java
ae3522734ef83254626cacee18a9490f6af62415 26-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5192 into donut

* changes:
make BitwiseInputStream.read return int
7f94b60c6d22a0dad41cdbc4fadfc0bc70a8ebac 26-Jun-2009 Christopher Tate <ctate@google.com> am 5cb400bd: Keep track of backup state independently for each transport

Merge commit '5cb400bd72726c22f641f334951b35ce2ddcfeef'

* commit '5cb400bd72726c22f641f334951b35ce2ddcfeef':
Keep track of backup state independently for each transport
5cb400bd72726c22f641f334951b35ce2ddcfeef 26-Jun-2009 Christopher Tate <ctate@google.com> Keep track of backup state independently for each transport

Backup transports now provide the Backup Manager with a suggested name with
which it can disambiguate any transport-specific bookkeeping that it needs to
maintain. The Manager keeps separate application backup 'state blobs' for each
transport now, preventing things from getting out of step if the device is
switched among multiple transports.

Also, the metadata backup agent is always invoked now on each backup pass. This
is cheap when there is nothing to do, but also strongly ensures that we never
wind up in a situation where a given transport destination has not been given
all of the metadata necessary for the backup set.
nternal/backup/IBackupTransport.aidl
nternal/backup/LocalTransport.java
2383415ab982ff156a85929f58029c0b863750c5 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am f881762f: Merge change 5351 into donut

Merge commit 'f881762f97c74253bbc7f629380bb65739457041'

* commit 'f881762f97c74253bbc7f629380bb65739457041':
Add a method to Process to get uid for a pid.
819f928f6a9dc3fdf408236f33e17f03a7dfed2c 25-Jun-2009 Amith Yamasani <yamasani@google.com> Add a method to Process to get uid for a pid.

Use the uids to track native processes. Cache the uids to avoid
checking /proc every time.
nternal/os/BatteryStatsImpl.java
cc79800a741e4ee55ecfa7ec236b0087d83e41e4 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 5416d7c9: Merge change 5317 into donut

Merge commit '5416d7c905e723a978ac29ccaf22a91b76e9d5c2'

* commit '5416d7c905e723a978ac29ccaf22a91b76e9d5c2':
Start backing up wallpaper
111bd4acdb378266221b430a284f88a3990a3958 25-Jun-2009 Christopher Tate <ctate@google.com> Start backing up wallpaper

This CL does the following:
+ adds an AbsoluteFileBackupHelper class for managing backup of files
known by absolute path, not based off of the app's getFilesDir() root
+ bumps up the collection interval from its testing-only default of 1 second
to 3 minutes
+ adds a SystemBackupAgent class to the main system package and names it as
the android:backupAgent for the main OS package. Right now this agent
only backs up & restores the wallpaper file.
+ amend the Wallpaper Service to inform the Backup Manager when the wallpaper
changes.

On the subject of the 3-minute collection interval before the backup actually
occurs: this can be short-circuited from an adb shell. Running the command
'bmgr run' will cause the Backup Manager to kick off any pending backup
operations immediately.
nternal/backup/SystemBackupAgent.java
e23ad63adf02e0079c75cba1cac912c08cae5c49 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 67669c9c: Merge change 5196 into donut

Merge commit '67669c9c1753b062fe2a71f89b589d01b32ba0f7'

* commit '67669c9c1753b062fe2a71f89b589d01b32ba0f7':
Modify the IBackupTransport API to support bulk restore operations.
efe52647f6b41993be43a5f47d1178bb0468cec8 24-Jun-2009 Dan Egnor <egnor@google.com> Modify the IBackupTransport API to support bulk restore operations.
Change the BackupManagerService and LocalTransport to support the new API.
nternal/backup/IBackupTransport.aidl
nternal/backup/LocalTransport.java
4c74637833c6dc41f5c51897cd78a037e0cc18ee 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 3e376a74: Merge change 5171 into donut

Merge commit '3e376a74b3edd8c311e8d69ca5baf986c9da4a06'

* commit '3e376a74b3edd8c311e8d69ca5baf986c9da4a06':
Track native processes and airplane mode.
32dbefda71c50bf848da21fb5d1255273439f90d 19-Jun-2009 Amith Yamasani <yamasani@google.com> Track native processes and airplane mode.

Turn signal strengths on/off when toggling airplane mode.
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
nternal/os/PowerProfile.java
326c66d888f9b3ce82af93fe63e4828a4a4e3fbe 24-Jun-2009 Tammo Spalink <tammo@google.com> make BitwiseInputStream.read return int

Keep the maximum access 8 bits to avoid dealing with
endianness issues.
nternal/util/BitwiseInputStream.java
nternal/util/BitwiseOutputStream.java
3618160a1a10ab7574f14e0e5a45fe79ec660a64 23-Jun-2009 Dianne Hackborn <hackbod@google.com> am 2e418428: Possibly fix an issue where we thought an app was always using GPS.

Merge commit '2e418428987132ea66533cbc05f9c526eb59519a'

* commit '2e418428987132ea66533cbc05f9c526eb59519a':
Possibly fix an issue where we thought an app was always using GPS.
2e418428987132ea66533cbc05f9c526eb59519a 23-Jun-2009 Dianne Hackborn <hackbod@google.com> Possibly fix an issue where we thought an app was always using GPS.

There may be some race conditions in the gps provider where it can cause a uid
to be double booked for gps usage and never released. Address this by tweaking
some locking (so mLocation and the uid array are protected by a lock both when
reading and writing). Also add some code to log a warning if someone tries to
note a particular uid multiple times, since the code will break in that case.

Finally, fix a problem in the battery stats where we weren't allowing a new Uid
structure to be created in many cases for calls coming in.
nternal/os/BatteryStatsImpl.java
5196d12a12dfcfb8b7deb74d74d69496f8e12b02 23-Jun-2009 Christopher Tate <ctate@google.com> am 3a31a93b: Add some global metadata to the restore set

Merge commit '3a31a93b8a195ae2d0180e6dfbf292da2e581f50'

* commit '3a31a93b8a195ae2d0180e6dfbf292da2e581f50':
Add some global metadata to the restore set
3a31a93b8a195ae2d0180e6dfbf292da2e581f50 23-Jun-2009 Christopher Tate <ctate@google.com> Add some global metadata to the restore set

In addition to the signatures of each participating application, we now also
store the versionCode of each backed-up package, plus the OS version running on
the device that contributed the backup set. We also refuse to process a backup
from a later OS revision to an earlier one, or from a later app version to an
earlier.

LocalTransport has been modified as well to be more resilient to changes in the
system's use of metadata pseudopackages.
nternal/backup/LocalTransport.java
f923ed6ff76a0fd022bcc83e748e82266ba4ed1b 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 5502f04c: Merge change 4709 into donut

Merge commit '5502f04c1dcf2b1918858bacb99fb0480a711707'

* commit '5502f04c1dcf2b1918858bacb99fb0480a711707':
backup stuff
5d605dc56b036232e885f6ec36b888b729673060 19-Jun-2009 Joe Onorato <joeo@android.com> backup stuff
nternal/backup/LocalTransport.java
c452b4e86e5ff6ea4811d9d5041d06e541c43bb3 18-Jun-2009 Christopher Tate <ctate@google.com> am e9190a27: Base64 the keys to make filenames in LocalTransport

Merge commit 'e9190a2750e1fb67e300d2c128227cc9b7339efe'

* commit 'e9190a2750e1fb67e300d2c128227cc9b7339efe':
Base64 the keys to make filenames in LocalTransport
c0f088b06b1b09157f5727246dcf3ebb6ac7b17b 18-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 3c2f8e66: Merge change 4456 into donut

Merge commit '3c2f8e6651178742bc685e7bd62fa8a6ca409a74'

* commit '3c2f8e6651178742bc685e7bd62fa8a6ca409a74':
Replace the stub GoogleTransport with callout to the
72dcea1eed882123c3f9285f2ab908f530993609 18-Jun-2009 Joe Onorato <joeo@android.com> am 83248c43: backup fixes:

Merge commit '83248c432ffe2e2a17abbc8e4960c26574b46bca'

* commit '83248c432ffe2e2a17abbc8e4960c26574b46bca':
backup fixes:
e9190a2750e1fb67e300d2c128227cc9b7339efe 18-Jun-2009 Christopher Tate <ctate@google.com> Base64 the keys to make filenames in LocalTransport
nternal/backup/LocalTransport.java
3c2f8e6651178742bc685e7bd62fa8a6ca409a74 18-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 4456 into donut

* changes:
Replace the stub GoogleTransport with callout to the GoogleTransportService (which lives in vendor/google). Use the Google transport by default. Also, fix a bug: Thread.run() != Thread.start()
87a02bcf68dd4cc1f6d9fdcee3d1ebc9b04cf1f8 17-Jun-2009 Dan Egnor <egnor@google.com> Replace the stub GoogleTransport with callout to the
GoogleTransportService (which lives in vendor/google).
Use the Google transport by default.
Also, fix a bug: Thread.run() != Thread.start()
nternal/backup/GoogleTransport.java
83248c432ffe2e2a17abbc8e4960c26574b46bca 18-Jun-2009 Joe Onorato <joeo@android.com> backup fixes:

- BackupTestAgent calls the DispatchHelper
- Make BackupAgent.onRestore take a BackupDataInput, not just a
generic ParcelFileDescriptor.
nternal/backup/LocalTransport.java
251c89c0a7502f4286f2484a77b685ddfe2b39d2 18-Jun-2009 Joe Onorato <joeo@android.com> am 5f15d151: checkpoint BackupDatAInput / RestoreHelper

Merge commit '5f15d151b5101fadfe6cba1e8f4aa6367e8c603e'

* commit '5f15d151b5101fadfe6cba1e8f4aa6367e8c603e':
checkpoint BackupDatAInput / RestoreHelper
1bd88ca88f8b89dbf09697b8eddc4703e266a654 18-Jun-2009 Christopher Tate <ctate@google.com> am aa088447: Hold the current transport instantiated all the time.

Merge commit 'aa088447baadd2e0bbcfd18cc529645610c13ddc'

* commit 'aa088447baadd2e0bbcfd18cc529645610c13ddc':
Hold the current transport instantiated all the time.
5f15d151b5101fadfe6cba1e8f4aa6367e8c603e 16-Jun-2009 Joe Onorato <joeo@android.com> checkpoint BackupDatAInput / RestoreHelper
nternal/backup/LocalTransport.java
aa088447baadd2e0bbcfd18cc529645610c13ddc 17-Jun-2009 Christopher Tate <ctate@google.com> Hold the current transport instantiated all the time.

We no longer instantiate the transport just for the duration of handling a
backup or restore operation. Instead, we hold the object forever (replacing it
if instructed to do so). This makes it easier for transports to watch system
state and help set backup timing policy.

Also fixes up the IBackupTransport documentation a bit.
nternal/backup/IBackupTransport.aidl
714000456b74dfc08c5100ce38bfe8cdd54e6571 17-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am febde5fc: Merge change 4389 into donut

Merge commit 'febde5fc290eb422f78b47f393dc451394751d59'

* commit 'febde5fc290eb422f78b47f393dc451394751d59':
More bmgr work; fix clear-data signalling
f68eb500f99361541049e09eb7f9ddd6f4ef4efa 16-Jun-2009 Christopher Tate <ctate@google.com> More bmgr work; fix clear-data signalling

The 'list sets' and 'restore token#' commands from bmgr now do what they are
supposed to. At this point we see the restore target's data being cleared
properly and its agent being launched and invoked for restore.
nternal/backup/LocalTransport.java
dac6f5fc337bb429012d0217de7a9028238e40e7 15-Jun-2009 Christopher Tate <ctate@google.com> am 8e55eac9: Bring the test transport\'s restore code into line

Merge commit '8e55eac96d768a4de68a091f57487deadf6d0a87'

* commit '8e55eac96d768a4de68a091f57487deadf6d0a87':
Bring the test transport's restore code into line
8e55eac96d768a4de68a091f57487deadf6d0a87 15-Jun-2009 Christopher Tate <ctate@google.com> Bring the test transport's restore code into line

It now reconstructs the backup data stream as it was originally structured, no
longer assuming that its backed-up records can simply be concatenated into the
destination stream.
nternal/backup/LocalTransport.java
daf701fa6250ae89ad93e2e41127e0f676a322a5 15-Jun-2009 Christopher Tate <ctate@google.com> am 2fdd428e: Fix some backup reader/writer issues; make local transport do backup

Merge commit '2fdd428e0f18384160f7c38ce3a2cd9ba7e7b2c2'

* commit '2fdd428e0f18384160f7c38ce3a2cd9ba7e7b2c2':
Fix some backup reader/writer issues; make local transport do backup
Fix the jni initializer.
Add RestoreFileHelper, BackupDataInput, and add java wrappers for the methods on BackupDataOutput.
Fix bug #1812041: activity manager crash with bad args.
Journal backup requests so that they won't be lost in a crash
Fix data connection issues.
2fdd428e0f18384160f7c38ce3a2cd9ba7e7b2c2 13-Jun-2009 Christopher Tate <ctate@google.com> Fix some backup reader/writer issues; make local transport do backup

As of this change, LocalTransport is successfully propagating data changes from
the backup data format into a repository stored in /cache/backup/[packagename].
Each backup key gets a separate file there for ease of manipulation and testing.

The general semantics of BackupDataReader have been tweaked, too; it now just
returns simple "we're done with the data" when it hits the end, even if no
footer has been found, because on the writing side the footer isn't being
written. Also, reading an entity now merely requires a "big enough" buffer, not
an exactly-sized one.

This is all a work in progress, but this is at least working now for purposes of
this local transport.

Still to do: proper change vs deletion detection, as well as expanding the data
format itself to include necessary metadata etc.
nternal/backup/LocalTransport.java
0c32f14ef117e37e22dae4a7b7f8de804a1b855d 11-Jun-2009 Christopher Tate <ctate@google.com> am 9bbc21a7: Flesh out restore interface on manager; work up most of LocalTransport

Merge commit '9bbc21a773cbdfbef2876a75c32bda5839647751'

* commit '9bbc21a773cbdfbef2876a75c32bda5839647751':
Flesh out restore interface on manager; work up most of LocalTransport
a50b795161ec8c8d367b94d06afb45e7213614ef 11-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am b6391d63: Merge change 3857 into donut

Merge commit 'b6391d6377883586995127c9926c1b5b8035fd60'

* commit 'b6391d6377883586995127c9926c1b5b8035fd60':
Allow arrays of values for power profile data.
9bbc21a773cbdfbef2876a75c32bda5839647751 11-Jun-2009 Christopher Tate <ctate@google.com> Flesh out restore interface on manager; work up most of LocalTransport
nternal/backup/AdbTransport.java
nternal/backup/LocalTransport.java
3718aaabe6259dcf86a3666ff92d16e4be5da555 09-Jun-2009 Amith Yamasani <yamasani@google.com> Allow arrays of values for power profile data.

Parse arrays for data that has different levels with non-linear
power increase.
Track radio data awake_time from kernel and mobile/total data
transfers.
Use dummy values for default power_profile.xml. Actual values will
be in a product overlay.
nternal/os/BatteryStatsImpl.java
nternal/os/PowerProfile.java
1b2e618bdfe5840f450a6899de548a095739e2ba 10-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 9e09e0f4: Merge change 3724 into donut

Merge commit '9e09e0f439ab30b8856d46827623652d09b7477b'

* commit '9e09e0f439ab30b8856d46827623652d09b7477b':
zygote: Add CAP_SYS_NICE to system server capabilities
9e09e0f439ab30b8856d46827623652d09b7477b 10-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3724 into donut

* changes:
zygote: Add CAP_SYS_NICE to system server capabilities
21444c54273a98051523e66f86d32c5b15acfa08 10-Jun-2009 Christopher Tate <ctate@google.com> am df01deaa: More restore plumbing, plus add suggested-backoff to transport API

Merge commit 'df01deaacff82b918b4f0ba774d5ad3087543629'

* commit 'df01deaacff82b918b4f0ba774d5ad3087543629':
More restore plumbing, plus add suggested-backoff to transport API
df01deaacff82b918b4f0ba774d5ad3087543629 10-Jun-2009 Christopher Tate <ctate@google.com> More restore plumbing, plus add suggested-backoff to transport API

Adds most of the code for a background-thread restore process, structured much
like the backup thread. Broke some common functionality out into a helper
function for doing a synchronous wait for a requested agent to attach.

Added a method to IBackupTransport whereby the transport will be asked for
an opinion on whether this is a good time for a backup to happen. It will
reply with the results of its policymaking around backoff intervals, time-of-day
selection, etc.
nternal/backup/AdbTransport.java
nternal/backup/GoogleTransport.java
nternal/backup/IBackupTransport.aidl
1caefa6c40a732dbe75b0782f0aa3147017c38d0 10-Jun-2009 San Mehat <san@google.com> zygote: Add CAP_SYS_NICE to system server capabilities

Signed-off-by: San Mehat <san@google.com>
nternal/os/ZygoteInit.java
a92f6964077e5a5bdb9e51b8abfdd08e69ab733c 09-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am d2d058b7: Merge change 3506 into donut

Merge commit 'd2d058b7d657e73255c3665c8b2f63845a8d25d0'

* commit 'd2d058b7d657e73255c3665c8b2f63845a8d25d0':
Revamp IRestoreSession a bit
9b3905c4a25f2d785ce7535d1f2e1540b46bb561 09-Jun-2009 Christopher Tate <ctate@google.com> Revamp IRestoreSession a bit

We now supply an array of RestoreSet objects instead of wacky Bundle
shenanigans. Also, pushed beginRestoreSession() out to the BackupManager
concrete interface class so that SetupWizard can use it.

(beginRestoreSession() is @hide, non-privileged apps cannot use it. It's
also guarded by android.permission.BACKUP enforcement.)
nternal/backup/AdbTransport.java
nternal/backup/GoogleTransport.java
nternal/backup/IBackupTransport.aidl
bd235f10a9873c1f94cd44519c1e0cd118c5a8ab 08-Jun-2009 Christopher Tate <ctate@google.com> am 8c850b79: Add IRestoreSession interface for the restore flow

Merge commit '8c850b792f2d371fd8a4aff146d9d757ee982539'

* commit '8c850b792f2d371fd8a4aff146d9d757ee982539':
Add IRestoreSession interface for the restore flow
8c850b792f2d371fd8a4aff146d9d757ee982539 08-Jun-2009 Christopher Tate <ctate@google.com> Add IRestoreSession interface for the restore flow

Restore is a fairly complicated, somewhat stateful process, so we introduce
a new interface to encapsulate the various bits and pieces into a nicely
separable component. In particular, this will make it much cleaner to
open and interrogate an expensive-to-construct transport and then reuse it
for the actual restore process itself.
nternal/backup/AdbTransport.java
nternal/backup/GoogleTransport.java
nternal/backup/IBackupTransport.aidl
53c31ed1ff2880e6b9b387a291a3f3e938fc9295 08-Jun-2009 Christopher Tate <ctate@google.com> am b4a6188a: Add rough-draft restore API set to IBackupTransport

Merge commit 'b4a6188a74273611abcae05f3a3b1f0547548301'

* commit 'b4a6188a74273611abcae05f3a3b1f0547548301':
Add rough-draft restore API set to IBackupTransport
b4a6188a74273611abcae05f3a3b1f0547548301 08-Jun-2009 Christopher Tate <ctate@google.com> Add rough-draft restore API set to IBackupTransport

* getAvailableBackups returns the list of backup sets available for restore

* getAppSet() returns the set of apps available from a given backup set

* getRestoreData() streams the full backup data for a given application
(within a given backup set) into a FD; that data will be handed to the
app's backup agent for processing.
nternal/backup/AdbTransport.java
nternal/backup/GoogleTransport.java
nternal/backup/IBackupTransport.aidl
4dde34b2f0e69a5a3e53e06614da89b9e4afc3e8 07-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am da55569b: Merge change 3417 into donut

Merge commit 'da55569b0aaf98ff4d472d85ae1b038e76e1e9c3'

* commit 'da55569b0aaf98ff4d472d85ae1b038e76e1e9c3':
Adjust IBackupTransport interface
7b88128e08ba45b071cd714dad9681ce66920d32 07-Jun-2009 Christopher Tate <ctate@google.com> Adjust IBackupTransport interface

Instead of just passing a package name to performBackup, pass the whole
PackageInfo struct, explicitly including the list of signatures for the package.
No need to make each transport look this up individually when it's a necessary
part of the backup payload for each app.
nternal/backup/AdbTransport.java
nternal/backup/GoogleTransport.java
nternal/backup/IBackupTransport.aidl
ce74edc7eab6b1270577ac7a369243a9cac333e6 03-Jun-2009 Christopher Tate <ctate@google.com> More backup work

* Put in some permission enforcement around agent connection notification
and full-backup scheduling.
* Full backup now applies to any package, not just backup participants who
have declared their own android:backupAgent
* The process of running the backup operation on the set of apps who have
been queued for it is now done in a separate thread, with a notification
mechanism from the main Backup Manager service to pass along new-agent
binding knowledge. There's no longer one do-backup message on the primary
Handler per target application.
* The new backup thread sets up the desired transport now and passes
along the newly backed-up data to it for each backup target. Two
transports have been defined so far, GoogleTransport and AdbTransport;
both are stubs at present.

Note that at present the backup data output file seems to be properly
created, but after doBackup() is called on the test app's agent it's
still zero size.
nternal/backup/AdbTransport.java
nternal/backup/GoogleTransport.java
nternal/backup/IBackupTransport.aidl
043dadc7516d20c3b3ccbcb20c53aaeef076a237 03-Jun-2009 Christopher Tate <ctate@google.com> More backup work

* Put in some permission enforcement around agent connection notification
and full-backup scheduling.
* Full backup now applies to any package, not just backup participants who
have declared their own android:backupAgent
* The process of running the backup operation on the set of apps who have
been queued for it is now done in a separate thread, with a notification
mechanism from the main Backup Manager service to pass along new-agent
binding knowledge. There's no longer one do-backup message on the primary
Handler per target application.
* The new backup thread sets up the desired transport now and passes
along the newly backed-up data to it for each backup target. Two
transports have been defined so far, GoogleTransport and AdbTransport;
both are stubs at present.

Note that at present the backup data output file seems to be properly
created, but after doBackup() is called on the test app's agent it's
still zero size.
nternal/backup/AdbTransport.java
nternal/backup/GoogleTransport.java
nternal/backup/IBackupTransport.aidl
138197f961b671ff5b48785b0fe61477ebfc7627 04-Jun-2009 Amith Yamasani <yamasani@google.com> am eaeb663b: Track activity foreground CPU usage for battery stats.

Merge commit 'eaeb663bcd7a82b654954b42663232cbd7bef7e7'

* commit 'eaeb663bcd7a82b654954b42663232cbd7bef7e7':
Track activity foreground CPU usage for battery stats.
eaeb663bcd7a82b654954b42663232cbd7bef7e7 04-Jun-2009 Amith Yamasani <yamasani@google.com> Track activity foreground CPU usage for battery stats.

Track the foreground CPU time of an activity so that we can tell if apps are
spending more time in the background compared to foreground.
Update power profile values for screen backlight and GPS.
Fix some javadoc bugs (milliseconds vs. microseconds).
nternal/os/BatteryStatsImpl.java
85a2fb07c277ffe00839a522074de0302b8d49b8 28-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 145c989c: Merge change 2569 into donut

Merge commit '145c989cafe72d99af120044fed256ac2f982568'

* commit '145c989cafe72d99af120044fed256ac2f982568':
Fix a hang during bootup.
c33fe6c9a71008d51aab7775532d73a3eaf12370 28-May-2009 Amith Yamasani <yamasani@google.com> Fix a hang during bootup.

Some data was not being written to the battery stats during shutdown. So there was insufficient
data when reading back at bootup.
nternal/os/BatteryStatsImpl.java
a742dc421bd17117ec802b944190a1c731e05a91 23-May-2009 Android (Google) Code Review <android-gerrit@google.com> am fea1a459: Merge change 2364 into donut

Merge commit 'fea1a459aaebc5fd66b12520312ddbe09547f094'

* commit 'fea1a459aaebc5fd66b12520312ddbe09547f094':
Initial checkin for App Fuel Gauge infrastructure.
244fa5c05b2cc8c4c0754aeed4ee42c588ea89d1 22-May-2009 Amith Yamasani <yamasani@google.com> Initial checkin for App Fuel Gauge infrastructure.

This adds the PowerProfile class and data file that provides power consumption numbers
for different subsystems. Also added Audio/Video subsystems to track on a per UID basis.
nternal/os/BatteryStatsImpl.java
nternal/os/PowerProfile.java
681b1de3c7188b33cd02f189d50cb2cadd6af73a 20-May-2009 Android (Google) Code Review <android-gerrit@google.com> am a5ca3425: Merge change 2017 into donut

Merge commit 'a5ca3425f9cbb930dc62559893590432ed29c961'

* commit 'a5ca3425f9cbb930dc62559893590432ed29c961':
Increment BatteryStatsImpl's VERSION.
843ef36f7b96cc19ea7d2996b7c8661b41ec3452 20-May-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
nternal/app/IBatteryStats.aidl
nternal/app/IUsageStats.aidl
nternal/app/ShutdownThread.java
nternal/backup/IBackupTransport.aidl
nternal/os/AtomicFile.java
nternal/os/BatteryStatsImpl.java
nternal/util/BitwiseInputStream.java
nternal/util/BitwiseOutputStream.java
nternal/util/TypedProperties.java
nternal/view/menu/IconMenuView.java
58ff0217a617d5b03d18f0ef532f254f8ba6de2b 20-May-2009 Robert Greenwalt <robdroid@android.com> Increment BatteryStatsImpl's VERSION.
That'll make it stop trying to interpret older records with the new format.
Also applied other comments involving name changes to remove un-needed 'Wifi' labels in WifiManager API, etc.
nternal/os/BatteryStatsImpl.java
ad8195bb0ea9ed087519d899402571c8608c0b48 19-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 2f11599e: Merge change 1579 into donut

Merge commit '2f11599eb317887a8cca14d8e66bfc485e5169e7'

* commit '2f11599eb317887a8cca14d8e66bfc485e5169e7':
Teleca 2b changes
e9b06d754af03faf27012fbed1e7559ec1ba7c79 19-May-2009 Wink Saville <wink@google.com> Teleca 2b changes
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
780d61dd97ace088463fe325e548282f9d566213 15-May-2009 Android (Google) Code Review <android-gerrit@google.com> am d1f7b3a5: Merge change 1704 into donut

Merge commit 'd1f7b3a5720a4d6d92c4eea5a1fe812a790a7442'

* commit 'd1f7b3a5720a4d6d92c4eea5a1fe812a790a7442':
New feature to track down #1846038. Adds the ability to export flags encoded in int values so as to make them human readable in HierarchyViewer.
d1f7b3a5720a4d6d92c4eea5a1fe812a790a7442 15-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 1704 into donut

* changes:
New feature to track down #1846038. Adds the ability to export flags encoded in int values so as to make them human readable in HierarchyViewer.
809a7f6080312f3e12f1a3a30eacf0e0c7627305 15-May-2009 Romain Guy <romainguy@android.com> New feature to track down #1846038. Adds the ability to export flags encoded in int values so as to make them human readable in HierarchyViewer.
nternal/view/menu/IconMenuView.java
aa2b7237d1e8c0c833fc19cd9d25a8d3700244a4 14-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 2a5cfe51: Merge change 1590 into donut

Merge commit '2a5cfe519298702ef71ff8755b14f8daf6a92b2a'

* commit '2a5cfe519298702ef71ff8755b14f8daf6a92b2a':
Add wifi multicast filter api (enable/disable).
afee71a9997efd2c05d066e1bd98d68298ae87f7 14-May-2009 Marco Nelissen <marcone@google.com> am fafb16c5: Fix typo

Merge commit 'fafb16c5ae18816bd048428e60f46aec1e993b20'

* commit 'fafb16c5ae18816bd048428e60f46aec1e993b20':
Fix typo
2a5cfe519298702ef71ff8755b14f8daf6a92b2a 14-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 1590 into donut

* changes:
Add wifi multicast filter api (enable/disable). Fixes 1833432. Automatically re-disables any request when the app exits/crashes. Also hooked into Battery Stats for power managment analysis.
fafb16c5ae18816bd048428e60f46aec1e993b20 14-May-2009 Marco Nelissen <marcone@google.com> Fix typo
nternal/util/BitwiseOutputStream.java
5347bd4cda2b6afc18f8acab48e52131f35ed13c 14-May-2009 Robert Greenwalt <robdroid@android.com> Add wifi multicast filter api (enable/disable).
Fixes 1833432. Automatically re-disables any request when the app
exits/crashes. Also hooked into Battery Stats for power managment analysis.
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
3531fdb1d9a0ca536bd7a7a27d35b3e62c318ad9 08-May-2009 The Android Open Source Project <initial-contribution@android.com> merge 55280a9

Merge commit '55280a9'
55280a91884b9256e8db6af6a09f28b3feeaa9d8 08-May-2009 Dianne Hackborn <hackbod@google.com> Improve shutdown process to send broadcast for applications.

This introduces a new class in the base platform for performing a clean
shutdown (which was copied from the classes in the policies). It
includes new features to send a shutdown broadcast for applications
to do cleanup, and ot have the activity manager pause the current
activity before proceeding with the shutdown. These facilities are
also use to write at the most recent stat files for sync, battery
and user activity.
nternal/app/ShutdownThread.java
17f9599fd619f728b34a3b21de6ad636b3253ed3 08-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 17a5e5d: Merge change 1217 into donut

Merge commit '17a5e5de3d864842b723efe24650863db0656a14'

* commit '17a5e5de3d864842b723efe24650863db0656a14':
Sketch out the IBackupTransport api
e10be807872a88f872bef96d1fd5a1d9f78af282 08-May-2009 Christopher Tate <ctate@google.com> Sketch out the IBackupTransport api
nternal/backup/IBackupTransport.aidl
7a1355950172b7a549820e9a2cd4a9b2099ec32f 06-May-2009 Dianne Hackborn <hackbod@google.com> merged 231cc608d06ffc31c24bf8aa8c8275bdd2636581
231cc608d06ffc31c24bf8aa8c8275bdd2636581 28-Apr-2009 Dianne Hackborn <hackbod@google.com> Rewrite SyncStorageEngine to use flat files and in-memory data structures.

The previous implementation used a database for storing all of its state, which could cause
a significant amount of IO activity as its tables were updated through the stages of a sync.
This new implementation replaces that in-memory data structures, with hand-written code
for writing them to persistent storage.

There are now 4 files associated with this class, holding various pieces of its state that
should be consistent. These are everything from a main XML file of account information that
must always be retained, to a binary file of per-day statistics that can be thrown away at
any time. Writes of these files as scheduled at various times based on their importance of
the frequency at which they change.

Because the database no longer exists, there needs to be a new explicit interface for
interacting with the sync manager database. This is provided by new APIs on IContentService,
with a hidden method on ContentResolver to retrieve the IContentService so that various
system entities can use it. Other changes in other projects are required to update to the
new API.

The goal here is to have as little an impact on the code and functionality outside of
SyncStorageEngine, though due to the necessary change in API it is still somewhat extensive.
nternal/os/AtomicFile.java
90b6abd83952e42fe2bb15af4fb117d427e640f0 01-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 2bc9e13: Merge change 841 into donut

Merge commit '2bc9e139655666e3c6a58d8fa74a12111b06cafd'

* commit '2bc9e139655666e3c6a58d8fa74a12111b06cafd':
TypedProperties: add getStringInfo() to help deal with null strings
8790948583fa9734cf4a54800562cb668299c4ed 01-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 52a3cb5: Merge change 840 into donut

Merge commit '52a3cb53ddcce049d2e804c3042514df576cb5b9'

* commit '52a3cb53ddcce049d2e804c3042514df576cb5b9':
TypedProperties: change the file format to be a subset of Java
c1ebff063a29446585709ec1396e94fb7ab656a6 01-May-2009 Marco Nelissen <marcone@google.com> am d859331: Don\'t crash when /proc/wakelocks can\'t be opened. Might make

Merge commit 'd8593312296fd2193a070c1a074840d83b7f49cb'

* commit 'd8593312296fd2193a070c1a074840d83b7f49cb':
Don't crash when /proc/wakelocks can't be opened. Might make board bringup easier.
2bc9e139655666e3c6a58d8fa74a12111b06cafd 01-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 841 into donut

* changes:
TypedProperties: add getStringInfo() to help deal with null strings
52a3cb53ddcce049d2e804c3042514df576cb5b9 01-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 840 into donut

* changes:
TypedProperties: change the file format to be a subset of Java
d8593312296fd2193a070c1a074840d83b7f49cb 30-Apr-2009 Marco Nelissen <marcone@google.com> Don't crash when /proc/wakelocks can't be opened. Might make board bringup easier.
Verified with simulator, which doesn't have /proc/wakelocks
nternal/os/BatteryStatsImpl.java
4b0ebef18defefe6850360cf11498f262a71847d 29-Apr-2009 Dave Bort <dbort@android.com> TypedProperties: add getStringInfo() to help deal with null strings

Signed-off-by: Dave Bort <dbort@android.com>
nternal/util/TypedProperties.java
5b6f8d865d03f37c8c3a9397ca693ac671f39df7 30-Apr-2009 Dave Bort <dbort@android.com> TypedProperties: change the file format to be a subset of Java

Types and constants are now case-sensitive.
Types come first.
Newlines are ignored, but semicolons are required.
Comments are now Java-style, not sh-style.
unset() now looks like a method instead of a pseudotype.

Signed-off-by: Dave Bort <dbort@android.com>
nternal/util/TypedProperties.java
f8997690da3790a1ff87f1f96a6e68fbb79b5ddc 30-Apr-2009 Christopher Tate <ctate@google.com> am 487529a: First baby steps towards settings backup

Merge commit '487529a70cd1479ae8d6bbfb356be7e72542c185'

* commit '487529a70cd1479ae8d6bbfb356be7e72542c185':
First baby steps towards settings backup
487529a70cd1479ae8d6bbfb356be7e72542c185 29-Apr-2009 Christopher Tate <ctate@google.com> First baby steps towards settings backup

This change adds a sketched outline of the backup system architecture, with
all of the major pieces represented other than client-side helpers for
specific types of data. IBackupManager and BackupService are public so that
we can write test apps against SDK-domain symbols from the outset.

What code exists in this change hasn't been tested and may crash. It's the
beginnings of the real implementation but of course is barely begun.
nternal/backup/IBackupTransport.aidl
f8e258ee1b513f9022e0718c5e8c91c89d36280c 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am 5616a7d: Merge change 459 into donut

Merge commit '5616a7d1dea1aecc8353bab144d14446aa33391a'

* commit '5616a7d1dea1aecc8353bab144d14446aa33391a':
TypedProperties: initial commit
137b0c9d6430ccb519c82a1198048cf413e06c5e 29-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am 0b8ffd1: Merge change 460 into donut

Merge commit '0b8ffd17bc6641fc522db3e842a868b6cdbf6d82'

* commit '0b8ffd17bc6641fc522db3e842a868b6cdbf6d82':
More optimization of dumpsys output.
5616a7d1dea1aecc8353bab144d14446aa33391a 23-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 459 into donut

* changes:
TypedProperties: initial commit
1d442e0d990b581357f33f5463c7c5cb49b551e8 21-Apr-2009 Dianne Hackborn <hackbod@google.com> More optimization of dumpsys output.

There are three major classes of changes here:

- Avoid writing lines where their values are often empty, false, or some other typical thing.
- Use partial writes to the PrintWriter to avoid creating temporary strings.
- Use StringBuilder where we need to generate real String objects (and where possible cache the result).
nternal/os/BatteryStatsImpl.java
c4d6dd0bbce846c3b20e907d6a3016e4adc65e22 23-Apr-2009 Dave Bort <dbort@android.com> TypedProperties: initial commit
nternal/util/TypedProperties.java
74008f608af0c567456d37e63d48643689388c74 23-Apr-2009 Jean-Baptiste Queru <jbq@google.com> Merge donut into master
74e258d63eccef41da923adad47bd2b20056aa5f 19-Apr-2009 Evan Millar <> AI 146854: am: CL 146853 Add kernel wakelock data to batteryinfo dump.
Original author: emillar

Automated import of CL 146854
nternal/os/BatteryStatsImpl.java
4482d8c8e41b02786efae97987394f60b68d6f6e 18-Apr-2009 Evan Millar <> Merge branch 'readonly-p4-donut' into donut
c64edde69d18498fb2954f71a546357b07ab996a 18-Apr-2009 Evan Millar <> AI 146853: Add kernel wakelock data to batteryinfo dump.
BUG=1755458

Automated import of CL 146853
nternal/os/BatteryStatsImpl.java
e564b19ed2f6b8b5667648254bc6c6859bb536e7 15-Apr-2009 Tammo Spalink <tammo@google.com> replaced integer * and % with shift operations, for performance
nternal/util/BitwiseInputStream.java
nternal/util/BitwiseOutputStream.java
83917db040bd7498ebca3b74f879dc1c9e223d8e 14-Apr-2009 Tammo Spalink <tammo@google.com> Initial code for cdma sms encode and decode, in java, with simple tests.

(direct cherry-pick of master 42/42/8)
nternal/util/BitwiseInputStream.java
nternal/util/BitwiseOutputStream.java
599c918d9794b51992de85b42befa0c71d9ec07f 08-Apr-2009 Andy McFadden <> AI 144931: Added a (hidden) way to "pre-cache" register maps.
The 50 methods that appeared on the GC stacks of the most applications
require 13KB of native heap for their uncompressed register maps, and
the full set took 5ms to uncompress. Pre-computation doesn't represent
a significant improvement in space or time, at the cost of a big pile
of strings in ZygoteInit.
I'm leaving the method in ZygoteInit, but it's not called, and the
static final String[] of method descriptors is empty. We may want to
revisit this later.
BUG=1729570

Automated import of CL 144931
nternal/os/ZygoteInit.java
6447ca30b8e41c22c7214f201120327057e356dc 08-Apr-2009 Dianne Hackborn <hackbod@google.com> Fix issue #1769910 (Track activity launch times)

The usage stats service now collects per-activity launch time stats. There are a number of fixes and improvements to its statistics management and collection; it now operates its calendar in GMT and ensures that for checkin purposes it always reports one day and only one complete day to the checkin service.

Also change the checkin option from "-c" to "--checkin" since it is really a special thing.
nternal/app/IUsageStats.aidl
0ba31ed95ed7ac9b5627973f0bb1b5d9147ea95f 03-Apr-2009 Evan Millar <> AI 144410: am: CL 144333 Change the way the battery level tracking code works in BatteryStats. Before we simply kept track of the last
2 levels as recorded at plug and unplug events. During charge cycles this would be useful because it would tell us
what the start and end levels were in the last discharge cycle. However during a discharge cycle this information could
be misleading as it would give you the level at the last unplug event (beginning the the discharge cycle) and last plug
event (end of the previous discharge cycle).
Now we are still keeping track of 2 values, but they are "discharge cycle start level" and "discharge cycle current level".
During a discharge cycle this will give you the level the current discharge cycle started at, and the current level. During
a charge cycle the same data will be supplied as before (the start/end of the last discharge cycle).
Original author: emillar

Automated import of CL 144410
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
633a1740ce5951ccb5d478ba2795f6f4fada1646 03-Apr-2009 Evan Millar <> AI 144333: Change the way the battery level tracking code works in BatteryStats. Before we simply kept track of the last
2 levels as recorded at plug and unplug events. During charge cycles this would be useful because it would tell us
what the start and end levels were in the last discharge cycle. However during a discharge cycle this information could
be misleading as it would give you the level at the last unplug event (beginning the the discharge cycle) and last plug
event (end of the previous discharge cycle).
Now we are still keeping track of 2 values, but they are "discharge cycle start level" and "discharge cycle current level".
During a discharge cycle this will give you the level the current discharge cycle started at, and the current level. During
a charge cycle the same data will be supplied as before (the start/end of the last discharge cycle).
B=144249

Automated import of CL 144333
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
617f877c06c82584a38f41bb60d836e08c5e3bda 01-Apr-2009 Dianne Hackborn <> AI 143800: am: CL 143748 Fix issue #1743326 (More battery stats)
Adds stats for:
- Number of raw user events that have happened in the system.
- Number of times user activity has been reported, dividied by UID and type of activity.
- Duration of screen brightness levels in 4 buckets.
- Per-UID tracking of who has turned on Wifi and how long we can attribute it being on because of them.
Original author: hackbod
Merged from: //branches/cupcake/...

Automated import of CL 143800
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
bed30e1b6ea4a1d71dbe5e731c274cc66974283a 31-Mar-2009 Dianne Hackborn <> AI 143823: am: CL 143800 am: CL 143748 Fix issue #1743326 (More battery stats)
Adds stats for:
- Number of raw user events that have happened in the system.
- Number of times user activity has been reported, dividied by UID and type of activity.
- Duration of screen brightness levels in 4 buckets.
- Per-UID tracking of who has turned on Wifi and how long we can attribute it being on because of them.
Original author: hackbod
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143823
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
65c8e11a31ded66cf024ec800a63f76dc4c83dab 31-Mar-2009 Dianne Hackborn <> AI 143748: Fix issue #1743326 (More battery stats)
Adds stats for:
- Number of raw user events that have happened in the system.
- Number of times user activity has been reported, dividied by UID and type of activity.
- Duration of screen brightness levels in 4 buckets.
- Per-UID tracking of who has turned on Wifi and how long we can attribute it being on because of them.
BUG=1743326

Automated import of CL 143748
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
0b4d64807e9242210900e454b5da9989edb668ee 28-Mar-2009 Satoshi Kataoka <> AI 143347: am: CL 143196 am: CL 142964 Add a function to clear styles in EditStyledText.
Add a function to change getBackground color.
Add a function to check whether EditStyledText has styled text or not.
Refactor function and variable names for readability.
Original author: satok
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143347
nternal/widget/EditStyledText.java
bf62297bd1bd9f2ec6aba14369f596dec2be0356 28-Mar-2009 Jean-Baptiste Queru <> AI 143296: Merge from donut Change 143147

Automated import of CL 143296
nternal/widget/Smileys.java
05a3c6870cf718f0bdeea6f3b7c031299ecdd7fa 28-Mar-2009 Satoshi Kataoka <> AI 143196: am: CL 142964 Add a function to clear styles in EditStyledText.
Add a function to change getBackground color.
Add a function to check whether EditStyledText has styled text or not.
Refactor function and variable names for readability.
Original author: satok
Merged from: //branches/cupcake/...

Automated import of CL 143196
nternal/widget/EditStyledText.java
88fb1069bf254dc68c83546496592a9b5e739a07 27-Mar-2009 Dianne Hackborn <> AI 143147: Manual integration

Automated import of CL 143147
nternal/widget/Smileys.java
4194592b9c71251041a68d8090dc331e85027527 26-Mar-2009 Satoshi Kataoka <> Automated import from //branches/cupcake/...@142964,142964
nternal/widget/EditStyledText.java
73fbd70263cedabc82971728d3ad29b2a76ac76e 26-Mar-2009 Dianne Hackborn <> Automated import from //branches/cupcake/...@142829,142829
nternal/widget/Smileys.java
9c802c1e95befbd8de30ea4ebc48ae05cb948b2b 25-Mar-2009 Romain Guy <> Automated import from //branches/master/...@142575,142575
nternal/app/AlertController.java
nternal/view/menu/MenuDialogHelper.java
870a2b015645ef5086af6a5de31dc482e7193214 25-Mar-2009 Romain Guy <> Automated import from //branches/donutburger/...@142470,142470
nternal/app/AlertController.java
nternal/view/menu/MenuDialogHelper.java
4840e143df9804e3399a4e0341c0601f80d65d6e 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/master/...@142348,142348
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
627bba736d022c39696b7c582a6af5592d2b8c33 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/donutburger/...@142347,142347
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
eb785fa71a4b2c83158fbde42ec515bbbfe356fb 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/master/...@141518,141518
nternal/database/SortCursor.java
d906b720b8a8e6e527325f106ed87246d51a3571 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/donutburger/...@141515,141515
nternal/database/SortCursor.java
886f3d69b79748fe937725e33b8bbb3d67ab82c7 25-Mar-2009 Bob Lee <> Automated import from //branches/donutburger/...@141355,141355
nternal/logging/AndroidHandler.java
ef0996ffa36cfe9b7927e09aece801fb4f594ced 25-Mar-2009 Bob Lee <> Automated import from //branches/master/...@141357,141357
nternal/logging/AndroidHandler.java
edbabeb7fabfb3c7793b565cdaaf656e5e332efe 25-Mar-2009 Romain Guy <> Automated import from //branches/cupcake/...@142469,142469
nternal/app/AlertController.java
nternal/view/menu/MenuDialogHelper.java
df6601ac91493a7368effbe198e0181627a2cd34 25-Mar-2009 Satoshi Kataoka <> Automated import from //branches/donutburger/...@141168,141168
nternal/widget/EditStyledText.java
1ab415f6e9d064628deb3158eeb815589eb8ce3b 25-Mar-2009 Satoshi Kataoka <> Automated import from //branches/master/...@141169,141169
nternal/widget/EditStyledText.java
6eb7298019c2e59877939474e7d77e8334192a98 25-Mar-2009 Satoshi Kataoka <> Automated import from //branches/donutburger/...@141149,141149
nternal/widget/EditStyledText.java
e1e5df58b2b8c733441c6dca8c96b35a39f9a349 25-Mar-2009 Satoshi Kataoka <> Automated import from //branches/master/...@141151,141151
nternal/widget/EditStyledText.java
5c70839ae3b06a03c82032a77fc44405cf1de2de 25-Mar-2009 Satoshi Kataoka <> Automated import from //branches/donutburger/...@141126,141126
nternal/widget/EditStyledText.java
083c6b9fadb0413a1a5b9b48eaa4cec03a55c3f9 25-Mar-2009 Satoshi Kataoka <> Automated import from //branches/master/...@141127,141127
nternal/widget/EditStyledText.java
51376451f1ce78c7201d9559d0e953d165bfce87 25-Mar-2009 Satoshi Kataoka <> Automated import from //branches/donutburger/...@141112,141112
nternal/widget/EditStyledText.java
20a869863b9adcb4fd2a926aa38947ed2c610133 25-Mar-2009 Satoshi Kataoka <> Automated import from //branches/master/...@141113,141113
nternal/widget/EditStyledText.java
99c6026218a87074e50b3c0921c1ab7786887cc8 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/cupcake/...@142342,142342
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
1bf5e22da72b477c8b7a45ed85a4dba94be39db5 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/donutburger/...@141001,141001
nternal/widget/EditableInputConnection.java
51bf077883df4f5cc816fbfec6d19eedffc26d70 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/master/...@141004,141004
nternal/widget/EditableInputConnection.java
6ef7af508903eddc76f7bb693b71a547df94cb6e 25-Mar-2009 Satoshi Kataoka <> Automated import from //branches/donutburger/...@140966,140966
nternal/widget/EditStyledText.java
4312619934ce0f9765c8f9eacf5a2d429f00de96 25-Mar-2009 Satoshi Kataoka <> Automated import from //branches/master/...@140968,140968
nternal/widget/EditStyledText.java
2c4b6ac25227f321eecbbd3b0487ac8849dae935 25-Mar-2009 Satoshi Kataoka <> Automated import from //branches/master/...@140767,140767
nternal/widget/EditStyledText.java
ce8f3a8eca07291bf0f8f187b0d677204a897111 25-Mar-2009 Satoshi Kataoka <> Automated import from //branches/donutburger/...@140765,140765
nternal/widget/EditStyledText.java
f93f02fb8a6b6bdbc294085d89e733dcd5078630 25-Mar-2009 Eric Shienbrood <> Automated import from //branches/master/...@140680,140680
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
d4c5f8919b0522bcaab41a5863c313fec52d3a79 25-Mar-2009 Eric Shienbrood <> Automated import from //branches/donutburger/...@140679,140679
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
c2ad241504fcaa12d4579d3b0b4038d1ca8d08c9 20-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@141571
nternal/app/IBatteryStats.aidl
nternal/database/SortCursor.java
nternal/logging/AndroidHandler.java
nternal/os/BatteryStatsImpl.java
nternal/widget/EditStyledText.java
nternal/widget/EditableInputConnection.java
105925376f8d0f6b318c9938c7b83ef7fef094da 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
nternal/app/AlertController.java
nternal/app/IBatteryStats.aidl
nternal/app/RingtonePickerActivity.java
nternal/os/BatteryStatsImpl.java
nternal/view/menu/IconMenuItemView.java
nternal/view/menu/IconMenuView.java
ba87e3e6c985e7175152993b5efcc7dd2f0e1c93 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
nternal/widget/EditStyledText.java
nternal/widget/LockPatternUtils.java
c39a6e0c51e182338deb8b63d07933b585134929 11-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137873
nternal/appwidget/IAppWidgetHost.aidl
nternal/appwidget/IAppWidgetService.aidl
nternal/appwidget/package.html
nternal/gadget/IGadgetHost.aidl
nternal/gadget/IGadgetService.aidl
nternal/gadget/package.html
nternal/widget/NumberPicker.java
b2a3dd88a53cc8c6d19f6dc8ec4f3d6c4abd9b54 09-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137197
nternal/view/IInputMethodManager.aidl
4df2423a947bcd3f024cc3d3a1a315a8dc428598 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
nternal/os/HandlerCaller.java
nternal/os/IResultReceiver.aidl
nternal/view/IInputMethod.aidl
nternal/view/IInputMethodManager.aidl
nternal/view/IInputMethodSession.aidl
nternal/widget/EditStyledText.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
nternal/app/AlertActivity.java
nternal/app/AlertController.java
nternal/app/ChooserActivity.java
nternal/app/ExternalMediaFormatActivity.java
nternal/app/IBatteryStats.aidl
nternal/app/IUsageStats.aidl
nternal/app/ResolverActivity.java
nternal/app/RingtonePickerActivity.java
nternal/app/UsbStorageActivity.java
nternal/app/UsbStorageStopActivity.java
nternal/app/package.html
nternal/database/ArrayListCursor.java
nternal/database/SortCursor.java
nternal/gadget/IGadgetHost.aidl
nternal/gadget/IGadgetService.aidl
nternal/gadget/package.html
nternal/http/multipart/ByteArrayPartSource.java
nternal/http/multipart/FilePart.java
nternal/http/multipart/FilePartSource.java
nternal/http/multipart/MultipartEntity.java
nternal/http/multipart/Part.java
nternal/http/multipart/PartBase.java
nternal/http/multipart/PartSource.java
nternal/http/multipart/StringPart.java
nternal/logging/AndroidConfig.java
nternal/logging/AndroidHandler.java
nternal/net/DbSSLSessionCache.java
nternal/os/AndroidPrintStream.java
nternal/os/BatteryStatsImpl.aidl
nternal/os/BatteryStatsImpl.java
nternal/os/BinderInternal.java
nternal/os/HandlerCaller.java
nternal/os/LoggingPrintStream.java
nternal/os/PkgUsageStats.aidl
nternal/os/PkgUsageStats.java
nternal/os/RecoverySystem.java
nternal/os/RuntimeInit.java
nternal/os/ZygoteConnection.java
nternal/os/ZygoteInit.java
nternal/os/ZygoteSecurityException.java
nternal/package.html
nternal/policy/IPolicy.java
nternal/policy/PolicyManager.java
nternal/policy/package.html
nternal/preference/YesNoPreference.java
nternal/util/ArrayUtils.java
nternal/util/CharSequences.java
nternal/util/FastMath.java
nternal/util/FastXmlSerializer.java
nternal/util/HexDump.java
nternal/util/Objects.java
nternal/util/Predicate.java
nternal/util/Predicates.java
nternal/util/WithFramework.java
nternal/util/XmlUtils.java
nternal/view/IInputConnectionCallback.aidl
nternal/view/IInputConnectionWrapper.java
nternal/view/IInputContext.aidl
nternal/view/IInputContextCallback.aidl
nternal/view/IInputMethod.aidl
nternal/view/IInputMethodCallback.aidl
nternal/view/IInputMethodClient.aidl
nternal/view/IInputMethodManager.aidl
nternal/view/IInputMethodSession.aidl
nternal/view/InputBindResult.aidl
nternal/view/InputBindResult.java
nternal/view/InputConnectionWrapper.java
nternal/view/menu/ContextMenuBuilder.java
nternal/view/menu/ExpandedMenuView.java
nternal/view/menu/IconMenuItemView.java
nternal/view/menu/IconMenuView.java
nternal/view/menu/ListMenuItemView.java
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuDialogHelper.java
nternal/view/menu/MenuItemImpl.java
nternal/view/menu/MenuView.java
nternal/view/menu/SubMenuBuilder.java
nternal/view/package.html
nternal/widget/DialogTitle.java
nternal/widget/EditableInputConnection.java
nternal/widget/LinearLayoutWithDefaultTouchRecepient.java
nternal/widget/LockPatternUtils.java
nternal/widget/LockPatternView.java
nternal/widget/NumberPicker.java
nternal/widget/NumberPickerButton.java
nternal/widget/TextProgressBar.java
nternal/widget/VerticalTextSpinner.java
erver/ResettableTimeout.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
nternal/app/AlertActivity.java
nternal/app/AlertController.java
nternal/app/ChooserActivity.java
nternal/app/ExternalMediaFormatActivity.java
nternal/app/IBatteryStats.aidl
nternal/app/IUsageStats.aidl
nternal/app/ResolverActivity.java
nternal/app/RingtonePickerActivity.java
nternal/app/UsbStorageActivity.java
nternal/app/UsbStorageStopActivity.java
nternal/app/package.html
nternal/database/ArrayListCursor.java
nternal/database/SortCursor.java
nternal/gadget/IGadgetHost.aidl
nternal/gadget/IGadgetService.aidl
nternal/gadget/package.html
nternal/http/multipart/ByteArrayPartSource.java
nternal/http/multipart/FilePart.java
nternal/http/multipart/FilePartSource.java
nternal/http/multipart/MultipartEntity.java
nternal/http/multipart/Part.java
nternal/http/multipart/PartBase.java
nternal/http/multipart/PartSource.java
nternal/http/multipart/StringPart.java
nternal/logging/AndroidConfig.java
nternal/logging/AndroidHandler.java
nternal/os/AndroidPrintStream.java
nternal/os/BatteryStatsImpl.aidl
nternal/os/BatteryStatsImpl.java
nternal/os/BinderInternal.java
nternal/os/HandlerCaller.java
nternal/os/LoggingPrintStream.java
nternal/os/PkgUsageStats.aidl
nternal/os/PkgUsageStats.java
nternal/os/RecoverySystem.java
nternal/os/RuntimeInit.java
nternal/os/ZygoteConnection.java
nternal/os/ZygoteInit.java
nternal/os/ZygoteSecurityException.java
nternal/package.html
nternal/policy/IPolicy.java
nternal/policy/PolicyManager.java
nternal/policy/package.html
nternal/preference/YesNoPreference.java
nternal/util/ArrayUtils.java
nternal/util/CharSequences.java
nternal/util/FastMath.java
nternal/util/FastXmlSerializer.java
nternal/util/HexDump.java
nternal/util/Objects.java
nternal/util/Predicate.java
nternal/util/Predicates.java
nternal/util/WithFramework.java
nternal/util/XmlUtils.java
nternal/view/IInputConnectionCallback.aidl
nternal/view/IInputConnectionWrapper.java
nternal/view/IInputContext.aidl
nternal/view/IInputContextCallback.aidl
nternal/view/IInputMethod.aidl
nternal/view/IInputMethodCallback.aidl
nternal/view/IInputMethodClient.aidl
nternal/view/IInputMethodManager.aidl
nternal/view/IInputMethodSession.aidl
nternal/view/InputBindResult.aidl
nternal/view/InputBindResult.java
nternal/view/InputConnectionWrapper.java
nternal/view/menu/ContextMenuBuilder.java
nternal/view/menu/ExpandedMenuView.java
nternal/view/menu/IconMenuItemView.java
nternal/view/menu/IconMenuView.java
nternal/view/menu/ListMenuItemView.java
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuDialogHelper.java
nternal/view/menu/MenuItemImpl.java
nternal/view/menu/MenuView.java
nternal/view/menu/SubMenuBuilder.java
nternal/view/package.html
nternal/widget/DialogTitle.java
nternal/widget/EditableInputConnection.java
nternal/widget/LinearLayoutWithDefaultTouchRecepient.java
nternal/widget/LockPatternUtils.java
nternal/widget/LockPatternView.java
nternal/widget/NumberPicker.java
nternal/widget/NumberPickerButton.java
nternal/widget/TextProgressBar.java
nternal/widget/VerticalTextSpinner.java
erver/ResettableTimeout.java
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
nternal/app/IBatteryStats.aidl
nternal/gadget/IGadgetService.aidl
nternal/logging/AndroidConfig.java
nternal/logging/AndroidHandler.java
nternal/net/DbSSLSessionCache.java
nternal/net/SSLSessionCache.java
nternal/os/BatteryStatsImpl.java
nternal/os/ZygoteInit.java
nternal/view/IInputConnectionWrapper.java
nternal/view/IInputContext.aidl
nternal/view/InputConnectionWrapper.java
nternal/view/menu/ExpandedMenuView.java
nternal/widget/EditableInputConnection.java
nternal/widget/TextProgressBar.java
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
nternal/app/IBatteryStats.aidl
nternal/app/UsbStorageStopActivity.java
nternal/gadget/IGadgetService.aidl
nternal/logging/AndroidConfig.java
nternal/logging/AndroidHandler.java
nternal/net/DbSSLSessionCache.java
nternal/net/SSLSessionCache.java
nternal/os/BatteryStatsImpl.java
nternal/os/ZygoteInit.java
nternal/view/IInputConnectionWrapper.java
nternal/view/IInputContext.aidl
nternal/view/InputConnectionWrapper.java
nternal/view/menu/ExpandedMenuView.java
nternal/widget/EditableInputConnection.java
nternal/widget/TextProgressBar.java
15ab3eae2ec3d73b3e8aa60b33ae41445bf83f4b 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
nternal/widget/TextProgressBar.java
3001a035439d8134a7d70d796376d1dfbff3cdcd 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
nternal/app/IBatteryStats.aidl
nternal/os/BatteryStatsImpl.java
nternal/os/HandlerHelper.java
nternal/os/HandlerThread.java
nternal/view/IInputConnectionWrapper.java
nternal/widget/EditableInputConnection.java
nternal/widget/LockPatternUtils.java
nternal/widget/TextProgressBar.java
da996f390e17e16f2dfa60e972e7ebc4f868f37e 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
nternal/gadget/IGadgetHost.aidl
nternal/gadget/IGadgetService.aidl
nternal/view/IInputConnectionWrapper.java
nternal/view/IInputContext.aidl
nternal/view/IInputMethodManager.aidl
nternal/view/InputConnectionWrapper.java
nternal/widget/NumberPicker.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
nternal/app/ExternalMediaFormatActivity.java
nternal/app/IBatteryStats.aidl
nternal/app/IUsageStats.aidl
nternal/app/UsbStorageStopActivity.java
nternal/gadget/IGadgetHost.aidl
nternal/gadget/IGadgetService.aidl
nternal/os/BatteryStatsImpl.java
nternal/os/HandlerCaller.java
nternal/os/PkgUsageStats.aidl
nternal/os/PkgUsageStats.java
nternal/os/RecoverySystem.java
nternal/view/IInputConnectionWrapper.java
nternal/view/IInputContext.aidl
nternal/view/IInputMethod.aidl
nternal/view/IInputMethodManager.aidl
nternal/view/InputConnectionWrapper.java
nternal/view/menu/IconMenuItemView.java
nternal/view/menu/ListMenuItemView.java
nternal/widget/EditableInputConnection.java
nternal/widget/SlidingDrawer.java
f1e484acb594a726fb57ad0ae4cfe902c7f35858 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
nternal/gadget/IGadgetService.aidl
nternal/view/IInputConnectionWrapper.java
nternal/view/IInputContext.aidl
nternal/view/InputConnectionWrapper.java
nternal/widget/EditableInputConnection.java
22f7dfd23490a3de2f21ff96949ba47003aac8f8 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127101
nternal/gadget/IGadgetService.aidl
nternal/gadget/package.html
nternal/os/HandlerCaller.java
nternal/view/menu/IconMenuItemView.java
nternal/view/menu/ListMenuItemView.java
nternal/view/menu/MenuBuilder.java
nternal/widget/NumberPicker.java
9266c558bf1d21ff647525ff99f7dadbca417309 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
nternal/app/AlertController.java
nternal/os/HandlerCaller.java
nternal/view/IInputMethod.aidl
nternal/view/IInputMethodManager.aidl
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
nternal/app/RingtonePickerActivity.java
nternal/os/HandlerCaller.java
nternal/view/IInputConnectionWrapper.java
nternal/view/IInputContext.aidl
nternal/view/IInputMethodManager.aidl
nternal/view/IInputMethodSession.aidl
nternal/view/InputConnectionWrapper.java
nternal/view/menu/MenuItemImpl.java
nternal/widget/EditableInputConnection.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
nternal/app/AlertController.java
nternal/app/IBatteryStats.aidl
nternal/app/ResolverActivity.java
nternal/app/RingtonePickerActivity.java
nternal/app/UsbStorageActivity.java
nternal/database/ArrayListCursor.java
nternal/os/BatteryStatsImpl.aidl
nternal/os/BatteryStatsImpl.java
nternal/os/HandlerCaller.java
nternal/os/ZygoteConnection.java
nternal/os/ZygoteInit.java
nternal/provider/Settings.java
nternal/util/FastXmlSerializer.java
nternal/view/IInputConnectionCallback.aidl
nternal/view/IInputConnectionWrapper.java
nternal/view/IInputContext.aidl
nternal/view/IInputContextCallback.aidl
nternal/view/IInputMethod.aidl
nternal/view/IInputMethodCallback.aidl
nternal/view/IInputMethodClient.aidl
nternal/view/IInputMethodManager.aidl
nternal/view/IInputMethodSession.aidl
nternal/view/InputBindResult.aidl
nternal/view/InputBindResult.java
nternal/view/InputConnectionWrapper.java
nternal/view/menu/IconMenuItemView.java
nternal/view/menu/IconMenuView.java
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuDialogHelper.java
nternal/view/menu/MenuItemImpl.java
nternal/view/package.html
nternal/widget/DialogTitle.java
nternal/widget/EditableInputConnection.java
nternal/widget/LockPatternUtils.java
nternal/widget/LockPatternView.java
nternal/widget/NumberPicker.java
nternal/widget/SlidingDrawer.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
nternal/app/AlertActivity.java
nternal/app/AlertController.java
nternal/app/ChooserActivity.java
nternal/app/IBatteryStats.aidl
nternal/app/ResolverActivity.java
nternal/app/RingtonePickerActivity.java
nternal/app/UsbStorageActivity.java
nternal/app/package.html
nternal/database/ArrayListCursor.java
nternal/database/SortCursor.java
nternal/http/multipart/ByteArrayPartSource.java
nternal/http/multipart/FilePart.java
nternal/http/multipart/FilePartSource.java
nternal/http/multipart/MultipartEntity.java
nternal/http/multipart/Part.java
nternal/http/multipart/PartBase.java
nternal/http/multipart/PartSource.java
nternal/http/multipart/StringPart.java
nternal/logging/AndroidConfig.java
nternal/logging/AndroidHandler.java
nternal/os/AndroidPrintStream.java
nternal/os/BinderInternal.java
nternal/os/HandlerHelper.java
nternal/os/HandlerThread.java
nternal/os/LoggingPrintStream.java
nternal/os/RuntimeInit.java
nternal/os/ZygoteConnection.java
nternal/os/ZygoteInit.java
nternal/os/ZygoteSecurityException.java
nternal/package.html
nternal/policy/IPolicy.java
nternal/policy/PolicyManager.java
nternal/policy/package.html
nternal/preference/YesNoPreference.java
nternal/provider/Settings.java
nternal/util/ArrayUtils.java
nternal/util/CharSequences.java
nternal/util/FastMath.java
nternal/util/FastXmlSerializer.java
nternal/util/HexDump.java
nternal/util/Objects.java
nternal/util/Predicate.java
nternal/util/Predicates.java
nternal/util/WithFramework.java
nternal/util/XmlUtils.java
nternal/view/menu/ContextMenuBuilder.java
nternal/view/menu/ExpandedMenuView.java
nternal/view/menu/IconMenuItemView.java
nternal/view/menu/IconMenuView.java
nternal/view/menu/ListMenuItemView.java
nternal/view/menu/MenuBuilder.java
nternal/view/menu/MenuDialogHelper.java
nternal/view/menu/MenuItemImpl.java
nternal/view/menu/MenuView.java
nternal/view/menu/SubMenuBuilder.java
nternal/widget/LinearLayoutWithDefaultTouchRecepient.java
nternal/widget/LockPatternUtils.java
nternal/widget/LockPatternView.java
nternal/widget/NumberPicker.java
nternal/widget/NumberPickerButton.java
nternal/widget/SlidingDrawer.java
nternal/widget/VerticalTextSpinner.java
erver/ResettableTimeout.java