Commit Graph

10713 Commits

Author SHA1 Message Date
Adam Koch
985f6801fc am 5f51b7fb: Bitmapfun Sample: Add some docs and clean up some method naming.
* commit '5f51b7fb0caa695e2905545441979c5f0aa6f973':
  Bitmapfun Sample: Add some docs and clean up some method naming.
2013-02-21 14:14:37 -08:00
Adam Koch
d97830ca46 am e826ee24: Merge "Bitmapfun Sample: Add additional sample images." into jb-mr1-dev
* commit 'e826ee24ecacce4ff8d7ff511c1d9101f665a1c8':
  Bitmapfun Sample: Add additional sample images.
2013-02-21 14:14:36 -08:00
Chris Banes
d2de640ee3 am c5d5c3db: Merge "bitmapfun: Add support to use inBitmap option" into jb-mr1-dev
* commit 'c5d5c3db62354a51b90934511a1f8dd1c87e987f':
  bitmapfun: Add support to use inBitmap option
2013-02-21 14:14:35 -08:00
Adam Koch
5f51b7fb0c Bitmapfun Sample: Add some docs and clean up some method naming.
Change-Id: I12dc039b1084a8f1a27b47a5a516773ab4e1c2cb
2013-02-21 11:00:19 -05:00
Adam Koch
e826ee24ec Merge "Bitmapfun Sample: Add additional sample images." into jb-mr1-dev 2013-02-21 14:03:07 +00:00
Chris Banes
c5d5c3db62 Merge "bitmapfun: Add support to use inBitmap option" into jb-mr1-dev 2013-02-21 11:28:45 +00:00
Adam Koch
ec4b4c4188 Bitmapfun Sample: Add additional sample images.
Add a larger number of sample images so it's easier to see the result
of the various bitmap optimizations.

Change-Id: Ieef04a1cd4dc6cf1fa165baa0a6f8d4750b58d71
2013-02-20 15:08:06 -05:00
Chris Banes
3b7f23f881 bitmapfun: Add support to use inBitmap option
This adds support for devices running Honeycomb or newer
to use the inBitmap BitmapFactory option when decoding images. The way
it accomplishes this is by adding a second level 'memory cache' using
SoftReferences. When an item is removed from the LruCache it is added
to this SoftReference Set. The next time an image is decoded, the Set
is searched to see if it contains a bitmap that can be re-used.

Change-Id: I8f980160ddc7116731b25e6f3f110c38f207f286
Signed-off-by: Chris Banes <chrisbanes@google.com>
2013-02-13 13:19:09 +00:00
Xavier Ducrohet
7b7aca60ba Move rev for 2 for API 17 and 12 for support. do not merge.
Change-Id: I8b3b1a964fb523bb2906cc15264914ffad147648
2013-02-12 09:27:51 -08:00
Chris Banes
2a84299d4d am f4535aee: Merge "Update bitmapfun sample to call recycle()" into jb-mr1-dev
# Via Android (Google) Code Review (1) and Chris Banes (1)
* commit 'f4535aee56bf564f962dbcbdc0ce03af98f0ebd4':
  Update bitmapfun sample to call recycle()
2013-02-07 09:15:44 -08:00
Chris Banes
f4535aee56 Merge "Update bitmapfun sample to call recycle()" into jb-mr1-dev 2013-02-07 17:12:28 +00:00
Chris Banes
4d6574e878 Update bitmapfun sample to call recycle()
A new sub-class of BitmapDrawable has been created which tracks
when it is being used or cached when running on Gingerbread or
older. A new ImageView subclass has been added to accomplish this,
as well as changes to the LruCache.

Change-Id: I95d3334684703aebb6b09fcd56194cf73e3c2dcf
Signed-off-by: Chris Banes <chrisbanes@google.com>
2013-02-06 16:21:21 +00:00
Dirk Dougherty
64f03f37e3 am 451d3b83: Merge "Add redirect for removed file." into jb-mr1-dev
# Via Android (Google) Code Review (1) and Dirk Dougherty (1)
* commit '451d3b83cfbfd807ec3b86e3e2877cc8b2a39bab':
  Add redirect for removed file.
2013-02-05 14:08:30 -08:00
Dirk Dougherty
451d3b83cf Merge "Add redirect for removed file." into jb-mr1-dev 2013-02-05 22:06:58 +00:00
Dirk Dougherty
184a1dc183 Add redirect for removed file.
Change-Id: I94c59f54ab7daaae588f61c02601b7599799894b
2013-02-05 14:05:04 -08:00
Dirk Dougherty
a9fe80d204 am 388ea1e3: Minor updates to keep androiddevdocs redirect in sync with devsite version (in frameworks/base)
# Via Dirk Dougherty
* commit '388ea1e3e55bf37f22a6b98bcd57da1cb4b31032':
  Minor updates to keep androiddevdocs redirect in sync with devsite version (in frameworks/base)
2013-02-05 09:51:08 -08:00
Dirk Dougherty
388ea1e3e5 Minor updates to keep androiddevdocs redirect in sync with devsite version (in frameworks/base)
Change-Id: If2fdf0b92d560fcfbbcfe0f5ec65dd6dcf471560
2013-02-04 13:19:46 -08:00
Adam Koch
aa3687df9e am 2e5555e0: Bitmapfun Sample: Fix bug where background image loading could hang
# Via Adam Koch
* commit '2e5555e04b1e78f2d6fc48e8069b33399a4cf028':
  Bitmapfun Sample: Fix bug where background image loading could hang
2013-02-01 13:27:32 -08:00
Adam Koch
2e5555e04b Bitmapfun Sample: Fix bug where background image loading could hang
Background image loading is paused when the GridView is scrolling,
if the activity is destroyed during a scroll the image loading was
not unpaused causing it to remain running indefinitely. This change
makes sure the background image loading is unpaused.

Change-Id: Iad8093fc2af50fcfc1416c5d9089db0c064711cf
2013-01-28 12:20:42 -05:00
Chet Haase
8c013aeeec am 690af128: Cherrypick from Change-Id: I4ae984cf776604cede32b98db6b1eb3cb6c59c7e
* commit '690af1285c320a1d3fc31cc57414347c74bd8e1d':
  Cherrypick from Change-Id: I4ae984cf776604cede32b98db6b1eb3cb6c59c7e
2013-01-15 11:01:26 -08:00
Chet Haase
690af1285c Cherrypick from Change-Id: I4ae984cf776604cede32b98db6b1eb3cb6c59c7e
First set of demo apps for DevBytes videos

Change-Id: I696b184aaa8058f01c0369a173aae09e38a8cb08
2013-01-15 10:36:26 -08:00
Adam Koch
ec5a847325 am b8a61acb: Bitmapfun Sample: Change cache memory calculation to use maxMemory()
* commit 'b8a61acb072e03665b2c53c7fd049b5bbf5ed1d4':
  Bitmapfun Sample: Change cache memory calculation to use maxMemory()
2013-01-14 06:15:15 -08:00
Adam Koch
b8a61acb07 Bitmapfun Sample: Change cache memory calculation to use maxMemory()
When calculating memory cache size, use Runtime.maxMemory() instead
of getMemoryClass() which is a more accurate value of available VM
heap size.

Also bump target and build SDK to 17.

Bug: 7988323
Change-Id: I4b94688b3800d958ffbe03ee9a2a620982483d3d
2013-01-11 16:51:09 -05:00
Adam Koch
a1d11945fd am 6acfaccc: Bitmapfun Sample: Fix inSampleSize selection and update dependencies
* commit '6acfaccc5078e55a63d1c500bc0c28d432407e9e':
  Bitmapfun Sample: Fix inSampleSize selection and update dependencies
2013-01-10 06:26:41 -08:00
Adam Koch
6acfaccc50 Bitmapfun Sample: Fix inSampleSize selection and update dependencies
When computing inSampleSize, calculateInSampleSize() needs to compare
height/width ratios, rather than raw values.

Also updating support library JAR to latest version.

Bug: 7951398
Change-Id: Id15dbcc105bbd2bbf8e03883aeba780da6f807eb
2013-01-09 16:12:52 -05:00
Katie McCormick
1f1524395d am 65cc8b78: Network sample: fix typo in manifest
* commit '65cc8b78a8a3594911772c665d77fd6030d9fd51':
  Network sample: fix typo in manifest
2013-01-04 16:35:53 -08:00
Katie McCormick
65cc8b78a8 Network sample: fix typo in manifest
Change-Id: I5731dbb89d17bd15bc72a2f140bca2915976b4c1
2013-01-04 16:04:23 -08:00
Xavier Ducrohet
07d7362394 am bf323d72: Update platform tools rev to 16.0.2
* commit 'bf323d72b7db944a4a0c8794f28e03367abd8c99':
  Update platform tools rev to 16.0.2
2013-01-02 13:00:56 -08:00
Xavier Ducrohet
bf323d72b7 Update platform tools rev to 16.0.2
Change-Id: I814294bc9374f6194671eb173bd9942908db3848
2013-01-02 12:28:36 -08:00
Joe Malin
fa8f593a2a am 50600ba5: am a525bf71: am 1e083591: am 2c063c88: Android Training: Threads sample app
* commit '50600ba5d68e1e002bd8b6ca646be93f922d37ab':
  Android Training: Threads sample app
2012-12-13 11:03:10 -08:00
Joe Malin
50600ba5d6 am a525bf71: am 1e083591: am 2c063c88: Android Training: Threads sample app
* commit 'a525bf719545fc315d03c1c6ee74f61e8dda03e0':
  Android Training: Threads sample app
2012-12-13 11:00:59 -08:00
Joe Malin
a525bf7195 am 1e083591: am 2c063c88: Android Training: Threads sample app
* commit '1e083591aed6b77408f6fce363bd48e63db92ed4':
  Android Training: Threads sample app
2012-12-13 10:58:59 -08:00
Joe Malin
1e083591ae am 2c063c88: Android Training: Threads sample app
* commit '2c063c889aa816e0de91bf17fdc0c78f48d5e2d0':
  Android Training: Threads sample app
2012-12-13 10:57:14 -08:00
Dirk Dougherty
4b5dc0ce4d am 01b1a873: Merge "Add ko and ru to validLangs." into jb-mr1-dev
* commit '01b1a8739b338f50393e7c113d3a168710b45679':
  Add ko and ru to validLangs.
2012-12-13 10:52:28 -08:00
Dirk Dougherty
01b1a8739b Merge "Add ko and ru to validLangs." into jb-mr1-dev 2012-12-13 10:34:26 -08:00
Dirk Dougherty
22c9415195 Add ko and ru to validLangs.
Change-Id: I40d1a8e82d4b30cc2e787826252a85161e0157d8
2012-12-13 10:00:30 -08:00
Joe Malin
2c063c889a Android Training: Threads sample app
Change-Id: I6d07871acad31807eb4bf06aa8406b722320680c
2012-12-12 10:47:58 -08:00
Dirk Dougherty
7377374bf6 am 7ca28063: Add redirect for IAB v3 restructure.
* commit '7ca280639960cc18ad8a9b398c1e059df27597b5':
  Add redirect for IAB v3 restructure.
2012-12-10 09:25:25 -08:00
Dirk Dougherty
7ca2806399 Add redirect for IAB v3 restructure.
Change-Id: I65ccc6767408977a9756b217168b819b71816c1f
2012-12-09 17:09:26 -08:00
Dianne Hackborn
613e19b740 SDK Only: Fix search interaction with various samples.
These were broken where pressing back would not clear the
search filter.

Change-Id: Iafd4a497a31a9689efabe7d92f44618a5e8dc80c
2012-12-05 15:17:31 -08:00
Dirk Dougherty
51b6b20fe6 am 6d198012: Redirects /guide/google to /google/.
* commit '6d198012a9150521c08af28c669b5b589f0465ac':
  Redirects /guide/google to /google/.
2012-12-02 17:56:36 -08:00
Dirk Dougherty
6d198012a9 Redirects /guide/google to /google/.
Change-Id: I5018200bb8717e69d2485ce4d1b8804a1d90e2c8
2012-12-02 17:25:10 -08:00
Xavier Ducrohet
8325f80ba4 am 0e61ea6f: Move plat-tools SDK component rev to 16.0.1
* commit '0e61ea6f3967846d0796d533f98cad0fb91f3d3d':
  Move plat-tools SDK component rev to 16.0.1
2012-11-30 13:57:31 -08:00
Xavier Ducrohet
0e61ea6f39 Move plat-tools SDK component rev to 16.0.1
Change-Id: Id04fb83c09190bdb1a1b0c685c2c7db3ada8c47d
2012-11-30 13:54:11 -08:00
kmccormick@google.com
6eed638a9c am ab85a2a5: am d77ac2b9: am 80e0ac6a: am 70db2b6b: Merge "Doc change: sample app for Notifications class" into jb-dev-docs
* commit 'ab85a2a59a1fd2dad2ad27d5b8853b589d942e2f':
  Doc change: sample app for Notifications class
2012-11-27 11:27:33 -08:00
kmccormick@google.com
ab85a2a59a am d77ac2b9: am 80e0ac6a: am 70db2b6b: Merge "Doc change: sample app for Notifications class" into jb-dev-docs
* commit 'd77ac2b955ff5adf68f7437bb286c3e02430f896':
  Doc change: sample app for Notifications class
2012-11-27 11:25:27 -08:00
kmccormick@google.com
d77ac2b955 am 80e0ac6a: am 70db2b6b: Merge "Doc change: sample app for Notifications class" into jb-dev-docs
* commit '80e0ac6abc4a58d7442cc1d0707e77f4636ea0bd':
  Doc change: sample app for Notifications class
2012-11-27 11:22:40 -08:00
kmccormick@google.com
80e0ac6abc am 70db2b6b: Merge "Doc change: sample app for Notifications class" into jb-dev-docs
* commit '70db2b6bcebfd7c34533114b0dab00d2a821d9c5':
  Doc change: sample app for Notifications class
2012-11-27 11:19:36 -08:00
&& repo sync -j8
70db2b6bce Merge "Doc change: sample app for Notifications class" into jb-dev-docs 2012-11-27 10:53:04 -08:00
&& repo sync -j8
fc0d593056 Doc change: sample app for Notifications class
Change-Id: Iaa45156f333e5b8e9bc9cc596900835540ff138e
2012-11-26 16:56:34 -08:00