187482 Commits

Author SHA1 Message Date
Jeff Brown
4670513e70 Remove deprecated fields in AbstractCursor.
Bug: 6353797
Change-Id: Ibf760f0aeef82c176e3c659a2ced3de07f8e8abe
2015-04-09 19:48:10 -07:00
Jeff Brown
c42b28dda4 Fix animation start jank due to expensive layout operations.
The Choreographer carefully schedules animation updates to occur
after input but before traversals occur.  This ensures that the
effects of animations are perceived immediately in the next frame.
The start time of animation is usually set the moment the animator
first runs.  The start time serves as a reference for timing the
remainder of the animation.

Setting the start time during the animation callback works well except
when traversals take a long time to complete.  In that case, we may
end up drawing the initial frame of the animation then skipping several
following frames (because a lot of time has already passed since the
animation start time was set), effectively shortening the duration
of the animation.

To resolve this issue, we introduce a new COMMIT phase within the
Choreographer.  The COMMIT callback runs after traversals complete
and may provide an updated frame time that more accurately reflects
the time when the frame finished drawing.

In the case where an animation is just starting, we note the fact
that its initial start time has not yet been committed (the user
hasn't actually seen anything on screen yet).  Then, during the
COMMIT phase, we adjust the animation start time to better reflect
the time when the animation's first frame was drawn, effectively
causing the animation actually start after the expensive traversal
operations occurred such that no frames will be skipped.

Bug: 17258911
Change-Id: I279603d01fd4ed1de8f51a77c62f4fec5e9b746a
2015-04-07 12:27:17 -07:00
Wale Ogunwale
b922301526 Merge "Fixed bug with ActivityInfo.FLAG_SHOW_ON_LOCK_SCREEN not working" 2015-04-07 03:06:23 +00:00
Wale Ogunwale
33c375ff92 Merge "Lockdown AM.getRunningAppProcesses API with permission.REAL_GET_TASKS" 2015-04-07 02:32:10 +00:00
Adam Lesinski
0dce2acbe8 Merge "Adding per UID WiFi power distribution." 2015-04-07 01:53:00 +00:00
Adam Lesinski
b943fabfc8 Adding per UID WiFi power distribution.
Change-Id: Ia3d97e0a1c3352127185c18626d8ba8221c9ab40
2015-04-06 18:36:06 -07:00
Andre Eisenbach
227d23d4d6 Merge "Bluetooth: Do not initiate inquiry during pairing/SDP" 2015-04-07 01:02:24 +00:00
Christopher Tate
cd70621f92 Merge "Back up / restore preferred app configuration" 2015-04-07 00:38:40 +00:00
Wale Ogunwale
9dbaa54f68 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
2015-04-06 17:37:57 -07:00
Johnson Hsieh
7cf828ca64 Merge "Add VOICE_CANCEL_ALARM/VOICE_DELETE_ALARM intents." 2015-04-07 00:37:29 +00:00
Christopher Tate
e012a23556 Back up / restore preferred app configuration
Bug 19848104

Change-Id: I84cdfcc44b48a9732984955d7eedf745b5586bdd
2015-04-06 17:36:25 -07:00
Roozbeh Pournader
0f2974321b Merge "Switch from Lohit Odia to Noto Sans Oriya fonts." 2015-04-07 00:27:09 +00:00
Jason Sams
217a36b193 am ef2279a1: am 283e5ce3: am 7200f661: Merge "Fix minor blur doc bug"
* commit 'ef2279a1f1a12b9ba16cd18c7ec2be97111307a8':
  Fix minor blur doc bug
2015-04-07 00:17:24 +00:00
Jason Sams
ef2279a1f1 am 283e5ce3: am 7200f661: Merge "Fix minor blur doc bug"
* commit '283e5ce37ba3966f54d1a6d1a32a79da3a8ad0fd':
  Fix minor blur doc bug
2015-04-07 00:06:35 +00:00
Yang Ni
a9d76d153d am 249968b4: am 6bef5eb4: am 6422ee71: Merge "Rewrote FieldPack::createFieldPack for alignment"
* commit '249968b421a8dcfe5a26ec7f524e76295ec5eef5':
  Rewrote FieldPack::createFieldPack for alignment
2015-04-07 00:06:34 +00:00
Jason Sams
283e5ce37b am 7200f661: Merge "Fix minor blur doc bug"
* commit '7200f661c1e5ef1c59c5849610dc97492c7a3a16':
  Fix minor blur doc bug
2015-04-06 23:56:57 +00:00
Yang Ni
249968b421 am 6bef5eb4: am 6422ee71: Merge "Rewrote FieldPack::createFieldPack for alignment"
* commit '6bef5eb4e26d413044076a1dbfe9bce38218bd86':
  Rewrote FieldPack::createFieldPack for alignment
2015-04-06 23:56:01 +00:00
Wale Ogunwale
91d4c1d97a Merge "Enabled wait for wallpaper draw code, but reduced timeout to 500ms" 2015-04-06 23:50:50 +00:00
Craig Lafayette
bc80a260cf Merge "Add factory reset protection extras to DPM." 2015-04-06 23:47:34 +00:00
Yang Ni
6bef5eb4e2 am 6422ee71: Merge "Rewrote FieldPack::createFieldPack for alignment"
* commit '6422ee7105cc99f389ff8f09d51e2a874e97f470':
  Rewrote FieldPack::createFieldPack for alignment
2015-04-06 23:45:41 +00:00
Jason Sams
7200f661c1 Merge "Fix minor blur doc bug" 2015-04-06 23:38:05 +00:00
Johnson Hsieh
633bf5ca52 Add VOICE_CANCEL_ALARM/VOICE_DELETE_ALARM intents.
This will be used by the Voice Interaction API. For details, see
https://docs.google.com/document/d/1_yRTbn-BxFi8Lc6bVmJ4r2dg3-05qUxf9yChiZXiiew/edit#.

Change-Id: Icf4371ff351298ef7c1158e5e2d35561fc6cef67
2015-04-06 16:29:39 -07:00
Yang Ni
6422ee7105 Merge "Rewrote FieldPack::createFieldPack for alignment" 2015-04-06 23:28:23 +00:00
Matthew Williams
cff70cd860 am 0d025e10: am 679572ca: am 0b3673c4: am 20baa9d9: am 28358eae: Merge "Fixing to fail android.JobScheduler.TimingConstraintsTest#testSchedulePeriodic in TV test." into lmp-mr1-dev
* commit '0d025e10b215a0042ad19e9c6e0af4fe3e745d16':
  Fixing to fail android.JobScheduler.TimingConstraintsTest#testSchedulePeriodic in TV test.
2015-04-06 23:28:06 +00:00
Venkat Raghavan
05e08c3a2f Bluetooth: Do not initiate inquiry during pairing/SDP
Retry SDP if it gets cancelled in BONDING state.
If SDP search initiated after the pairing gets cancelled, re-initiate
SDP search from the BTIF layer to ensure completion of the bonding
process.

While pairing/SDP discovery of the bonded device is in progress,
do not initiate inquiry.

Bug: 19417758
Change-Id: I2d80883999771c53b58cc3017a63b17e3564bc57
2015-04-06 16:27:09 -07:00
Alan Viverette
6c6d266c40 Merge "Fix progress tint attributes" 2015-04-06 23:11:51 +00:00
Alan Viverette
1f188b5699 Merge "Replace PNG list divider with XML shape" 2015-04-06 23:11:30 +00:00
Alan Viverette
789e776835 Replace PNG list divider with XML shape
Change-Id: I06bf589de22682f7c598f56fbdbfcd61cb72b099
2015-04-06 15:37:22 -07:00
Alan Viverette
dbc401888d Fix progress tint attributes
Change-Id: Ie22f5177144ecbe981f6b342236714a3ce520cbc
2015-04-06 15:01:23 -07:00
Yang Ni
8bcbf47245 Rewrote FieldPack::createFieldPack for alignment
b/20032217

Some data types requires data alignment. This has an impact on the
total data size for the FieldPack. Fixed createFiledPack()
implementation to handle this correctly.

Change-Id: I241da19df69bf51cfdaf3b3a1381b446eaacb7fb
2015-04-06 14:49:53 -07:00
Alan Viverette
33f8d0976f Merge "Fix inner/outer circle swap and dot color in RadialTimePickerView" 2015-04-06 21:43:16 +00:00
Amith Yamasani
9b528cc161 Merge "Mark apps as not-idle at least once" 2015-04-06 21:42:56 +00:00
Alan Viverette
863ba4c4bf Merge "Unify drawable caches" 2015-04-06 21:40:45 +00:00
Alan Viverette
88e5103232 Fix inner/outer circle swap and dot color in RadialTimePickerView
Bug: 20041669
Change-Id: Iefdd477136970efe1638982c1f659fbb4f452676
2015-04-06 14:38:37 -07:00
Wally Yau
3d518037fe Merge "Reset system audio mode on startup rather than on stop." 2015-04-06 21:36:16 +00:00
Chong Zhang
1f93cddda8 Merge "fix the flash caused by missing setMatrix() when surface size changes" 2015-04-06 21:35:15 +00:00
Matthew Williams
0d025e10b2 am 679572ca: am 0b3673c4: am 20baa9d9: am 28358eae: Merge "Fixing to fail android.JobScheduler.TimingConstraintsTest#testSchedulePeriodic in TV test." into lmp-mr1-dev
* commit '679572ca969b9bf27786cff2123ec466b9a37222':
  Fixing to fail android.JobScheduler.TimingConstraintsTest#testSchedulePeriodic in TV test.
2015-04-06 21:02:05 +00:00
Wale Ogunwale
3fcb4a8975 Fixed bug with ActivityInfo.FLAG_SHOW_ON_LOCK_SCREEN not working
There were a few places in ActivityManager and WindowManager that we
were not taking the value of the flag into account when deciding
which task to be up top in multi-user mode.

Bug: 10533764
Change-Id: If2032ccd5f1a67b3ad4af376b4db7043e9070796
2015-04-06 14:00:13 -07:00
Deepanshu Gupta
1fd5d21e0d Merge "Be lenient in accepting version strings." 2015-04-06 20:56:05 +00:00
Matthew Williams
679572ca96 am 0b3673c4: am 20baa9d9: am 28358eae: Merge "Fixing to fail android.JobScheduler.TimingConstraintsTest#testSchedulePeriodic in TV test." into lmp-mr1-dev
* commit '0b3673c4d39c07779081ef2eaf8705cbad1ee04c':
  Fixing to fail android.JobScheduler.TimingConstraintsTest#testSchedulePeriodic in TV test.
2015-04-06 20:53:26 +00:00
Matthew Williams
0b3673c4d3 am 20baa9d9: am 28358eae: Merge "Fixing to fail android.JobScheduler.TimingConstraintsTest#testSchedulePeriodic in TV test." into lmp-mr1-dev
* commit '20baa9d944ccb504d0fdf7ce2e553bca9ca2f672':
  Fixing to fail android.JobScheduler.TimingConstraintsTest#testSchedulePeriodic in TV test.
2015-04-06 20:43:30 +00:00
Matthew Williams
20baa9d944 am 28358eae: Merge "Fixing to fail android.JobScheduler.TimingConstraintsTest#testSchedulePeriodic in TV test." into lmp-mr1-dev
* commit '28358eaed2e1858fcba7991cbd7199a25d160471':
  Fixing to fail android.JobScheduler.TimingConstraintsTest#testSchedulePeriodic in TV test.
2015-04-06 20:30:29 +00:00
Amith Yamasani
b677e0a496 Merge "Update command line usage for pm" 2015-04-06 20:24:13 +00:00
Matthew Williams
28358eaed2 Merge "Fixing to fail android.JobScheduler.TimingConstraintsTest#testSchedulePeriodic in TV test." into lmp-mr1-dev 2015-04-06 20:22:22 +00:00
Dianne Hackborn
5164608195 Merge "Various fixes and improvements..." 2015-04-06 20:21:58 +00:00
Amith Yamasani
3605fac80b Update command line usage for pm
Include the --user flag.

Change-Id: Id2a2bc73f4b7392e308c5946eeb42b21426a1bfd
2015-04-06 13:20:45 -07:00
Matthew Williams
b8a330ebe7 Merge "JobParameters#isDeadlineExpired returns wrong value" 2015-04-06 20:18:43 +00:00
Raph Levien
f1f9902b19 Merge "Load hyphenation data at Zygote init" 2015-04-06 20:02:16 +00:00
Raph Levien
c3dd1c1b91 Load hyphenation data at Zygote init
Loading hyphenation data on demand can cause UI jank (and can be a
strict mode violation). This patch explicitly loads the data at
Zygote init time. It also chooses /system/usr/hyphen-data as the path
for this data.

Bug: 20060770

Change-Id: Idac68e3971f8638f1d70960594bf6c1050bb23d6
2015-04-06 19:53:30 +00:00
Amith Yamasani
55717a613c Mark apps as not-idle at least once
On a fresh boot or update to M, mark existing apps
as being used if there is no existing entry in the
usage stats. On subsequent OTAs, make sure that at
least the new system apps are marked as used.

Reduce idle threshold to 1 day.

Bug: 20066058
Change-Id: I9a273c051d04432877bacd381c85bf6e721c1a85
2015-04-06 12:52:53 -07:00