176377 Commits

Author SHA1 Message Date
Quddus Chong
922946ea75 am a0c887c6: docs: Fixed typo in Implementing In-app Billing guide. bug: 19961296
* commit 'a0c887c67e5d925247fcb77d714ccc3383c0d0da':
  docs: Fixed typo in Implementing In-app Billing guide. bug: 19961296
2015-04-07 18:58:07 +00:00
Joe Fernandez
2e567682a2 am 038fe2de: am 19a57761: am 95c39774: docs: Small fix for Android Dashboard
* commit '038fe2deab06ff4fb72db1f5d5012ddf35c5d04d':
  docs: Small fix for Android Dashboard
2015-04-07 18:53:01 +00:00
Quddus Chong
47c1835a45 am 868c795d: am 0307acf9: Merge "docs: Removed instruction to add gms version in manifest during Google Play services setup, since Android Studio automatically handles this. bug: 20077293" into lmp-docs
* commit '868c795dd253ff31999962f84299be27e4d5828f':
  docs: Removed instruction to add gms version in manifest during Google Play services setup, since Android Studio automatically handles this. bug: 20077293
2015-04-07 18:51:22 +00:00
Quddus Chong
a0c887c67e docs: Fixed typo in Implementing In-app Billing guide.
bug: 19961296

Change-Id: If170b58feb6d7160790591b540cdb91d7c23d6e5
2015-04-07 11:48:30 -07:00
Joe Fernandez
5861b5b618 am 911e4c50: am ab882856: am b1a6bd01: docs: April 2015 Android Dashboard update
* commit '911e4c508ca3061bbf8d13e78350636f1b3ef52e':
  docs: April 2015 Android Dashboard update
2015-04-07 18:41:32 +00:00
Quddus Chong
868c795dd2 am 0307acf9: Merge "docs: Removed instruction to add gms version in manifest during Google Play services setup, since Android Studio automatically handles this. bug: 20077293" into lmp-docs
* commit '0307acf90773a16faa6b33dad12b14b95708a3cc':
  docs: Removed instruction to add gms version in manifest during Google Play services setup, since Android Studio automatically handles this. bug: 20077293
2015-04-07 18:40:32 +00:00
Joe Fernandez
038fe2deab am 19a57761: am 95c39774: docs: Small fix for Android Dashboard
* commit '19a57761b4aec17c907d271e58ae4c20da40a039':
  docs: Small fix for Android Dashboard
2015-04-07 18:40:22 +00:00
Fyodor Kupolov
88d9797aa8 am 77e46d21: am 6a17f601: Merge "Unnecessary dexopt in installPackageLI"
* commit '77e46d214db035f150e8522fad03edec913939e8':
  Unnecessary dexopt in installPackageLI
2015-04-07 18:35:10 +00:00
Quddus Chong
0307acf907 Merge "docs: Removed instruction to add gms version in manifest during Google Play services setup, since Android Studio automatically handles this. bug: 20077293" into lmp-docs 2015-04-07 18:31:45 +00:00
Joe Fernandez
911e4c508c am ab882856: am b1a6bd01: docs: April 2015 Android Dashboard update
* commit 'ab8828564c5a121ce341710b362bb8f090995885':
  docs: April 2015 Android Dashboard update
2015-04-07 18:31:12 +00:00
Joe Fernandez
19a57761b4 am 95c39774: docs: Small fix for Android Dashboard
* commit '95c39774d245921be04b2a6f0f221f86545f8ac6':
  docs: Small fix for Android Dashboard
2015-04-07 18:31:03 +00:00
Quddus Chong
31864381d3 docs: Removed instruction to add gms version in manifest during Google Play services setup, since Android Studio automatically handles this.
bug: 20077293

Change-Id: Ie1148e751b9d22e5e7a1abad819c19a4c0b9c6b7
2015-04-07 11:30:09 -07:00
Fyodor Kupolov
77e46d214d am 6a17f601: Merge "Unnecessary dexopt in installPackageLI"
* commit '6a17f60166082227a5a644f9114db46a0ade73f0':
  Unnecessary dexopt in installPackageLI
2015-04-07 18:24:55 +00:00
Joe Fernandez
ab8828564c am b1a6bd01: docs: April 2015 Android Dashboard update
* commit 'b1a6bd01bc278f4f6c6a656925e37b998d93f143':
  docs: April 2015 Android Dashboard update
2015-04-07 18:18:55 +00:00
Joe Fernandez
95c39774d2 docs: Small fix for Android Dashboard
Change-Id: I33f3b8b4a7b7abdf16bb5fc4964c51f2809f6c3d
2015-04-07 11:18:00 -07:00
Alex Klyubin
06adabdbec am 4b79bbea: am 558184f5: Merge "Make the new AndroidKeyStore API conformant."
* commit '4b79bbeaa3c6a8820fe83aa75179b6cae550320f':
  Make the new AndroidKeyStore API conformant.
2015-04-07 18:07:53 +00:00
Joe Fernandez
b1a6bd01bc docs: April 2015 Android Dashboard update
Change-Id: I7ddd526209cb41cc8944ea5bd99a32021ab343fa
2015-04-07 11:07:53 -07:00
Romain Guy
b3a9bc038d Prevent possible memory leak in SpanSet
If SpanSet.init() is called several times in a row with different
values, it is possible to change "numberOfSpans" in a way that
will prevent SpanSet.recycle() from nulling out all the spans.

This can lead to memory leaks of large objects through spans
references. User @piwai reported this leak:

     com.squareup.marketfont.MarketSpan
     `-[1] of array android.text.style.CharacterStyle[]
       `-spans of object android.text.SpanSet
         `-mCharacterStyleSpanSet of object android.text.TextLine
           `-[1] of array android.text.TextLine[]
             `-sCached of class android.text.TextLine

The MarketSpan instance is kept alive through a recycled TextLine
which itself contains a SpanSet.

Change-Id: Idfb2233ca16895dbe735c312662eaf0b4a2ecd65
2015-04-07 11:07:05 -07:00
Fyodor Kupolov
6a17f60166 Merge "Unnecessary dexopt in installPackageLI" 2015-04-07 18:03:35 +00:00
Alex Klyubin
4b79bbeaa3 am 558184f5: Merge "Make the new AndroidKeyStore API conformant."
* commit '558184f52fa7822a0bde230a93e552f137ac91a4':
  Make the new AndroidKeyStore API conformant.
2015-04-07 17:58:00 +00:00
Dmitriy Ivanov
f838b76f75 am aa94389b: am d95e58cb: Merge "Load libraries directly from apk"
* commit 'aa94389ba2f848a98c74b439da6ea8c3329668ce':
  Load libraries directly from apk
2015-04-07 17:57:03 +00:00
Dmitriy Ivanov
aa94389ba2 am d95e58cb: Merge "Load libraries directly from apk"
* commit 'd95e58cb609228c4c4b231e00d6bb648e9dcaf71':
  Load libraries directly from apk
2015-04-07 17:49:12 +00:00
Olawale Ogunwale
e97118c84d am bde7e467: am d229f442: Merge "Add a timeout state to frozen windows"
* commit 'bde7e467acf61516706c98a05edc23d25275b7ff':
  Add a timeout state to frozen windows
2015-04-07 17:45:41 +00:00
Alex Klyubin
558184f52f Merge "Make the new AndroidKeyStore API conformant." 2015-04-07 17:39:08 +00:00
Olawale Ogunwale
bde7e467ac am d229f442: Merge "Add a timeout state to frozen windows"
* commit 'd229f442d5b8c2e600eaa4daeec0e771631ed83d':
  Add a timeout state to frozen windows
2015-04-07 17:35:53 +00:00
Dmitriy Ivanov
d95e58cb60 Merge "Load libraries directly from apk" 2015-04-07 17:28:15 +00:00
Dmitriy Ivanov
dec4688f40 Load libraries directly from apk
Introduced new 'extractNativeLibs' attribute to manifest/application.
 Setting it to false prevents installer from extracting library from apk.

 The default value for extractNativeLibs is true.

Bug: 8076853
(cherry picked from commit ff193d642eea7128faad837d19e347cd25212c27)
Change-Id: I1aa2c039bb2a590ae72f256acc9ba5401c2c59b1
2015-04-07 17:25:23 +00:00
Olawale Ogunwale
d229f442d5 Merge "Add a timeout state to frozen windows" 2015-04-07 17:14:32 +00:00
Alex Klyubin
c46e9e7da4 Make the new AndroidKeyStore API conformant.
This makes the new AndroidKeyStore API conform with the latest
Keymaster API changes as well as the latest Android framework API
design guidelines.

Keymaster changes:
* Multiple paddings, block modes, and digests can be set on a key.
* "max uses per boot" and "min seconds between use" restrictions will
  not be exposed in the framework API.
* Padding scheme ZERO will not be exposed.

Changes due to Android framework design guidelines:
* Sets of enum values have been replaced with bitsets represented as
  ints.
* Integer has been replaced with int, with null being represented
  with a special value (e.g., -1 or 0) where possible.

Bug: 18088752
Change-Id: Ib21739aa9b42d48895cb7a681e836a5c6d972ac6
2015-04-07 09:18:00 -07:00
Craig Mautner
3aacbbc025 Add a timeout state to frozen windows
When an activity stops drawing following a rotation the rotation
screenshot would become stuck on top of all the other windows. The
timeout was being acknowledged but mWindowsFreezingScreen was set to
true which kept stopFreezingDisplayLocked() from dismissing the
screen rotation animation.

By changing mWindowsFreezingScreen from a two state variable to a
three state variable, including a timeout state we allow
stopFreezingDisplayLocked() to continue and dismiss the screen
rotation animtion.

This change also reduces the APP_FREEZING_TIMOEOUT from 5 seconds to
2 seconds.

Bug: 15664090

Change-Id: Ida5aca002a82ec8fe1ea99f0ced814c5c8f01a95
2015-04-07 09:14:36 -07:00
Olawale Ogunwale
5b65228224 am a9418c24: am 8928c727: Merge "[ActivityManager] Improve task order of getRunningTasks."
* commit 'a9418c241fffbe5f70cc9044dd759026d14113e3':
  [ActivityManager] Improve task order of getRunningTasks.
2015-04-07 13:12:51 +00:00
Olawale Ogunwale
a9418c241f am 8928c727: Merge "[ActivityManager] Improve task order of getRunningTasks."
* commit '8928c7271bee4b31e94b3d9e8e6e756d5aa2bcff':
  [ActivityManager] Improve task order of getRunningTasks.
2015-04-07 13:02:37 +00:00
Olawale Ogunwale
8928c7271b Merge "[ActivityManager] Improve task order of getRunningTasks." 2015-04-07 12:45:38 +00:00
Olawale Ogunwale
bf39a6c660 am 43293fa8: am 437db610: Merge "[ActivityManager] Do not add service to reschedule after removing users."
* commit '43293fa800d3c7d93ce99bb937ceb7496da85ffa':
  [ActivityManager] Do not add service to reschedule after removing users.
2015-04-07 04:05:57 +00:00
Olawale Ogunwale
43293fa800 am 437db610: Merge "[ActivityManager] Do not add service to reschedule after removing users."
* commit '437db6106b20d5a81f12a93593b5f623b3159f19':
  [ActivityManager] Do not add service to reschedule after removing users.
2015-04-07 03:55:38 +00:00
Olawale Ogunwale
437db6106b Merge "[ActivityManager] Do not add service to reschedule after removing users." 2015-04-07 03:36:30 +00:00
riddle_hsu
ddc74155c9 [ActivityManager] Improve task order of getRunningTasks.
Symptom:
During switching task in same stack, the first result
of getRunningTasks will be the behind stack's top task.
e.g.
 App Task X is starting task Y, the first entry may be home.

Root Cause:
TaskRecord's lastActiveTime is updated when pausing
or resuming. When X task launch a new task Y, Y is
on the top of task history, before X complete pause,
Y's lastActiveTime will be 0 because it is a new task.
Then when comparing the front task with other stack,
other stack will be regarded as the newer one.

Solution:
If the stack is focused stack, give the top task with the last time.

Change-Id: I0adc07608e03d333e0120a0dbc52a0fbbbb12f34
2015-04-07 11:30:09 +08:00
Fyodor Kupolov
36b26adde8 Unnecessary dexopt in installPackageLI
When a new package is created, installNewPackageLI does not need to call
dexopt, since it has already been made.

Bug: 19550105
Bug: 20087446
Change-Id: If6b05bea590eea5f95efebb22a67ccd8cdf632c2
2015-04-06 19:04:08 -07: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
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
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
Yang Ni
6422ee7105 Merge "Rewrote FieldPack::createFieldPack for alignment" 2015-04-06 23:28:23 +00: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
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
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
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