23671 Commits

Author SHA1 Message Date
Wale Ogunwale
655b08c38a am b6f87997: am f54d1722: am 52034328: am 131e6b24: Merge "Prevent system uid component from running in an app process" into lmp-mr1-dev
* commit 'b6f87997cb6ea557dc84e77c18c5bb22f99411fc':
  Prevent system uid component from running in an app process
2015-07-02 00:52:29 +00:00
Filip Gruszczynski
aabc9869a9 am 03850591: Handle outsets when resized is called due to rotation.
* commit '03850591954faf5280fd581dd04cd6958eda0124':
  Handle outsets when resized is called due to rotation.
2015-07-02 00:47:48 +00:00
Wale Ogunwale
b6f87997cb am f54d1722: am 52034328: am 131e6b24: Merge "Prevent system uid component from running in an app process" into lmp-mr1-dev
* commit 'f54d17224bada1d852ba7c9d4bb9e2a792c0093b':
  Prevent system uid component from running in an app process
2015-07-02 00:35:47 +00:00
Filip Gruszczynski
0385059195 Handle outsets when resized is called due to rotation.
Rotation might change while the wallpaper is displayed. If outsets are
present, this must trigger a resized callback and the wallpaper must
take these accounts immediately into account before requesting relayout.

Bug: 22209764

Change-Id: I97f2670f384ccac792e7c2727eb0ef017ec66188
2015-07-01 10:23:47 -07:00
Wale Ogunwale
f54d17224b am 52034328: am 131e6b24: Merge "Prevent system uid component from running in an app process" into lmp-mr1-dev
* commit '52034328081e8c3420f9228192343835465afa13':
  Prevent system uid component from running in an app process
2015-07-01 17:19:20 +00:00
Wale Ogunwale
5203432808 am 131e6b24: Merge "Prevent system uid component from running in an app process" into lmp-mr1-dev
* commit '131e6b24d88c4704687f41e9a016ab1919c53fa4':
  Prevent system uid component from running in an app process
2015-07-01 17:03:54 +00:00
Filip Gruszczynski
300ccf4ab5 am 0ec1328f: Calculate outset hint when adding window.
* commit '0ec1328f85a08a610868856c688ebb8196c79c17':
  Calculate outset hint when adding window.
2015-06-30 20:20:48 +00:00
Filip Gruszczynski
0ec1328f85 Calculate outset hint when adding window.
Outsets aren't dynamic so they are a great candidate for a hint when the
window is added through the window manager. Thanks to this during first
view hierarchy measure or wallpaper window layout they are immediately
available and don't require multiple measure/layout passes.

Bug: 21593814
Change-Id: I573c15ffbbe4fcd8a6ed9c5e4fcd6cfbbcd7434f
2015-06-30 12:42:17 -07:00
Filip Gruszczynski
e89d821e33 am b6c158f9: Merge "Dump of previous vibrations." into cw-d-mr1-dev
* commit 'b6c158f9d863768d5d8315f2a4a4bb87c4db2fea':
  Dump of previous vibrations.
2015-06-29 20:59:50 +00:00
Filip Gruszczynski
b6c158f9d8 Merge "Dump of previous vibrations." into cw-d-mr1-dev 2015-06-29 20:47:10 +00:00
Filip Gruszczynski
3a8eb0f670 Dump of previous vibrations.
It's hard to find previous vibrations when you chase excessive use that
impacts the battery. A dump of previous vibrations allows us to
investigate where the vibrations come from.

Bug: 21933068
Change-Id: I14944732927c73401e5adc7345ea9823092b1883
2015-06-29 09:28:32 -07:00
Prashant Malani
b3d02465f8 am 9a3eacbe: Merge "Revert "Always re-establish kernel alarms when considering new alarm set"" into cw-d-mr1-dev
* commit '9a3eacbe9ce0e6a65429c721b6f4e60a28dbdaab':
  Revert "Always re-establish kernel alarms when considering new alarm set"
2015-06-26 21:12:49 +00:00
Prashant Malani
9a3eacbe9c Merge "Revert "Always re-establish kernel alarms when considering new alarm set"" into cw-d-mr1-dev 2015-06-26 21:00:11 +00:00
Wei Liu
8346722850 am 6f6326bc: Implement a exponential backoff for NTP time and XTRA data retry.
* commit '6f6326bc75be652a0b88b73fd6e0b73dbe2fabb6':
  Implement a exponential backoff for NTP time and XTRA data retry.
2015-06-26 17:33:16 +00:00
Wei Liu
6f6326bc75 Implement a exponential backoff for NTP time and XTRA data retry.
b/21904128

Change-Id: I9fc8917eed3065ff0a4946c5a3bdecb9e93da19d
2015-06-25 21:12:58 -07:00
Prashant Malani
753e9e0f2d Revert "Always re-establish kernel alarms when considering new alarm set"
This reverts commit c83d3e4b72f8f25bbac39a577f125f0ca04354da.

While the above patch does help deal with the issue of "lost" kernel
alarms, experiments found it to also cause the unnecessary duplicate
setting of non-lost alarms in other devices.

This leads to a situation where the CPU constantly tries to sleep, but
occasionally keeps failing to do so, because of a collection of these
duplicate alarms constantly activating the "alarm" kernel wakeup source
, presumably due to them being triggered.

These might have accumulated over several iterations when the kernel
alarms were set again (via rescheduleKernelAlarmsLocked()).

To prevent the CPU thrashing (which heavily drains power on more
battery-constrained devices, and increases the number of alarms being
set), the aforementioned commit is backed out.

Change-Id: I2a189cb303deb78a2faf476b0e789445407f3e11
(cherry picked from commit d19ffd4f2ca4130c41dd5f6baddad1830598ecbc)
2015-06-24 23:41:57 +00:00
Wale Ogunwale
dd673a63a6 Prevent system uid component from running in an app process
Bug: 21669445
Change-Id: I11d0bc5301d7e2a64972221f54f3cbd611f8e404
(cherry picked from commit 44368567f840e3469b5fd2c9399ed444b6f46ebf)
2015-06-24 22:02:05 +00:00
Sharvil Nanavati
64a4858b32 resolved conflicts for merge of 7c250056 to lmp-mr1-ub-dev
Change-Id: I8ec2e76756e61a6e6bbe85ca699facbde1c1fbc7
2015-06-23 14:07:26 -07:00
Sharvil Nanavati
7c2500564b Dump bonded Bluetooth devices in dumpsys.
Change-Id: Ie509b0abc64cbc7813e9fe844ff4c05d8cb05f9d
2015-06-22 13:01:47 -07:00
Filip Gruszczynski
73187e5761 am dd91362c: Make sure home activity gets resumed after started.
* commit 'dd91362c2c65dbcd781034a16f293d5489946f3e':
  Make sure home activity gets resumed after started.
2015-06-19 23:28:10 +00:00
Filip Gruszczynski
dd91362c2c Make sure home activity gets resumed after started.
When there is only one activity and it gets paused, activity manager will
try resuming some other activity. If there is no other activity, it will
start home activity and try to resume it. This will fail, because the
activity stack doesn't want to enter recursive resuming. We need to
detect this situation and schedule additional resume of top activity
after home gets started.

Bug: 21500945
Change-Id: I6ca703f8d97bcc4001e7da4cd5a5db63bfb5c861
2015-06-19 15:40:47 -07:00
Prashant Malani
d19ffd4f2c DO NOT MERGE ANYWHERE Revert "Always re-establish kernel alarms when considering new alarm set"
This reverts commit c83d3e4b72f8f25bbac39a577f125f0ca04354da.

While the above patch does help deal with the issue of "lost" kernel
alarms, experiments found it to also cause the unnecessary duplicate
setting of non-lost alarms in other devices.

This leads to a situation where the CPU constantly tries to sleep, but
occasionally keeps failing to do so, because of a collection of these
duplicate alarms constantly activating the "alarm" kernel wakeup source
, presumably due to them being triggered.

These might have accumulated over several iterations when the kernel
alarms were set again (via rescheduleKernelAlarmsLocked()).

To prevent the CPU thrashing (which heavily drains power on more
battery-constrained devices, and increases the number of alarms being
set), the aforementioned commit is backed out.

Bug: 20136729
Change-Id: I2a189cb303deb78a2faf476b0e789445407f3e11
2015-06-11 19:56:49 +00:00
Filip Gruszczynski
6974f22d11 am 47e53319: Revert "Recompute focus stack if cleared while starting an activity."
* commit '47e53319509474c2f00847ac391dd32776712470':
  Revert "Recompute focus stack if cleared while starting an activity."
2015-06-09 16:05:22 +00:00
Filip Gruszczynski
47e5331950 Revert "Recompute focus stack if cleared while starting an activity."
This reverts commit 0b3d573e46b8be0f0cf170802214320859c94905.

Unfortunately, we need more than just that.

Change-Id: I42ac79cb396812b91cec67ba681144592c0e2e01
2015-06-09 15:55:30 +00:00
Wale Ogunwale
64b586e19f am 0b3d573e: Recompute focus stack if cleared while starting an activity.
* commit '0b3d573e46b8be0f0cf170802214320859c94905':
  Recompute focus stack if cleared while starting an activity.
2015-06-09 15:34:40 +00:00
Wale Ogunwale
0b3d573e46 Recompute focus stack if cleared while starting an activity.
When starting an activity with Intent.FLAG_ACTIVITY_CLEAR_TOP flag,
the activity is destoried which can also cause its task to be removed
from its current stack if the activity process record is null. We now
recompute the stack for the activity task when this occurs so we
don't NPE later on.

Bug: 19552874

Change-Id: I50f51ca6dc32d4642f78d59cae93b0774bc6cdb7
(cherry picked from commit 86920fe630911cbbc0839b341dc694c2b905ef9e)
2015-06-09 15:21:17 +00:00
Filip Gruszczynski
17ba2e6c49 am aaf1811d: Calculate outsets before window frame adjustment.
* commit 'aaf1811dda607f10ab0f0ae80fd2b2b7cf9d0069':
  Calculate outsets before window frame adjustment.
2015-06-05 23:00:32 +00:00
Filip Gruszczynski
aaf1811dda Calculate outsets before window frame adjustment.
Bug: 21635628
Change-Id: I2d818e6d543c885dca2d19553bad5ce1adda95a6
2015-06-05 13:37:40 -07:00
Justin Harrison
6715ef754a am 4f2927d2: am 0eeb3bb8: am 33aa55b1: am 127d0b80: Merge "Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""" into lmp-mr1-dev
* commit '4f2927d22415b9a38f34645ae7909592d574c170':
  Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""
2015-06-04 05:33:03 +00:00
Justin Harrison
95be178daf am c4d7c826: am f8c2ffef: am c8fd50b1: am 29b98884: Merge "Revert "During early boot, send LOCALE_CHANGED only to registered receivers"" into lmp-mr1-dev
* commit 'c4d7c826486868e31bacfe2265b96af1ff3115ea':
  Revert "During early boot, send LOCALE_CHANGED only to registered receivers"
2015-06-04 05:32:58 +00:00
Justin Harrison
4f2927d224 am 0eeb3bb8: am 33aa55b1: am 127d0b80: Merge "Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""" into lmp-mr1-dev
* commit '0eeb3bb8eb211af642b25bc494931bcc47786be7':
  Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""
2015-06-04 00:06:15 +00:00
Justin Harrison
c4d7c82648 am f8c2ffef: am c8fd50b1: am 29b98884: Merge "Revert "During early boot, send LOCALE_CHANGED only to registered receivers"" into lmp-mr1-dev
* commit 'f8c2ffef5caca1b07bcb6160f4baf9363c5bfe87':
  Revert "During early boot, send LOCALE_CHANGED only to registered receivers"
2015-06-04 00:06:11 +00:00
Justin Harrison
0eeb3bb8eb am 33aa55b1: am 127d0b80: Merge "Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""" into lmp-mr1-dev
* commit '33aa55b1cecea2dcecd5e72450dab8cff85c2943':
  Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""
2015-06-03 23:49:25 +00:00
Justin Harrison
f8c2ffef5c am c8fd50b1: am 29b98884: Merge "Revert "During early boot, send LOCALE_CHANGED only to registered receivers"" into lmp-mr1-dev
* commit 'c8fd50b106534672f0df530df1d8a85fd9304f1c':
  Revert "During early boot, send LOCALE_CHANGED only to registered receivers"
2015-06-03 23:49:19 +00:00
Justin Harrison
33aa55b1ce am 127d0b80: Merge "Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""" into lmp-mr1-dev
* commit '127d0b8065cb87fafddd0cf65a33e42afac69672':
  Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""
2015-06-03 21:27:59 +00:00
Justin Harrison
c8fd50b106 am 29b98884: Merge "Revert "During early boot, send LOCALE_CHANGED only to registered receivers"" into lmp-mr1-dev
* commit '29b988846721eb870df9813a950ef31a2ecacebd':
  Revert "During early boot, send LOCALE_CHANGED only to registered receivers"
2015-06-03 21:27:54 +00:00
Justin Harrison
127d0b8065 Merge "Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""" into lmp-mr1-dev 2015-06-03 19:20:45 +00:00
Justin Harrison
aa9a679b00 Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""
This reverts commit c48c31394e7e5dc104d22644d0e4e4a6a607497a.

Change-Id: Ia2b59da5d953a8a692c0e2f5eabb12e952dbdea1
2015-06-03 19:18:30 +00:00
Justin Harrison
29b9888467 Merge "Revert "During early boot, send LOCALE_CHANGED only to registered receivers"" into lmp-mr1-dev 2015-06-03 19:18:06 +00:00
Justin Harrison
c48c31394e Revert "During early boot, send LOCALE_CHANGED only to registered receivers"
This reverts commit afd883f8a3ee260a5505f83d628c0b789871c837.

Change-Id: Ia4fadbbc7e531d13cd9e9019f0cdb30cc090cb7a
2015-06-03 18:48:19 +00:00
Filip Gruszczynski
a61e23f13b am 35a803be: Only use outsets for full screen windows.
* commit '35a803beec9ce508fd53ab7e4111f2f9f87296c1':
  Only use outsets for full screen windows.
2015-06-01 16:01:16 +00:00
Filip Gruszczynski
35a803beec Only use outsets for full screen windows.
Change-Id: I1d89c314b0f9944dfa417ce066c397073d51466e
2015-06-01 08:35:01 -07:00
Wale Ogunwale
21531bce0e am 57141700: am 0f771240: am bf0439a7: am 02f3cf79: am 523a19bf: am c9a0c0b9: Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS
* commit '5714170091065bb51f33c8f3ce272db07f69a21b':
  Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS
2015-05-27 06:06:51 +00:00
Wale Ogunwale
5714170091 am 0f771240: am bf0439a7: am 02f3cf79: am 523a19bf: am c9a0c0b9: Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS
* commit '0f7712407d96a847845b10eef34d9a259c687533':
  Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS
2015-05-27 05:52:33 +00:00
Wale Ogunwale
0f7712407d am bf0439a7: am 02f3cf79: am 523a19bf: am c9a0c0b9: Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS
* commit 'bf0439a7e8824b4288f52c952a6808c8bdaf3235':
  Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS
2015-05-27 05:35:52 +00:00
Wale Ogunwale
bf0439a7e8 am 02f3cf79: am 523a19bf: am c9a0c0b9: Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS
* commit '02f3cf79989b202a45753ad74653d48f7d73c73d':
  Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS
2015-05-27 05:17:55 +00:00
Wale Ogunwale
02f3cf7998 am 523a19bf: am c9a0c0b9: Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS
* commit '523a19bf3df202c58369279fc4e538e9e342c1e7':
  Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS
2015-05-27 05:03:29 +00:00
Wale Ogunwale
523a19bf3d am c9a0c0b9: Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS
* commit 'c9a0c0b90773fded6c251646300231f67c891b78':
  Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS
2015-05-27 04:50:11 +00:00
Wale Ogunwale
c9a0c0b907 Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS
* Applications must now have ...permission.REAL_GET_TASKS to
be able to get process information for all applications.
* Only the process information for the calling application will be
returned if the app doesn't have the permission.
* Privilages apps will temporarily be able to get process information
for all applications if they don't have the new permission, but have
deprecated ...permission.GET_TASKS.

Bug: 20034603
Change-Id: I67ae9491f65d2280adb6a81593693d499714a216
(cherry picked from commit 9dbaa54f6834e013a63f18bd51ace554de811d80)
2015-05-26 17:49:04 +00:00
Griff Hazen
d4e00d2b9d Merge "Revert "Enable VoiceInteractionService on watch." DO NOT MERGE ANYWHERE" into lmp-mr1-modular-dev 2015-05-21 22:43:48 +00:00