222841 Commits

Author SHA1 Message Date
Dianne Hackborn
a8d10945a6 Fix reporting of uid state in battery stats.
Now that the activity manager keeps track of per-uid process states,
we can push that already rolled-up data into battery stats to directly
track the times in those states.

The problem with the reporting was actually that we weren't dealing
correctly with negative process states, which is now fixed.  (It was
interpreting them as FOREGROUND rather than not running.)

Also split out a number of new states -- TOP, FOREGROUND_SERVICE,
TOP_SLEEPING -- from FOREGROUND.  This should allow us to get a much
better idea of how much an app has been actively in use: TOP is when
it is directly visible to the user or in use by such, FOREGROUND_SERVICE
is when it is running in the background in a way the user is aware of.
Also when reporting these numbers, they are no longer added together as
reported but kept as separate times.

Change-Id: I6d307503a4b4ad5c0d5d49305ef63f8eb858e2c9
2015-12-01 16:53:28 -08:00
Jeff Sharkey
96b2da271f Merge "Wire up lifecycle, send unlocked broadcast." 2015-12-01 00:13:00 +00:00
Jeff Sharkey
8924e8759f Wire up lifecycle, send unlocked broadcast.
When the correct lock pattern is presented, ask the system to also
unlock credential-encrypted storage, if enabled.  The token passed
along is empty for now, but can be wired up to gatekeeper in the
future.

During each system boot, ask vold to lock all users keys to give us
a known starting state.  This also has the effect of chmod'ing away
any CE data when in emulation mode.

Define and send a new foreground broadcast when the CE storage is
unlocked for the first time.  Add stronger last-ditch checking for
encryption-awareness before starting an app.

Bug: 22358539
Change-Id: Id1f1bece96a2b4e6f061214d565d51c7396ab521
2015-11-30 17:07:54 -07:00
Filip Gruszczynski
9a3f84ced7 Merge "Remove dock divider surface when it's not visible." 2015-11-30 23:37:02 +00:00
Lifu Tang
1f3341de8b Merge "Remembers previous location mode when location off" 2015-11-30 23:23:55 +00:00
Filip Gruszczynski
64cdc1458b Remove dock divider surface when it's not visible.
We achieve the removal by notifying System UI about the visibility of
the dock divider. This way System UI can change visibility of the root
view, which in turn will cause the WMS to destroy or create the surface
as necessary.

Bug: 25844096
Bug: 25683717

Change-Id: Idbc33368db697a059af49106dfadb80c3d7d06c1
2015-11-30 15:21:48 -08:00
Adam Lesinski
7fc76b17e3 Merge "Implement AAPT Bundle format" 2015-11-30 23:20:25 +00:00
Winson Chung
963c0a0b6c Merge "Improving drag and drop" 2015-11-30 23:02:14 +00:00
Felipe Leme
10d73a55af Merge "Created a new bug report workflow so user can keep track of its progress." 2015-11-30 23:01:04 +00:00
Tom Taylor
5a1c7e975f Merge "Add two new intents" 2015-11-30 23:00:11 +00:00
Adam Lesinski
07dfd2d864 Implement AAPT Bundle format
AAPT will scan XML files looking for the <aapt:attr> XML tag.

<!-- @layout/bundle.xml -->
<ImageView xmlns:aapt="http://schemas.android.com/aapt">
  <aapt:attr name="android:src">
    <vector android:pathData="..." ...>
    </vector>
  </aapt:attr>
</ImageView>

The SINGLE child element of the <aapt:attr> tag is extracted into its own top
level resource. It is given a generated name.

The parent element of <aapt:attr> is then given the resource attribute that was assigned
to the `name' attribute. The value is set to a reference to the generated resource.

<!-- @layout/bundle.xml -->
<ImageView android:src="@drawable/bundle_1.xml">
</ImageView>

<!-- @layout/bundle_1.xml -->
<vector android:pathData="..." ...>
</vector>

Bug:22627686
Change-Id: I8575fc4f739011402662fbf6b3db96df0012f598
2015-11-30 14:43:43 -08:00
Phil Weaver
14ed6cf3e7 Ignore feedbackType in AccessibilityEvent dispatch
Send AccessibilityEvents to all accessibility services
that request them. No longer refuse to send them to
services with the same feedback type.

Change-Id: I137905c24fc75c075ab938175ecb6ea5f39112cf
2015-11-30 14:36:34 -08:00
Chien-Yu Chen
2829e99660 Merge "Add and copy video stop sound" 2015-11-30 21:47:54 +00:00
Tom Taylor
3589230400 Add two new intents
One intent notifies the new and previous default sms app when the user
changes which app is the default sms app. The second intent is sent to the
default sms app when some other white-listed app, such as Android Auto or
the phone, modifies the Telephony db behind the default sms app's back.

Change-Id: Iee1e1c4a4c299846f382bd8247c295cf7aaa040e
2015-11-30 13:45:57 -08:00
Adam Lesinski
ebb3a76396 Merge "Revert "Implement AAPT Bundle format"" 2015-11-30 21:08:00 +00:00
Adam Lesinski
5b9847ca3f Revert "Implement AAPT Bundle format"
This reverts commit 9d0f7d44d5cc5322415f52f7ce03cc37a478b350.

Caused a build breakage when parsing some attributes.

Change-Id: I89ca958b2f2e820d353648df8aadd90bbe8d8339
2015-11-30 21:07:44 +00:00
Raph Levien
f9b40659e6 Merge "Always invalidate TextView on checkForRelayout" 2015-11-30 21:07:07 +00:00
Alan Viverette
5ac42c92fa Always invalidate TextView on checkForRelayout
Previously we would check whether relayout was required and optionally
invalidate; however, with partial layout we leave this work for the
makeNewLayout() method. We still need to manually invalidate, though,
since makeNewLayout() does not handle invalidation.

Bug: 25857300
Change-Id: I81ef9062c9fb4964d5e42a3562e6c782492ad65f
2015-11-30 13:03:00 -08:00
Jason Monk
dfcd4c141b Merge "Guard against monkey crash" 2015-11-30 20:11:00 +00:00
Jason Monk
3175a6e395 Guard against monkey crash
Bug: 25795998
Change-Id: I351faae1e29d09b7577435207ec466a1ff5ed237
2015-11-30 15:07:40 -05:00
Adam Lesinski
be107f46cf Merge "Implement AAPT Bundle format" 2015-11-30 19:51:53 +00:00
Adam Lesinski
2a0dd0e1e3 Merge "AAPT2: Support compiling a res/ directory and output to zip" 2015-11-30 19:30:48 +00:00
Bryce Lee
842ec9c407 Merge "Add callback for connections to be notified when the ringer is silenced." into cw-e-dev am: 52bdf11583 am: b241487c16 am: 64e41590d2
am: 0ca7de9031

* commit '0ca7de90310034d118f21343a69a38ebc02dd0bc':
  Add callback for connections to be notified when the ringer is silenced.
2015-11-30 19:17:53 +00:00
Adam Lesinski
a40e972fda AAPT2: Support compiling a res/ directory and output to zip
This allows us to compile an entire directory and output to a single
file. This is important to support generated resources in the make
build, since we may not know what resources get generated.

The link step will accept the zip and read the contents of it as if they
were passed in on the command line.

Change-Id: If1a51b0abe772350c24074353eb4989953c2e0cb
2015-11-30 11:14:01 -08:00
Bryce Lee
0ca7de9031 Merge "Add callback for connections to be notified when the ringer is silenced." into cw-e-dev am: 52bdf11583 am: b241487c16
am: 64e41590d2

* commit '64e41590d246cf1fc548b72d40436bcd2fca7b06':
  Add callback for connections to be notified when the ringer is silenced.
2015-11-30 19:09:17 +00:00
Chong Zhang
fc19f14ecc Merge "Show all windows with FLAG_SHOW_WHEN_LOCKED over lock screen if" 2015-11-30 19:03:47 +00:00
Bryce Lee
64e41590d2 Merge "Add callback for connections to be notified when the ringer is silenced." into cw-e-dev am: 52bdf11583
am: b241487c16

* commit 'b241487c16976a3f0aa6592740bba15f489eab17':
  Add callback for connections to be notified when the ringer is silenced.
2015-11-30 19:02:38 +00:00
Bryce Lee
b241487c16 Merge "Add callback for connections to be notified when the ringer is silenced." into cw-e-dev
am: 52bdf11583

* commit '52bdf11583366322ca14d69b895ac451a71245db':
  Add callback for connections to be notified when the ringer is silenced.
2015-11-30 18:56:27 +00:00
Bryce Lee
52bdf11583 Merge "Add callback for connections to be notified when the ringer is silenced." into cw-e-dev 2015-11-30 18:51:39 +00:00
Filip Gruszczynski
1223c198e4 Merge "Remove unnecessary field from AppWindowToken." 2015-11-30 18:38:44 +00:00
Erik Wolsheimer
98fe08fec1 fix data race condition BUG: 25819358 am: 2242b4d2bd am: 1dbb0355dc am: 1d92c4538f
am: 48543000e0

* commit '48543000e0417213b227b1047a83eb7d8528ff35':
  fix data race condition BUG: 25819358
2015-11-30 17:43:39 +00:00
Geoff Mendal
96f0cb679e Merge "Import translations. DO NOT MERGE" 2015-11-30 17:36:56 +00:00
Erik Wolsheimer
48543000e0 fix data race condition BUG: 25819358 am: 2242b4d2bd am: 1dbb0355dc
am: 1d92c4538f

* commit '1d92c4538f8ed43a2e9c1e6d4694ddb3fb058741':
  fix data race condition BUG: 25819358
2015-11-30 17:35:20 +00:00
Erik Wolsheimer
1d92c4538f fix data race condition BUG: 25819358 am: 2242b4d2bd
am: 1dbb0355dc

* commit '1dbb0355dc89a9f878365ee793ec48f6cb0b1426':
  fix data race condition BUG: 25819358
2015-11-30 17:28:44 +00:00
Erik Wolsheimer
1dbb0355dc fix data race condition BUG: 25819358
am: 2242b4d2bd

* commit '2242b4d2bda7f83cf7813103ff95d9b4e244126f':
  fix data race condition BUG: 25819358
2015-11-30 17:22:56 +00:00
Geoff Mendal
8e3b4dc748 Import translations. DO NOT MERGE
Change-Id: Ib74fe15ebdef92bece862bc5ffa0dd908838fe02
Auto-generated-cl: translation import
2015-11-30 17:52:28 +01:00
Alan Treadway
28860b7570 Fix for being able to setup Managed User from system user.
Also move feature flag check to ensure it is used in all cases.

Change-Id: If42787c5bc9ab824449c70f90fb827cf2da7507f
2015-11-30 16:48:26 +00:00
Alan Viverette
8b40491bc2 Merge "Avoid concurrent modification for pending partial layout views" 2015-11-30 14:59:23 +00:00
Niels Egberts
26d17d6ea9 Merge "Small refactoring for FileSynthesisCallback." 2015-11-30 14:05:36 +00:00
Geoff Mendal
00851b1d64 Merge "Import translations. DO NOT MERGE" 2015-11-30 14:02:17 +00:00
Niels Egberts
453c13f771 Small refactoring for FileSynthesisCallback.
Removed unused callerIdentity member and removed null checks
for the dispatcher.

Change-Id: I2983f5d48a7a593bc998ba4e033f1e815fa61819
2015-11-30 14:02:08 +00:00
Geoff Mendal
6b1fb585aa Merge "Import translations. DO NOT MERGE" 2015-11-30 14:01:01 +00:00
Geoff Mendal
7358fea3f9 Merge "Import translations. DO NOT MERGE" 2015-11-30 14:00:02 +00:00
Geoff Mendal
696953ca25 Import translations. DO NOT MERGE
Change-Id: I4247a09a0c94930c560bf92822248a4fc59903ac
Auto-generated-cl: translation import
2015-11-30 05:57:50 -08:00
Geoff Mendal
d52416b771 Import translations. DO NOT MERGE
Change-Id: Ie068d54293b15d002ed53fd82761723a7085c6d9
Auto-generated-cl: translation import
2015-11-30 05:53:19 -08:00
Geoff Mendal
4da1c1e6a5 Import translations. DO NOT MERGE
Change-Id: Ida232117d56cfc78ecf7daadb2f6642a6341b3bc
Auto-generated-cl: translation import
2015-11-30 05:51:51 -08:00
Geoff Mendal
5b0efb551e Import translations. DO NOT MERGE
Change-Id: I155086153a515040b16b3643b4bf40400fcbd922
Auto-generated-cl: translation import
2015-11-30 05:23:55 -08:00
Daichi Hirono
0899812456 Merge "Reopen MTP devices when the provider is created." 2015-11-30 01:08:06 +00:00
Daichi Hirono
e0282dd7d4 Reopen MTP devices when the provider is created.
When the provider is created, it reopens MTP devices that are recorded
in the database. It enables the provider to resume MTP session after the
provider process is killed by the system.

BUG=25704854
Change-Id: I58ae80fdb2e02cb0f045c63c4ade8943e2baae06
2015-11-30 10:06:56 +09:00
Chad Brubaker
291a136a96 Merge "Remove isCertificateEntry check" am: 7d72975c5b am: 59919babe0
am: 19c7afab62

* commit '19c7afab6244303e78bbc6b5ab04520bbd4172d7':
  Remove isCertificateEntry check
2015-11-30 00:00:44 +00:00