OSDN Git Service
Swan_Wang [Thu, 3 Dec 2009 06:36:54 +0000 (14:36 +0800)]
make the preview frame fit to camera
Jean-Baptiste Queru [Mon, 23 Nov 2009 17:19:42 +0000 (09:19 -0800)]
merge from donut
The Android Open Source Project [Wed, 21 Oct 2009 21:44:42 +0000 (14:44 -0700)]
Merge branch 'donut' into donut-release
Eric Fischer [Tue, 13 Oct 2009 21:07:26 +0000 (14:07 -0700)]
Import revised translations. DO NOT MERGE
Change-Id: If32e5dd78d6421afc69152db2c7dec5f03f6c984
Eric Fischer [Wed, 30 Sep 2009 17:52:41 +0000 (10:52 -0700)]
Eric Fischer [Wed, 30 Sep 2009 17:52:41 +0000 (10:52 -0700)]
Mark the untranslatable Camera arrays as translatable="false".
Fixes P0 bug
2156910 that made it impossible to enter Camera settings
in German or French.
Change-Id: I594aa08a846a3421b206b9cdba72dbe4624fde35
Jean-Baptiste Queru [Thu, 3 Sep 2009 21:13:12 +0000 (14:13 -0700)]
merge from donut
Chih-Chung Chang [Wed, 26 Aug 2009 11:16:31 +0000 (19:16 +0800)]
Remove unused library.
This should save about 30k (uncompressed) on the user build.
The library was used for the uploader, but the code has long since been removed.
Ravi K Yenduri [Mon, 24 Aug 2009 18:07:49 +0000 (13:07 -0500)]
Support to download and play from a SDP file.
Eric Fischer [Mon, 17 Aug 2009 20:14:35 +0000 (13:14 -0700)]
Import revised translations. DO NOT MERGE
Owen Lin [Fri, 14 Aug 2009 06:24:23 +0000 (14:24 +0800)]
Open Google Maps by default for "Show on map". DO NOT MERGE
This will solve an issue that browser will crash when open the http URL for map.
(bug
2039537). But we need to use these kind of intent for GMM to show a marker
on map. So, we change the code to open it with GMM first. If GMM is not installed,
we will use others who can handle the "geo:lat,lng" intent.
Wei-Ta Chen [Wed, 12 Aug 2009 13:00:23 +0000 (21:00 +0800)]
Fix http://b/issue?id=
2048408.
(1) Set default maximum numbers of pixels for thumbails and mini thumbnails.
(2) Enfore computeSampleSize() to return a sample size that is either power of 2
or multiple of 8.
Chih-Chung Chang [Mon, 10 Aug 2009 09:00:52 +0000 (17:00 +0800)]
Make the responsive region larger for the Picture/Video mode switch.
Chih-Chung Chang [Thu, 6 Aug 2009 06:33:30 +0000 (14:33 +0800)]
Removed unused resources and code. See
2036961: build size too large.
Android (Google) Code Review [Fri, 7 Aug 2009 20:42:08 +0000 (13:42 -0700)]
Merge change 20382 into donut
* changes:
Fix issue
2039521: Pressing back key doesn't work.
Jeff Sharkey [Fri, 7 Aug 2009 04:38:08 +0000 (21:38 -0700)]
Adopt new AppWidget assets, per http://b/
2038594.
repo syn && make -j4 [Fri, 7 Aug 2009 01:41:42 +0000 (18:41 -0700)]
Fix issue
2039521: Pressing back key doesn't work.
Owen Lin [Thu, 6 Aug 2009 07:29:34 +0000 (15:29 +0800)]
Hide controls when return from other activities.
Android (Google) Code Review [Thu, 6 Aug 2009 05:48:01 +0000 (22:48 -0700)]
Merge change 20231 into donut
* changes:
Change the task affinity of Camcorder to be different as Camera.
Owen Lin [Wed, 5 Aug 2009 09:08:17 +0000 (17:08 +0800)]
Change the task affinity of Camcorder to be different as Camera.
Chih-Chung Chang [Wed, 5 Aug 2009 08:17:38 +0000 (16:17 +0800)]
Fix
2033184: Crash on delete after downloading/previewing picture attachments.
Eric Fischer [Mon, 3 Aug 2009 23:08:24 +0000 (16:08 -0700)]
Import revised translations. DO NOT MERGE
Jean-Baptiste Queru [Mon, 3 Aug 2009 14:45:46 +0000 (07:45 -0700)]
merge from donut
Android (Google) Code Review [Fri, 31 Jul 2009 14:46:57 +0000 (07:46 -0700)]
Merge change 9125 into donut
* changes:
Fix bug
2022547. Show zoom buttons only when click on photo area.
Wu-cheng Li [Fri, 31 Jul 2009 06:29:08 +0000 (14:29 +0800)]
Make CropImage always fullscreen.
Owen Lin [Thu, 30 Jul 2009 02:23:30 +0000 (10:23 +0800)]
Fix bug
2022547. Show zoom buttons only when click on photo area.
Chih-Chung Chang [Fri, 31 Jul 2009 04:28:40 +0000 (12:28 +0800)]
Fix
2021864: NPE while saving picture in CropImage.
The problem is if the bitmap is passed inline, we won't have a image list
to release in onDestroy.
Chih-Chung Chang [Thu, 30 Jul 2009 09:59:09 +0000 (17:59 +0800)]
Make dpad left/right move to prev/next image.
Android (Google) Code Review [Thu, 30 Jul 2009 11:57:47 +0000 (04:57 -0700)]
Merge change 9141 into donut
* changes:
Lower the priority of the ImageGetter thread to avoid competing with the UI thread.
Chih-Chung Chang [Thu, 30 Jul 2009 11:14:04 +0000 (19:14 +0800)]
Lower the priority of the ImageGetter thread to avoid competing with
the UI thread.
Android (Google) Code Review [Thu, 30 Jul 2009 10:21:06 +0000 (03:21 -0700)]
Merge change 9085 into donut
* changes:
Fix bug
2022547. Show zoom buttons only when click on photo area.
Owen Lin [Thu, 30 Jul 2009 02:23:30 +0000 (10:23 +0800)]
Fix bug
2022547. Show zoom buttons only when click on photo area.
Wu-cheng Li [Thu, 30 Jul 2009 09:14:34 +0000 (17:14 +0800)]
Make CropImage support fullscreen extra.
b2022570. When returning from a full-screen activity to a non-full-screen one, screen jumps a little and scroll bars are partially off screen. This is a work-around to prevent the issue.
Owen Lin [Thu, 30 Jul 2009 01:46:16 +0000 (09:46 +0800)]
Revert "Use revised zoom widget, on the right in Gallery."
Jean-Baptiste Queru [Wed, 29 Jul 2009 21:57:06 +0000 (14:57 -0700)]
merge from donut
Ray Chen [Mon, 20 Jul 2009 08:33:41 +0000 (16:33 +0800)]
Defer bitmap rotation until it's drawn on ImageView.
Android (Google) Code Review [Wed, 29 Jul 2009 09:38:53 +0000 (02:38 -0700)]
Merge change 8958 into donut
* changes:
Fix http://b/
2017388 by handling the corner case in computeSampleSize().
Wei-Ta Chen [Wed, 29 Jul 2009 09:24:50 +0000 (17:24 +0800)]
Fix b/
2017388 by handling the corner case in computeSampleSize().
Wu-cheng Li [Wed, 29 Jul 2009 08:08:17 +0000 (16:08 +0800)]
Check storage again after receiving storage related intents.
Media scanner sends ACTION_MEDIA_SCANNER_STARTED if it is scanning internal. We need to check storage again after receiving intents.
Wu-cheng Li [Mon, 27 Jul 2009 09:44:56 +0000 (17:44 +0800)]
Show "prepareing SD card" when media scanner is scanning.
Fix
1996415.
Ray Chen [Tue, 21 Jul 2009 06:55:35 +0000 (14:55 +0800)]
Use revised zoom widget, on the right in Gallery.
Chih-Chung Chang [Mon, 27 Jul 2009 05:03:29 +0000 (13:03 +0800)]
Fix b/
1991523 by limiting the size of a bitmap when we decode a full image.
computeSampleSize() now accepts not only targetWidthOrHeight but also the size of a bitmap.
Jean-Baptiste Queru [Sun, 26 Jul 2009 00:48:03 +0000 (17:48 -0700)]
Merge korg/donut into korg/master
Chih-Chung Chang [Fri, 24 Jul 2009 11:06:58 +0000 (19:06 +0800)]
Remove unused code.
Chih-Chung Chang [Fri, 24 Jul 2009 10:39:58 +0000 (18:39 +0800)]
Remove unused code.
Chih-Chung Chang [Fri, 24 Jul 2009 02:58:40 +0000 (10:58 +0800)]
Simplify ImageGetter.
Chih-Chung Chang [Thu, 23 Jul 2009 02:06:33 +0000 (10:06 +0800)]
Fix
1996918: NPE in ViewImage.onClick.
Wei-Ta Chen [Mon, 20 Jul 2009 04:37:36 +0000 (12:37 +0800)]
Fix b/
1907995 by using native allocation in BitmapFactory.
Android (Google) Code Review [Fri, 17 Jul 2009 17:48:45 +0000 (10:48 -0700)]
Merge change 7584 into donut
* changes:
Capture individual camera and video startup time and output to a text file.
Android (Google) Code Review [Fri, 17 Jul 2009 05:38:50 +0000 (22:38 -0700)]
Merge change 6510 into donut
* changes:
Fix issue
1949573. In multiselect mode, don't show the select outline for touch event.
Owen Lin [Wed, 8 Jul 2009 22:13:54 +0000 (15:13 -0700)]
Fix issue
1949573. In multiselect mode, don't show the select outline
for touch event.
Owen Lin [Fri, 17 Jul 2009 00:09:24 +0000 (17:09 -0700)]
Fix the bug that the no images view will keep showning on screen even
when there are images.
The reason is that we only update (hide/show) the "no image view" in rebake,
which will only be invoked by media status changing (like scanning start,
eject SD card, and etc.) So, the bug will happen when the the image is add to
the card but there is no media status changing.
Yu Shan Emily Lau [Thu, 16 Jul 2009 21:20:32 +0000 (14:20 -0700)]
Capture individual camera and video startup time and output to a text file.
Ray Chen [Wed, 15 Jul 2009 10:38:29 +0000 (18:38 +0800)]
Rollback invalidateImage to refresh individual image instead of rebuilding whole list.
Wu-cheng Li [Wed, 15 Jul 2009 03:13:13 +0000 (11:13 +0800)]
Start preview earlier to let user see preview earlier.
This reverts commit
785cd00067fc822701aa5e43da00382352a90e99.
A workaround will be added in HAL for overlay case.
Android (Google) Code Review [Tue, 14 Jul 2009 17:49:22 +0000 (10:49 -0700)]
Merge change 6826 into donut
* changes:
Fix bug
1970161.
Android (Google) Code Review [Tue, 14 Jul 2009 16:33:16 +0000 (09:33 -0700)]
Merge change 7015 into donut
* changes:
Cancel the thread encoding in "onStop".
Chih-Chung Chang [Tue, 14 Jul 2009 08:51:53 +0000 (16:51 +0800)]
Fix the ImageGallery progress bar (the rotating circle in title).
Chih-Chung Chang [Mon, 13 Jul 2009 05:11:52 +0000 (13:11 +0800)]
Fix
1973541: The mode switcher does not correspond to the actual mode.
Owen Lin [Mon, 13 Jul 2009 23:45:23 +0000 (16:45 -0700)]
Cancel the thread encoding in "onStop".
Eric Fischer [Mon, 13 Jul 2009 22:45:27 +0000 (15:45 -0700)]
Import new translations
Ray Chen [Fri, 10 Jul 2009 10:36:48 +0000 (18:36 +0800)]
Fix the issue
1972285: The image rotation does not update in thumbnail view immediately after rotation.
Owen Lin [Fri, 10 Jul 2009 21:44:37 +0000 (14:44 -0700)]
Fix bug
1970161.
I think the reason is that we post a runner to do clean up when the
background job has been done.
However, the runner could be queued when the activity finished().
So, we first see a leak window message (because we havn't close the dialog yet)
And then see a "view not attached" exception (because we try to close
it after the activity being destroyed)
Fixed now.
Chih-Chung Chang [Fri, 10 Jul 2009 10:39:49 +0000 (18:39 +0800)]
Fix
1836138: Crash (permissions) when sharing from Email/Gmail --> Gallery --> Anywhere Else
Wu-cheng Li [Fri, 10 Jul 2009 09:38:43 +0000 (17:38 +0800)]
Revert "Start preview earlier to let user see preview earlier."
This reverts commit
20e4e11c81a37e4dcc87fe501ea853bd5b699fe3.
The original change broke overlay case.
Chih-Chung Chang [Fri, 10 Jul 2009 05:16:22 +0000 (13:16 +0800)]
Fix
1971900: Not able to delete picture using "Delete " contextual menu option.
Chih-Chung Chang [Thu, 9 Jul 2009 11:37:33 +0000 (19:37 +0800)]
Try to fix
1962530: out of memory in CropImage.
Recycle the bitmap as much as we can.
repo sync [Wed, 24 Jun 2009 06:59:48 +0000 (14:59 +0800)]
Move reverse geocoder to AsyncTask and update location information asynchronously.
Wei-Ta Chen [Thu, 11 Jun 2009 08:13:13 +0000 (16:13 +0800)]
Set bitmaps for full size images as being purgeable in viewing and reviewing images.
We increase the resolution of full size images to 2048x1536 for achieving better zoom-in quality.
Also the delay between decoding a thumbnail and decoding a full size image is set to 1000 msecs.
Chih-Chung Chang [Thu, 9 Jul 2009 02:27:02 +0000 (10:27 +0800)]
Fix
1962656: Going to gallery when sd card is full causes a crash.
Also simplify the thumbnail reading code.
I think we don't need to check the thumbnail magic being id
because all current thumbnail files should have random number
and not id. (see bug
1240638 for date).
repo sync [Mon, 6 Jul 2009 07:05:23 +0000 (15:05 +0800)]
Move ExifInterface to android.media package.
Ray Chen [Wed, 8 Jul 2009 08:54:54 +0000 (16:54 +0800)]
Revert ContentObserver in ImageGallery.
Android (Google) Code Review [Wed, 8 Jul 2009 10:56:12 +0000 (03:56 -0700)]
Merge change 6455 into donut
* changes:
Read max file size from video capture intent.
Wu-cheng Li [Wed, 8 Jul 2009 05:55:06 +0000 (13:55 +0800)]
Read max file size from video capture intent.
Fix
b1660028.
Chih-Chung Chang [Tue, 7 Jul 2009 12:01:55 +0000 (20:01 +0800)]
Draw the multiselect markers dynamically so we can avoid invalidating the thumbnails.
Owen Lin [Wed, 1 Jul 2009 00:17:40 +0000 (17:17 -0700)]
Use ReferenceQueue to improve LruCache.
Owen Lin [Tue, 7 Jul 2009 18:37:12 +0000 (11:37 -0700)]
Fix the NPE by keeping the mDbObserver in onStop(), just unregister it.
repo sync [Wed, 1 Jul 2009 10:37:14 +0000 (18:37 +0800)]
Monitor database change by ContentObserver so we can update media data incrementally and "wait dialog" is only shown when there's no image in the current bucket.
Yu Shan Emily Lau [Fri, 3 Jul 2009 01:07:17 +0000 (18:07 -0700)]
Added the memory measurement of the mediaserver in the camera image capture and video capture test cases.
Owen Lin [Thu, 2 Jul 2009 00:03:33 +0000 (17:03 -0700)]
Fix some warning shown in Eclipse.
Chih-Chung Chang [Mon, 6 Jul 2009 07:37:24 +0000 (15:37 +0800)]
Style fix.
Chih-Chung Chang [Fri, 3 Jul 2009 10:25:26 +0000 (18:25 +0800)]
Change camera latency time variables to non-static.
Chih-Chung Chang [Fri, 3 Jul 2009 07:26:55 +0000 (15:26 +0800)]
Add retry if the query fails. The query fails if the media
provider is killed.
Android (Google) Code Review [Fri, 3 Jul 2009 05:45:17 +0000 (22:45 -0700)]
Merge change 6046 into donut
* changes:
Fix
1956850: Muti-select is not usable for the last row of the images in gallery.
Owen Lin [Wed, 1 Jul 2009 22:51:45 +0000 (15:51 -0700)]
Reset the switch state in "onStart" in both Camera and Camcorder.
Chih-Chung Chang [Thu, 2 Jul 2009 11:48:11 +0000 (19:48 +0800)]
Fix
1956850: Muti-select is not usable for the last row of the images in gallery.
Chih-Chung Chang [Thu, 2 Jul 2009 10:13:35 +0000 (18:13 +0800)]
Fix
1956863: The border of the select image still stay on the screen
after removed all the images in gallery.
Chih-Chung Chang [Thu, 2 Jul 2009 09:18:24 +0000 (17:18 +0800)]
Fix
1956733: NPE in ImageManager.isImage
Chih-Chung Chang [Thu, 2 Jul 2009 09:07:20 +0000 (17:07 +0800)]
Fix
1955365: NPE in ViewImage.updateActionIcons
Chih-Chung Chang [Thu, 2 Jul 2009 08:46:30 +0000 (16:46 +0800)]
Fix
1956859: "Set as" is not working with the downloaded image.
Chih-Chung Chang [Thu, 2 Jul 2009 08:12:12 +0000 (16:12 +0800)]
Fix bug: wait for idle time before checking thumbnail only if there is still some
thumbnail to check.
Owen Lin [Fri, 26 Jun 2009 22:47:39 +0000 (15:47 -0700)]
Fixed the OOM in crop image.
The original code of "CropImage" won't wait the save action to be complete
before exiting.
We have to hide the ProgressDialog in onStop(), otherwise, if the job is done
in background(after onStop()), a "no window token exception" will be
thrown when dialog.dismiss() is called. Thus, a new MonitoredActivity is
introduced to help us handle this, hope it will be useful in other places.
Chih-Chung Chang [Wed, 1 Jul 2009 06:52:24 +0000 (14:52 +0800)]
Fix
1950477: Menu items for video review are incorrect.
Owen Lin [Tue, 30 Jun 2009 00:30:24 +0000 (17:30 -0700)]
Fix bug
1949582. If this is the last image to be deleted,
the mCurrentPosition will be -1 and getImageAt() will return null and thus
cause a NPE. If the image list is empty just return null is enough.
Owen Lin [Fri, 26 Jun 2009 18:59:58 +0000 (11:59 -0700)]
Solve task flow problems in Camera and Camcorder.
1. Let "Camera" and "Camcorder" use the same task affinity, so that there
will only one task stack in the system.
2. Finish the "Camera" or "Camcorder" activity, when switch to the other,
so that it works like the same activity.
Wu-cheng Li [Wed, 24 Jun 2009 05:33:46 +0000 (13:33 +0800)]
Start preview earlier to let user see preview earlier.
Android (Google) Code Review [Tue, 30 Jun 2009 09:05:12 +0000 (02:05 -0700)]
Merge change 5758 into donut
* changes:
Fix
1948669. The grid of multi-selected video becomes white while it is being selected
Wu-cheng Li [Tue, 30 Jun 2009 07:26:48 +0000 (15:26 +0800)]
Increase image zoom speed.
Chih-Chung Chang [Tue, 30 Jun 2009 06:37:57 +0000 (14:37 +0800)]
Fix
1948669. The grid of multi-selected video becomes white while it is being selected
Only check thumbnail when the worker thread has been idle for 1 second.
This gives the ImageBlockManager some time to figure out what to load next.
Owen Lin [Mon, 29 Jun 2009 21:47:08 +0000 (14:47 -0700)]